TDRV006-SW-82 - Linux Device Driver
Page 22 of 31
3.2.6 tdrv006OutputEnable
NAME
tdrv006OutputEnable – set the direction of the I/O lines
SYNOPSIS
TDRV006_STATUS tdrv006OutputEnable
(
TDRV006_HANDLE
hdl,
unsigned int
enaout31_0,
unsigned int
enaout63_32
)
DESCRIPTION
This function sets the I/O line direction. The value specifies which I/O lines shall be configured for
output and which I/O lines should be used for input.
PARAMETER
hdl
This value specifies the device handle to the hardware module retrieved by a call to the
corresponding open-function.
enaout31_0
This argument specifies the direction of I/O lines 0 up to 31. Bit 0 specifies the direction of I/O
line 0, bit 1 the direction of I/O line 1, and so on. A set bit (1) configures the line for output, an
unset bit (0) configures input (tri-state).
enaout63_32
This argument specifies the direction of I/O lines 32 up to 63. Bit 0 specifies the direction of I/O
line 32, bit 1 the direction of I/O line 33, and so on. A set bit (1) configures the line for output, an
unset bit (0) configures input (tri-state).