52#include "CW_NfcTransport.h"
100 bool begin()
override;
130 bool sendAPDU(
const uint8_t *apdu, uint8_t apduLen,
131 uint8_t *response, uint8_t &responseLen)
override;
151 uint8_t *response, uint16_t &responseLen)
override;
~Pn532NfcTransport() override
Default destructor.
bool begin() override
Configure the PN532 SAM and prepare it to accept card commands.
bool inListPassiveTarget() override
Scan for a passive ISO 14443-A card.
pn532_t * m_dev
PN532 device handle (not owned; must outlive this object).
Pn532NfcTransport(pn532_t *dev, CW_Logger &logger)
Construct the transport adapter.
bool sendAPDULarge(const uint8_t *apdu, uint8_t apduLen, uint8_t *response, uint16_t &responseLen) override
Exchange one ISO-DEP APDU with the selected card (large response).
void resetReader() override
Release the currently selected NFC target.
bool printFirmwareVersion() override
Query and log the PN532 firmware version.
CW_Logger & m_logger
Logger for printFirmwareVersion output.
bool sendAPDU(const uint8_t *apdu, uint8_t apduLen, uint8_t *response, uint8_t &responseLen) override
Exchange one ISO-DEP APDU with the selected card (short response).
Low-level PN532 NFC controller driver for ESP-IDF (SPI and I²C).
Opaque-like runtime state for a single PN532 instance.