modules/woz_nfc/src/pn532_apdu.h
openaliro/openaliro
Module
pn532_apdu.h
PN532-specific ISO 7816 APDU adaptation.
Overview
PN532-specific ISO 7816 APDU adaptation. The Aliro stack (including the prebuilt library) negotiates sizes with the User Device, but has no API for the reader controller's smaller local limit. This adapter keeps that hardware constraint at the transport boundary.
used by pn532_apdu.c transport_pn532.cpp
API
Cstruct woz_pn532_apdu_plan
modules/woz_nfc/src/pn532_apdu.h:38
State machine for chunking an ISO 7816 APDU across multiple SPI frames: tracks input buffer, payload offset and length, amount emitted, expected response length (Le), and mode flags (extended-length, has-Le). Used by the PN532 driver to split oversized commands.
##define WOZ_PN532_APDU_WIRE_MAX 240
modules/woz_nfc/src/pn532_apdu.h:19
##define WOZ_PN532_ENVELOPE_DATA_MAX (WOZ_PN532_APDU_WIRE_MAX - 9)
modules/woz_nfc/src/pn532_apdu.h:20
##define WOZ_PN532_RESPONSE_DATA_MAX 240
modules/woz_nfc/src/pn532_apdu.h:25
Cenum woz_pn532_apdu_mode
modules/woz_nfc/src/pn532_apdu.h:27
Fint woz_pn532_apdu_plan_init(const uint8_t *input, size_t input_length, struct woz_pn532_apdu_plan *plan)
modules/woz_nfc/src/pn532_apdu.h:55
Fint woz_pn532_apdu_plan_next(struct woz_pn532_apdu_plan *plan, uint8_t *output, size_t output_capacity, size_t *output_length, bool *more_internal)
modules/woz_nfc/src/pn532_apdu.h:60