TIP675-SW-42 – VxWorks Device Driver
Page 25 of 31
EXAMPLE
#include
"tip675.h"
…
int
fd;
int
retval;
T675_REMOVE_ISF_STR
RsfPar;
…
/*-------------------------------------------------------
Remove user supplied callback function from I/O line 24
Interrupt on hi transition
-------------------------------------------------------*/
RsfPar.io_line = 24;
RsfPar.edge = T675_POS_EDGE;
retval = ioctl(fd, FIO_T675_REMOVE_ISF, (int)&RsfPar);
if (retval == ERROR)
{
/* handle function specific error conditions */
}
…
ERRORS
S_t675Drv_ILINE
Specified I/O line out of range.
S_t675Drv_IPARAM
No valid transition parameter
SEE ALSO
ioLib, basic I/O routine - ioctl(), VxWorks Programmer's Guide: I/O System.