TDRV006-SW-82 - Linux Device Driver
Page 26 of 31
3.3.2 tdrv006WaitForHighToLow
NAME
tdrv006WaitForHighToLow – wait until a high to low transition occurs
SYNOPSIS
TDRV006_STATUS tdrv006WaitHighToLow
(
TDRV006_HANDLE
hdl,
int
inputLine,
int
timeout
)
DESCRIPTION
This function waits until a high to low transition occurs on the specified input line or the specified
timeout time has passed.
PARAMETER
hdl
This value specifies the device handle to the hardware module retrieved by a call to the
corresponding open-function.
inputLine
This argument specifies the input line which shall be observed for a high to low transition.
Allowed values are 0 up to 63.
timeout
This argument specifies the time the function is willing to wait for the specified transition. If the
specified time has passed the function will return with an error. The timeout is specified in
milliseconds. A timeout value of ‘-1’ specifies that the function will never timeout.