The abstraction for a NFC controller driver. More...
#include <NFCControllerDriver.h>
Data Structures | |
struct | Delegate |
The NFCControllerDriver delegate. More... | |
Public Member Functions | |
NFCControllerDriver () | |
Instantiate a NFCControllerDriver. More... | |
virtual | ~NFCControllerDriver () |
NFCControllerDriver destructor. More... | |
virtual nfc_transceiver_t * | initialize (nfc_scheduler_timer_t *scheduler_timer)=0 |
Initialize the driver and retrieve the interface to the controller. More... | |
virtual void | get_supported_nfc_techs (nfc_tech_t *initiator, nfc_tech_t *target) const =0 |
Retrieve list of technologies supported by the controller. More... | |
void | set_delegate (Delegate *delegate) |
Set this instance's delegate. More... | |
Protected Member Functions | |
void | hw_interrupt () |
An implementation must call this function (can be called from interrupt context) when the controller asserts its interrupt line. More... | |
The abstraction for a NFC controller driver.
Implementers need to derive from this class and implement its methods.
Definition at line 39 of file NFCControllerDriver.h.
Instantiate a NFCControllerDriver.
|
virtual |
NFCControllerDriver destructor.
|
pure virtual |
Retrieve list of technologies supported by the controller.
[out] | initiator | bitmask of technologies supported when the controller is in initiator mode |
[out] | target | bitmask of technologies supported when the controller is in target mode |
Implemented in PN512Driver.
|
protected |
An implementation must call this function (can be called from interrupt context) when the controller asserts its interrupt line.
|
pure virtual |
Initialize the driver and retrieve the interface to the controller.
[in] | scheduler_timer | a timer to initialize the controller's scheduler instance with |
Implemented in PN512Driver.
void set_delegate | ( | Delegate * | delegate | ) |
Set this instance's delegate.
[in] | delegate | the delegate instance to use |