TsctlDIOGetAsyncDesc
From embeddedTS Manuals
The function returns the asynchronous (current) state of the specified DIO DIONum relative to the DIO object.
typedef enum {
INPUT_LOW=-3, // DIO is an INPUT and read LOW
INPUT_HIGH=-2, // DIO is an INPUT and read HIGH
INPUT=-1, // set DIO to an INPUT
LOW=0, // set DIO to an OUTPUT and drive LOW
HIGH=1 // set DIO to an OUTPUT and drive HIGH
} DIOState;