![Tews Technologies TPMC866-SW-42 Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/tews-technologies/tpmc866-sw-42/tpmc866-sw-42_user-manual_1093638029.webp)
TPMC866-SW-42 - VxWorks Device Driver
Page 29 of 37
4.5.6 FIOENABLEHWHS
This I/O control function enables hardware handshaking for the specific channel.
The function specific control parameter
arg
is not used.
Hardware handshaking is only allowed when FIFO triggering is enabled. The hardware handshake
signals are only generated for the controller’s internal FIFOs, the writing to the VxWorks FIFOs will not
be stopped if they are full. So there will be data lost, if the application doesn’t read the data fast
enough.
This function is only available for TPMC866-10, used for other types will lead to an error.
EXAMPLE
#include
"tpmc866.h”
int
fd;
int
result;
…
/*-----------------------------------------------------------
Enable hardware handshaking
-----------------------------------------------------------*/
result = ioctl (fd, FIOENABLEHWHS, 0);
if (result == OK)
{
/* Success */
}
else
{
/* Function failed */
}