Download User Manual - TEWS TECHNOLOGIES

Transcript
EXAMPLE
#include “tpmc861.h”
int
int
EXAR16XXX_FIFO_STRUCT
fd;
result;
fifoSet;
/*--------------------------Enable FIFO with
- receive trigger at 85
- transmit trigger at 15
---------------------------*/
fifoSet.rxFifoTrigger = 85;
fifoSet.txFifoTrigger = 15
result = ioctl(fd, FIO_EXAR16XXX_FIFO, (EXAR16XXX_IOCTL_ARG_T)&fifoSet);
if (result == OK)
{
/* Success */
}
else
{
/* Function failed */
}
ERROR CODES
Error Code
Description
EINVAL
Invalid Trigger Level specified or the combination of trigger
levels is not allowed.
TPMC861-SW-42 – VxWorks Device Driver
Page 43 of 46