![Tews Technologies TIP675-SW-42 User Manual Download Page 28](http://html1.mh-extra.com/html/tews-technologies/tip675-sw-42/tip675-sw-42_user-manual_1093656028.webp)
TIP675-SW-42 – VxWorks Device Driver
Page 28 of 31
4.3.6 FIO_T675_READ
NAME
FIO_T675_READ – Read from input buffer
DESCRIPTION
This function attempts to read the input registers of the TIP675 associated with the device descriptor
fd
into a structure (
T675_READ_STR
) pointed by
arg
.
typedef struct
{
unsigned short
in_1_16;
unsigned short
in_17_32;
unsigned short
in_33_48;
} T675_READ_STR;
in_1_16
Returns the content of the input register for I/O-line 1 up to 16. (Line 1 is assigned to bit 0, line 2
to bit 1 and so on.)
in_17_32
Returns the content of the input register for I/O-line 17 up to 32. (Line 17 is assigned to bit 0,
line 18 to bit 1 and so on.)
in_33_48
Returns the content of the input register for I/O-line 33 up to 48. (Line 33 is assigned to bit 0,
line 34 to bit 1 and so on.)