BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_VHL_SetupLegic | ( | brp_protocol | protocol, |
unsigned | StampLen, | ||
unsigned | SegmentID, | ||
brp_buf | Stamp, | ||
size_t | Stamp_len | ||
) |
This commands prepares the reader to access LEGIC cards with the given settings.
It can be called before using brp_VHL_Read() and brp_VHL_Write() with LEGIC cards without configuring the reader with a VHL-file, i.e. when the ID parameter of brp_VHL_Read() or brp_VHL_Write() is set to 0xFF.
A distinct segment of the LEGIC card to access may be specified, either according to its fixed segment ID (through the SegmentID parameter) or according to its stamp (through the Stamp parameter).
This command works with a fixed address mapping for the application data: VHL address 0 corresponds to Protocol Header address 25, the first data byte after the longest possible LEGIC Prime stamp. If this assumption is too simplistic for your application, please use brp_VHL_Setup() or a normal VHL-file to set up the reader.
After calling brp_VHL_Select() , brp_VHL_Read() or brp_VHL_Write() with an ID parameter other than 0xFF, or after a reboot, the settings made by this command are lost.
For new applications, the command brp_VHL_Setup() should be used instead.
[in] | protocol | used to execute the command |
[in] | StampLen | Length of the Stamp parameter used to access the card, varying from 1 to 7. If this parameter is set to 0, the card will be accessed according to a fixed segment ID specified in the SegmentID parameter. |
[in] | SegmentID | |
[in] | Stamp | |
[in] | Stamp_len |