TPMC866-SW-42 - VxWorks Device Driver
Page 28 of 37
4.5.5 FIOPARITY
This I/O control function selects parity checking for the specific channel.
The function specific control parameter
arg
passes the selected value to the device driver. The
following values are possible:
value
description
TP866EVP
use EVEN parity
TP866ODP
use ODD parity
TP866NOP
do not use parity
EXAMPLE
#include
"tpmc866.h”
int
fd;
int
result;
…
/*-------------------------------
Configure channel no parity
-------------------------------*/
result = ioctl (fd, FIOPARITY, TP866NOP);
if (result == OK)
{
/* Success */
}
else
{
/* Function failed */
}
ERROR CODES
Error code
Description
S_tp866Drv_IARG
Invalid parameter specified