TIP675-SW-42 – VxWorks Device Driver
Page 26 of 31
4.3.4 FIO_T675_ENA_EXCLK
NAME
FIO_T675_ENA_EXCLK – Enable simultaneous update feature
DESCRIPTION
This ioctl function enables the simultaneous update feature of the TIP675. Setting the ioctl argument
arg
to
T675_POS_EDGE
will cause the inputs and outputs to be latched on the rising edge of the
external clock, while setting
arg
to
T675_NEG_EDGE
will latch the inputs and outputs on the falling
edge.
EXAMPLE
#include
"tip675.h"
…
int
fd;
int
retval;
…
/*------------------------------------------
Enable simultaneous update on falling edge
------------------------------------------*/
retval = ioctl(fd, FIO_T675_ENA_EXCLK, T675_NEG_EDGE);
if (retval == ERROR) {
/* handle function specific error conditions */
}
…
ERRORS
No function specific error codes.
SEE ALSO
ioLib, basic I/O routine - ioctl(), VxWorks Programmer's Guide: I/O System.