nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ st25r3911b_nfca_crc_calculate()

int st25r3911b_nfca_crc_calculate ( const uint8_t *  data,
size_t  len,
struct st25r3911b_nfca_crc crc_val 
)

#include <include/st25r3911b_nfca.h>

Calculate CRC 16 for NFC-A payload.

This function generates an NFC-A CRC (according to NFC Forum Digital 2.0 6.4.1.3).

Parameters
[in]dataPayload data.
[in]lenData length.
[out]crc_valNFC-A CRC value.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.