C API for BALTECH SDK

§ brp_UI_Toggle()

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.

Parameters
[in]protocolused to execute the command
[in]PortI/O pins of the reader that can be controlled by the user.
[in]ToggleCountThe number of toggles. To toggle forever, choose 0xFF.
[in]Timespan1The time in ms that the port is to stay in the inverse state.
[in]Timespan2The time in ms that the port is to stay in the initial state.
[in]Polarity