TDRV006-SW-82 - Linux Device Driver
Page 19 of 31
EXAMPLE
#include <tdrv006api.h>
TDRV006_HANDLE
hdl;
TDRV006_STATUS
result;
/*
** Set I/O line 32
*/
result = tdrv006SetOutputLine(hdl, 32);
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
An invalid line number is specified
TDRV006_ERR_INVALID_HANDLE
The device handle is invalid