English
Language : 

AN3224 Datasheet, PDF (26/49 Pages) STMicroelectronics – Developing an application allowing PR101-USB and MR101-USB FEIG readers to communicate with M24LRXX transponders
RF ISO 15693 High-level commands
AN3224
5.1
FEISC_0xB0_ISOCmd general description
Table 13 and Table 14 give the description of the FEISC_0xB0_ISOCmd function in Visual
Basic and C/C++.
Table 13. FEISC_0xB0_ISOCmd Visual Basic prototype
Function description
Prototype
Parameters
Returned value
IngStatus =
FEISC_0xB0_ISOCmd(lngAttachedDeviceHandle(1),
&hFF,strReqData,lngReqDataLen,strRespData,
lngRespDataLen,N)
IngAttachedDeviceHandle(1): USB reader handle which has been filled in
after the reader detection process (FEISC_NewReader function).
&hFF: Communication address.
strReqData: High-level command to be sent to the reader.
lngReqDataLen: High-level command length.
strRespData: Transponder answer (if any). This variable is filled after the
USB request is issued. Before sending any USB request, strRespData
must be formatted as follows:
Dim strRespData As String * 512
lngRespDataLen: size of the RF answer (length of strRespData).
N: Format of all the parameters passed to the function
0: ASCII.
Example: ‘2356’ corresponds to the string ‘#V’ composed of 2 ASCII
codes.
1: Characters.
Example: ‘2356’ corresponds to 4 characters (2, 3, 5, 6)
2: Hexadecimal.
Example: ‘2356’ corresponds to 2 bytes (&h23 and &h56)
lngStatus: error code
0: USB request transmission successful
1: USB request transmission failed
26/49
Doc ID 17559 Rev 2