
Programming
6.2 Programming via USB interface
SIMATIC RF1000
24
Operating Instructions, 02/2019, C79000-G8976-C432-04
The "CardTypeMask" parameter allows only specific card families to be selected. If you want
to select all cards supported by the hardware of the reader, you need to set the parameter to
"0xFFFF". The more significant half byte of the "CardType" parameter specifies the card
family (1-6) while the less significant half byte (X) refers to the recognized card type.
Table 6- 9
Assigning the card types
CardTypeMask
CardType
Card family
0x0001 (bit 1)
0x1X
ISO 14443 A / MIFARE
0x0002 (bit 2)
0x2X
LEGIC Legacy (only for RF1070R)
0x0004 (bit 3)
0x3X
ISO 15693
0x0008 (bit 4)
0x4X
ISO 14443 B
0x0010 (bit 5)
0x5X
Reserved
0x0020 (bit 6)
0x6X
Reserved
0x0800 (bit 12)
0xCX
LEGIC Prime (only for RF1070R)
0xFFFF
0xFF
All card families
Function call
int
vhl_select(
int Handle,
word CardTypeMask,
bool Reselect,
bool AllowConfig,
byte * CardType,
int * Status
);
Table 6- 10 Description of the parameters
Parameter
Description
vhl_select
With this parameter you select a card located in the antenna field.
Handle
The session key returned by the function "brp_open_usb_session".
CardTypeMask
With this parameter you specify the card family to be recognized. If you
want all card families to be recognized, set the parameter to the value
"0xFFFF".
Reselect
The parameter decides whether the card should be reselected.
AllowConfig
This value is "true" when a configuration card is to be read. In normal oper-
ation, the value must be set to "false" to prevent an unintentional ac-
ceptance of the reader configuration.
CardType
The returned value indicates the card type.