TDRV006-SW-82 - Linux Device Driver
Page 23 of 31
EXAMPLE
#include <tdrv006api.h>
TDRV006_HANDLE
hdl;
TDRV006_STATUS
result;
/*
** Enable I/O lines 0-8 for ouput
*/
result = tdrv006OutputEnable(hdl, 0x000001FF, 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