modules/woz_aliro_ecp/src/nfc_prop_ecp.cpp
asxeem/openaliro
Module

nfc_prop_ecp.cpp

NFC Type A proprietary callback implementation for Aliro Express unlock (tap-to-unlock without…

modules/woz_aliro_ecp/src/nfc_prop_ecp.cpp5 documented symbols

Overview

NFC Type A proprietary callback implementation for Aliro Express unlock (tap-to-unlock without Face ID). Emits a CRC_A–checksummed ECP frame carrying the reader identifier.

API

Fvoid Crc16A(const uint8_t *data, unsigned int size, uint8_t *result)

modules/woz_aliro_ecp/src/nfc_prop_ecp.cpp:47

Computes the ISO/IEC 14443-A CRC_A checksum (initial value 0x6363) over a byte buffer.

data
Pointer to the input bytes to checksum.
size
Number of bytes in data to process.
result
Output buffer receiving the 2-byte little-endian CRC_A result.
called by NfcPropInit

FReturnCode PropInit(void)

modules/woz_aliro_ecp/src/nfc_prop_ecp.cpp:66

Initializes the RFAL NFC Type A polling stack.

returns
Return code from rfalNfcaPollerInitialize.

FReturnCode PropTechDetect(void)

modules/woz_aliro_ecp/src/nfc_prop_ecp.cpp:77

Transmits the armed ECP frame as a fire-and-forget beacon and reports no proprietary device detected so RFAL polling can proceed.

returns
RFAL_ERR_TIMEOUT if the frame is not armed, or RFAL_ERR_TIMEOUT after transmission to signal no proprietary device found.

Fvoid NfcPropInit(void)

modules/woz_aliro_ecp/src/nfc_prop_ecp.cpp:110

Builds and arms the ECP frame with the Aliro header, provisioned reader identifier, and CRC_A checksum for emission.

calls Crc16A

Fconst rfalNfcPropCallbacks *NfcPropGetCallbacks(void)

modules/woz_aliro_ecp/src/nfc_prop_ecp.cpp:133

Returns the RFAL proprietary NFC callback table for Aliro ECP emission.

returns
Pointer to the static rfalNfcPropCallbacks table.