Description of functions
AN3954
38/47
Doc ID022016 Rev 4
function:\n");
printf("\n --> request : CR95HFDll_Polling_Reading(strAnswer)");
printf("\n <-- answer : ");
if (iresult == 0)
printf("%s = Set Polling Reading successfully\n\n\r", strAnswer);
else
printf("%s = No answer from CR95HF demonstration board\n\n\r",
strAnswer);
printf("\n\n\n\n");
printf("\npress any key to continue");
printf("\n");
scanf("%s", &entry3);
return iresult;
}
2.3.8 CR95HFDll_SendNSSPulse
This function sends an interrupt to wake up the CR95HF IC. It can be used when the
CR95HF is configured in UART mode (communication between the STM32 MCU and the
CR95HF IC). The interrupt pulse is sent to the CR95HF NSS pin.
Visual Basic language
Declaration:
Public Declare Function CR95HFDll_SendNSSPulse Lib
"CR95HF.dll" (ByVal mystring As String) As Long
Prototype:
Dim strAnswer As String * 256
Dim lngStatus As Long
lngStatus = CR95HFDll_SendNSSPulse(strAnswer)
Input parameter:
None
Output parameter:
strAnswer. The CR95HF demonstration board sends back an
answer if the NSS pulse is correctly sent.
Answer example: “0000”
Where:
“00” is the status byte (see Appendix A for error codes)
“00” is the size of the answer
Returned value:
lngStatus:
0: No error
5: CR95HF demonstration board not connected
Source code example
Private Sub cmdSendNSSPulse_Click()
Dim strAnswer As String * 256
Dim lngStatus As Long
lngStatus = CR95HFDll_SendNSSPulse(strAnswer)
If (lngStatus = 0) Then
txtNSSpulseAnswer.Text = strAnswer
Else
txtNSSpulseAnswer.Text = "No answer from the CR95HF demonstration
board"
End If
End Sub