TsctlDIOSetAsyncDesc

From embeddedTS Manuals

Set the asynchronous (current) value of the DIO with logical number DIONum relative to the DIO instance to the specified State.

The value is not reflected in the synchronous side of the DIO. For example, if the synchronous value differs from the asynchronous value and a Commit is performed, the asynchronous change will not be detected and the value of the output may or may not be changed depending on whether other DIO values in the same register changes. Because of this indeterminate or difficult to predict behavior mixing of synchronous and asynchronous calls must be done with care.

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;