![Tews Technologies TDRV006-SW-82 User Manual Download Page 29](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641029.webp)
TDRV006-SW-82 - Linux Device Driver
Page 29 of 31
EXAMPLE
#include <tdrv006api.h>
TDRV006_HANDLE
hdl;
TDRV006_STATUS
result;
/*
** Wait for a transition on input line 0
** Timeout after 10 seconds
*/
result = tdrv006WaitForAnyTrans (hdl, 0, 10000);
if (result != TDRV006_OK)
{
/* error handling */
}
RETURN VALUE
On success, TDRV006_OK is returned. In the case of an error, the appropriate error code is returned
by the function.
ERROR CODES
Error Code
Description
TDRV006_ERR_INVAL
Invalid parameter specified
TDRV006_ERR_BUSY
The
number
of
waiting
processes
exceeded
the
maximum number
TDRV006_ERR_INVALID_HANDLE
The device handle is invalid
TDRV006_ERR_TIMEOUT
Timeout occurred.