TsctlDIOGetDesc
From embeddedTS Manuals
The function returns the synchronous state of the specified DIO DIONum relative to the DIO object. The value returned is the state of the DIO as of the last Refresh call.
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;