Description of functions
AN3954
16/47
Doc ID022016 Rev 4
2.2.3 CR95HFDLL_getHardwareVersion
This function sends a USB request to the STM32 MCU on the CR95HF demonstration
board that sends back the hardware revision of the board.
Note:
This function is available since DLL revision 0.9 and higher.
The hardware revision number is available since CR95HF demonstration board with MCU
revision 2.1 (produced after 2012-10).
Visual Basic language
Declaration
:
Public Declare Function CR95HFDLL_getHardwareVersion Lib
"CR95HF.dll" (ByVal mystring As String) As Long
Prototype
lngStatus = CR95HFDLL_getHardwareVersion(strAnswer);
Input parameter
:
None
Output parameter
:
strAnswer: Hardware revision of the CR95HF demonstration board.
Answer example: "00074D423938335F41"
Where:
00: Status byte (see
03: Size of answer (in bytes)
4D423938335F41: Hardware revision (ASCII = MB983_A)
Answer example: "FE00"
Error return: CR95HF demonstration board doesn't contain
Hardware revision (too old)
Returned value
:
lngStatus:
0: No error
5: CR95HF demonstration board not connected