Programming
6.2 Programming via USB interface
SIMATIC RF1000
26
Operating Instructions, 02/2019, C79000-G8976-C432-04
6.2.1.10
vhl_is_selected
This function checks whether the card selected the last time the "vhl_select" function was
executed is still or once again located in the antenna field. If the card is there, the status
"OK" is returned.
Note that this function always returns the return value "CARD_NOT_SELECTED_ERR"
when a card is displayed to the reader without the "vhl_select" function being executed first.
Function call
int
vhl_is_selected(
int Handle,
int * Status
);
Table 6- 12 Description of the parameters
Parameter
Description
vhl_is_selected
The parameter checks whether the card selected the last time the
"vhl_select" function was executed is still or once again located in the an-
tenna field.
Handle
The session key returned by the function "brp_open_usb_session".
Status
•
OK
•
CARD_NOT_SELECTED_ERR
You will find more information on the reader status in the section "Status
Return value
•
BRP_OK
You will find more information on return values in the section "Return val-
6.2.1.11
vhl_read
This function reads the memory area that is stored in a VHL file previously stored in the
reader. The VHL configuration stored in the reader is referenced with the "VHLFile ID".
When a card is located in the antenna field and the function was completed, the status "OK"
is returned.
Note that this function always returns the return value "CARD_NOT_SELECTED_ERR"
when a card is displayed to the reader without the "vhl_select" function being executed first.