BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_UI_Toggle | ( | brp_protocol | protocol, |
brp_IoPort | Port, | ||
unsigned | ToggleCount, | ||
unsigned | Timespan1, | ||
unsigned | Timespan2, | ||
brp_UI_Toggle_Polarity | Polarity | ||
) |
This command toggles the output state of a specific port.
A single toggle consists of 2 state changes: From the initial state to the inverse state and back. The initial state is defined by the Polarity parameter. This is also the state of the port at the end of the toggling operation.
To stop the toggling, call brp_UI_Enable() or brp_UI_Disable() for this port.
[in] | protocol | used to execute the command |
[in] | Port | I/O pins of the reader that can be controlled by the user. |
[in] | ToggleCount | The number of toggles. To toggle forever, choose 0xFF. |
[in] | Timespan1 | The time in ms that the port is to stay in the inverse state. |
[in] | Timespan2 | The time in ms that the port is to stay in the initial state. |
[in] | Polarity |