Doc ID022016 Rev 4
23/47
AN3954
Description of functions
46
Visual Basic language
Declaration
:
Public Declare Function CR95HFDll_Select Lib
"CR95HF.dll" (ByVal mycmdstring As String, ByVal
mystring As String) As Long
Prototype
:
Dim lngStatus As Long
Dim strConfiguration As String
Dim strSelectMsg As String * 256
lngStatus = CR95HFDll_Select(strConfiguration,
strSelectMsg)
Input parameter
:
strConfiguration: Selected RF communication protocol and certain
protocol-related parameters. (This configuration is used for
SendReceive requests.)
ISO15693 HighDataRate 10% One subcarrier = “010D”:
Where:
“01” is the ISO 15693 configuration
“0D” are the parameters
ISO14443A = "02000180":
Where:
“02” is the ISO 14443A configuration
“000180” are the parameters
Note: The CR95HF datasheet recommends to complete the
ISO14443A protocol configuration:
- by optimizing the synchro between digital & analog inputs
(sends CR95HFDLL_STCMD with "01 09043A005804")
- by modifying modulation & gain (send CR95HFDLL_STCMD
with "01 0904680101D1").
ISO14443B = "03010180":
Where:
“03” is the ISO 14443B configuration
“010180” are the parameters
Note: The CR95HF datasheet recommends to complete the
ISO144443B protocol configuration by modifying the ARC_B value
to increase the Demodulator Gain (send CR95HFDLL_STCMD with
"01 090468010130").
Output parameter
:
strSelectMsg: The CR95HF demonstration board sends back an
answer if the CR95HF is configured correctly and the RF field is on.
Answer example: “0000”
Where:
“00” is the status byte (see
“00” is the size of the answer
Returned value
:
lngStatus:
0: No error
5: CR95HF demonstration board not connected
2: Empty argument error
3: Command parameter error
Source code example