Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PN512TransportDriver Class Reference
The PN512 supports multiple transport mechanisms (SPI, I2C, UART): this class provides a unified API across these transports. More...
#include <PN512TransportDriver.h>
Inherited by PN512SPITransportDriver.
Data Structures | |
| struct | Delegate |
| The PN512TransportDriver delegate. More... | |
Public Member Functions | |
| PN512TransportDriver () | |
| Create a PN512TransportDriver instance. | |
| virtual | ~PN512TransportDriver () |
| PN512TransportDriver destructor. | |
| virtual void | initialize ()=0 |
| Initialize transport driver and perform a chip reset. | |
| virtual nfc_transport_t * | get_transport ()=0 |
| Retrieve the nfc_transport_t struct for the stack to use. | |
| void | set_delegate (Delegate *delegate) |
| Set this instance's delegate. | |
Protected Member Functions | |
| void | hw_interrupt () |
| An implementation must call this function (can be called from interrupt context) when the PN512 asserts its interrupt line. | |
Detailed Description
The PN512 supports multiple transport mechanisms (SPI, I2C, UART): this class provides a unified API across these transports.
Definition at line 29 of file PN512TransportDriver.h.
Constructor & Destructor Documentation
Create a PN512TransportDriver instance.
Definition at line 22 of file PN512TransportDriver.cpp.
| ~PN512TransportDriver | ( | ) | [virtual] |
PN512TransportDriver destructor.
Definition at line 27 of file PN512TransportDriver.cpp.
Member Function Documentation
| virtual nfc_transport_t* get_transport | ( | ) | [pure virtual] |
Retrieve the nfc_transport_t struct for the stack to use.
- Returns:
- a pointer to a nfc_transport_t struct
| void hw_interrupt | ( | ) | [protected] |
An implementation must call this function (can be called from interrupt context) when the PN512 asserts its interrupt line.
Definition at line 37 of file PN512TransportDriver.cpp.
| virtual void initialize | ( | ) | [pure virtual] |
Initialize transport driver and perform a chip reset.
| void set_delegate | ( | Delegate * | delegate ) |
Set this instance's delegate.
- Parameters:
-
[in] delegate the delegate instance to use
Definition at line 32 of file PN512TransportDriver.cpp.
Generated on Tue Aug 9 2022 00:37:39 by
1.7.2