![Tews Technologies TDRV006-SW-82 User Manual Download Page 15](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641015.webp)
TDRV006-SW-82 - Linux Device Driver
Page 15 of 31
EXAMPLE
#include <tdrv006api.h>
TDRV006_HANDLE
hdl;
TDRV006_STATUS
result;
/*
** Set output value (set I/O lines 0-15)
*/
result = tdrv006Write(hdl, 0x0000FFFF, 0x00000000);
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_INVALID_HANDLE
The device handle is invalid