TsctlDIOSetDesc

From embeddedTS Manuals

Set the synchronous DIO with logical number DIONum relative to the DIO instance to the specified State.

The Refresh function must be called before this function.

The actual DIO state wil not be updated until the next call to Commit.

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;