![Tews Technologies TDRV006-SW-82 User Manual Download Page 17](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641017.webp)
TDRV006-SW-82 - Linux Device Driver
Page 17 of 31
mask63_32
This argument specifies the output mask for output lines 32 up to 63. Bit 0 specifies the mask
for I/O line 32, bit 1 the value for I/O line 33, and so on.
A set bit (1) means the I/O line shall be set to the value specified by
out63_32.
A reset bit (0) means that the old output value will not be changed.
EXAMPLE
#include <tdrv006api.h>
TDRV006_HANDLE
hdl;
TDRV006_STATUS
result;
/*
** Set a part of the output value (set/reset I/O lines 0-15 and 48-63)
*/
result = tdrv006WriteMasked(hdl,
0x12345678, 0x87654321,
0x0000FFFF, 0xFFFF0000);
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