![Tews Technologies TDRV006-SW-82 User Manual Download Page 16](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641016.webp)
TDRV006-SW-82 - Linux Device Driver
Page 16 of 31
3.2.3 tdrv006WriteMasked
NAME
tdrv006WriteMasked – modify value of output buffer for specified I/O lines
SYNOPSIS
TDRV006_STATUS tdrv006WriteMasked
(
TDRV006_HANDLE
hdl,
unsigned int
out31_0,
unsigned int
out63_32,
unsigned int
mask31_0,
unsigned int
mask63_32
)
DESCRIPTION
This function sets the output value for specified I/O lines. The mask specifies which I/O bits shall be
set to the specified output value and which shall keep the current value.
This specified value will only appear on the I/O lines which are configured for output.
PARAMETER
hdl
This value specifies the device handle to the hardware module retrieved by a call to the
corresponding open-function.
out31_0
This argument specifies the output value for I/O lines 0 up to 31. Bit 0 specifies the value of I/O
line 0, bit 1 the value of I/O line 1, and so on.
out63_32
This argument specifies the output value for I/O lines 32 up to 63. Bit 0 specifies the value of I/O
line 32, bit 1 the value of I/O line 33, and so on.
mask31_0
This argument specifies the output mask for output lines 0 up to 31. Bit 0 specifies the mask for
I/O line 0, bit 1 the value for I/O line 1, and so on.
A set bit (1) means the I/O line shall be set to the value specified by
out31_0
.
A reset bit (0) means that the old output value will not be changed.