![Tews Technologies TPMC866-SW-42 Скачать руководство пользователя страница 25](http://html1.mh-extra.com/html/tews-technologies/tpmc866-sw-42/tpmc866-sw-42_user-manual_1093638025.webp)
TPMC866-SW-42 - VxWorks Device Driver
Page 25 of 37
EXAMPLE
#include
"tpmc866.h”
int
fd;
int
result;
…
/*-----------------------------------------------------------
Set FIFO triggering to 8 bytes for receive and 16 bytes
for transmit
-----------------------------------------------------------*/
result = ioctl (fd, FIOFIFO, (TP866F_R8 << 8) | TP866F_T16);
if (result == OK)
{
/* Success */
}
else
{
/* Function failed */
}
ERROR CODES
Error code
Description
S_tp866Drv_IARG
Invalid parameter specified