|
cryptnox-sdk-cpp 1.0.0
Platform-independent C++ core SDK for Cryptnox Hardware Wallet
|
Abstract interface for NFC transport operations. More...
#include <CW_NfcTransport.h>
Public Member Functions | |
| virtual bool | begin ()=0 |
| Initialize the NFC transport hardware. | |
| virtual bool | inListPassiveTarget ()=0 |
| Detect the presence of a passive ISO-DEP NFC target. | |
| virtual bool | sendAPDU (const uint8_t *apdu, uint8_t apduLen, uint8_t *response, uint8_t &responseLen)=0 |
| Send an APDU command to the card and receive the response. | |
| virtual bool | sendAPDULarge (const uint8_t *apdu, uint8_t apduLen, uint8_t *response, uint16_t &responseLen) |
| Send an APDU and receive a response that may exceed 255 bytes. | |
| virtual void | resetReader ()=0 |
| Reset the NFC reader/field for the next card detection cycle. | |
| virtual bool | printFirmwareVersion ()=0 |
| Print NFC module firmware version information to the logger. | |
| virtual | ~CW_NfcTransport () |
Abstract interface for NFC transport operations.
Defines the hardware-agnostic contract for NFC communication so that CW_SecureChannel and CryptnoxWallet remain independent of the physical NFC module (PN532, PN7150, etc.).
Definition at line 40 of file CW_NfcTransport.h.
|
inlinevirtual |
Definition at line 103 of file CW_NfcTransport.h.
|
pure virtual |
Initialize the NFC transport hardware.
|
pure virtual |
Detect the presence of a passive ISO-DEP NFC target.
|
pure virtual |
Print NFC module firmware version information to the logger.
|
pure virtual |
Reset the NFC reader/field for the next card detection cycle.
|
pure virtual |
Send an APDU command to the card and receive the response.
| [in] | apdu | APDU command bytes. |
| [in] | apduLen | Length of the APDU command. |
| [out] | response | Buffer to receive the card response. |
| [out] | responseLen | Actual number of bytes written to response. |
Referenced by sendAPDULarge().
|
inlinevirtual |
Send an APDU and receive a response that may exceed 255 bytes.
Used for APDUs whose DataOut can be larger than a uint8_t can express (e.g. GET_MANUFACTURER_CERTIFICATE returns up to 415 bytes). Implementations that cannot deliver more than 255 bytes may delegate to sendAPDU; the default below does exactly that.
| [in] | apdu | APDU command bytes. |
| [in] | apduLen | Length of the APDU command. |
| [out] | response | Buffer to receive the card response. |
| [in,out] | responseLen | On entry: capacity of response. On exit: actual bytes written. |
Definition at line 81 of file CW_NfcTransport.h.
References sendAPDU().