
TPMC500-SW-42 - VxWorks Device Driver
Page 14 of 19
EXAMPLE
int
fd;
int
result;
TP500_IO_BUFFER buf;
...
/*-----------------------------------------------------------
Read the actual value of the input differential channel 1,
the gain shall be 2 and the value shall be corrected
-----------------------------------------------------------*/
buf.Channel = 1;
buf.Gain =
2;
buf.flags
= TP500_CORRENA | TP500_DIFFMODE;
result = read (fd, &buf, 0);
...
RETURNS
ERROR if an error occurred
INCLUDE FILES
ioLib.h, semLib.h, tpmc500.h
SEE ALSO
ioLib, basic I/O routine -
read()