TIP675-SW-42 – VxWorks Device Driver
Page 30 of 31
4.3.7 FIO_T675_WRITE
NAME
FIO_T675_WRITE – Write to output buffer
DESCRIPTION
This function attempts to write to the output registers of the TIP675 associated with the device
descriptor
fd
from a structure (
T675_WRITE_STR
) pointed by
arg
.
The T675_WRITE_STR structure has the following layout:
typedef struct
{
unsigned short
out_1_16;
unsigned short
out_17_32;
unsigned short
out_33_48;
} T675_WRITE_STR;
out_1_16
Specifies the output value that will be written into the output register for I/O-line 1 up to 16. (Line
1 is assigned to bit 0, line 2 to bit 1 and so on.)
out_17_32
Specifies the output value that will be written into the output register for I/O-line 17 up to 32.
(Line 17 is assigned to bit 0, line 18 to bit 1 and so on.)
out_33_48
Specifies the output value that will be written into the output register for I/O-line 33 up to 48.
(Line 33 is assigned to bit 0, line 34 to bit 1 and so on.)