nRF Connect SDK API 0.1.0
|
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).
[in] | data | Payload data. |
[in] | len | Data length. |
[out] | crc_val | NFC-A CRC value. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |