Download TSN - 150/PCI
Transcript
TSN-150/PCI
APPENDICI
TECNINT HTE
/***********************************************************
* TSN150 etn_get_32value
*
* input
- ETN source record number
* output
- value (32 bit) picked from the source ETN
*
record
* effect
The value is picked from the identified
*
record of the currently available txbuff
***********************************************************/
unsigned long etn_get_32value(unsigned int recnum)
{
unsigned int rec_etn_base;
rec_etn_base = etn_fetch_rec(recnum);
return ( inlong150 (rec_etn_base + rxhh));
/* get value */
}
/***********************************************************
* TSN150 etn_put_32value
*
* input
- destination record number
*
- value (32 bit) to put into the destination
*
record
* output
none
* effect
The value is writed inside the identified
*
record of the currently available txbuff
***********************************************************/
void etn_put_32value(unsigned int recnum, unsigned long value)
{
unsigned int rec_etn_base;
rec_etn_base = etn_fetch_rec(recnum);
outlong150(rec_etn_base + txhh , value );
/* set value */
}
/***********************************************************
* TSN150 etn_get_16value
*
* input
- ETN source record number
* output
- value (16 bit) picked from the source ETN
*
record
* effect
The value is picked from the identified
*
record of the currently available txbuff
***********************************************************/
unsigned int etn_get_16value(unsigned int recnum)
{
unsigned int rec_etn_base;
rec_etn_base = etn_fetch_rec(recnum);
return ( inword150 (rec_etn_base + rxlh));
/* get value */
}
/***********************************************************
* TSN150 etn_put_16value
*
* input
- destination record number
*
- value (16 bit) to put into the destination
*
record
* output
none
* effect
The value is writed inside the identified
*
record of the currently available txbuff
***********************************************************/
void etn_put_16value(unsigned int recnum, unsigned int value)
{
unsigned int rec_etn_base;
rec_etn_base = etn_fetch_rec(recnum);
outword150(rec_etn_base + txlh , value );
/* set value */
}
Manuale Utente Rev. 3
49