BALTECH SDK wrapper functions reference

§ brp_AR_SetMode()

brp_errcode brp_AR_SetMode ( brp_AR_SetMode_t  params)

This command controls Autoread mode at runtime.

Usually, the Autoread subsystem will be stared at boot time if the reader is configured to work autonomously. However, you can still enable and disable Autoread at runtime. This is e.g. needed if you use VHL & Autoread in combination, so you can interrupt Autoread to run VHL commands.

**_AR.SetMode_ automatically empties the reader's message buffer. This ensures that the next brp_AR_GetMessage() you run doesn't return "old" data from a card detected before running AR.SetMode .**

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • Mode (in) Defines if Autoread is active, so the reader scans autonomously for cards. The reader will disable Autoread mode automatically if you execute a card-accessing command (e.gVHL.Select ).