cryptnox-sdk-arduino 1.0.0
Arduino library for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
StubNfc Class Referencefinal
Inheritance diagram for StubNfc:
[legend]
Collaboration diagram for StubNfc:
[legend]

Public Member Functions

bool begin () override
 Initialize the NFC transport hardware.
bool inListPassiveTarget () override
 Detect the presence of a passive ISO-DEP NFC target.
bool sendAPDU (const uint8_t *, uint8_t, uint8_t *, uint8_t &) override
 Send an APDU command to the card and receive the response.
void resetReader () override
 Reset the NFC reader/field for the next card detection cycle.
bool printFirmwareVersion () override
 Print NFC module firmware version information to the logger.
Public Member Functions inherited from CW_NfcTransport
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 ~CW_NfcTransport ()

Detailed Description

Definition at line 52 of file fuzz_der.cpp.

Member Function Documentation

◆ begin()

bool StubNfc::begin ( )
inlineoverridevirtual

Initialize the NFC transport hardware.

Returns
true if initialization succeeded, false otherwise.

Implements CW_NfcTransport.

Definition at line 54 of file fuzz_der.cpp.

◆ inListPassiveTarget()

bool StubNfc::inListPassiveTarget ( )
inlineoverridevirtual

Detect the presence of a passive ISO-DEP NFC target.

Returns
true if a card is detected, false otherwise.

Implements CW_NfcTransport.

Definition at line 55 of file fuzz_der.cpp.

◆ printFirmwareVersion()

bool StubNfc::printFirmwareVersion ( )
inlineoverridevirtual

Print NFC module firmware version information to the logger.

Returns
true if firmware info was retrieved successfully, false otherwise.

Implements CW_NfcTransport.

Definition at line 59 of file fuzz_der.cpp.

◆ resetReader()

void StubNfc::resetReader ( )
inlineoverridevirtual

Reset the NFC reader/field for the next card detection cycle.

Implements CW_NfcTransport.

Definition at line 58 of file fuzz_der.cpp.

◆ sendAPDU()

bool StubNfc::sendAPDU ( const uint8_t * apdu,
uint8_t apduLen,
uint8_t * response,
uint8_t & responseLen )
inlineoverridevirtual

Send an APDU command to the card and receive the response.

Parameters
[in]apduAPDU command bytes.
[in]apduLenLength of the APDU command.
[out]responseBuffer to receive the card response.
[out]responseLenActual number of bytes written to response.
Returns
true if the exchange succeeded, false otherwise.

Implements CW_NfcTransport.

Definition at line 56 of file fuzz_der.cpp.


The documentation for this class was generated from the following file: