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.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
NFCControllerDriver Class Reference
[Nfc]
The abstraction for a NFC controller driver. More...
#include <NFCControllerDriver.h>
Inherited by PN512Driver.
Data Structures | |
struct | Delegate |
The NFCControllerDriver delegate. More... | |
Public Member Functions | |
NFCControllerDriver () | |
Instantiate a NFCControllerDriver. | |
virtual | ~NFCControllerDriver () |
NFCControllerDriver destructor. | |
virtual nfc_transceiver_t * | initialize (nfc_scheduler_timer_t *scheduler_timer)=0 |
Initialize the driver and retrieve the interface to the controller. | |
virtual void | get_supported_nfc_techs (nfc_tech_t *initiator, nfc_tech_t *target) const =0 |
Retrieve list of technologies supported by the controller. | |
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 controller asserts its interrupt line. |
Detailed Description
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.
Constructor & Destructor Documentation
Instantiate a NFCControllerDriver.
Definition at line 22 of file NFCControllerDriver.cpp.
~NFCControllerDriver | ( | ) | [virtual] |
NFCControllerDriver destructor.
Definition at line 27 of file NFCControllerDriver.cpp.
Member Function Documentation
virtual void get_supported_nfc_techs | ( | nfc_tech_t * | initiator, |
nfc_tech_t * | target | ||
) | const [pure virtual] |
Retrieve list of technologies supported by the controller.
- Parameters:
-
[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
void hw_interrupt | ( | ) | [protected] |
An implementation must call this function (can be called from interrupt context) when the controller asserts its interrupt line.
Definition at line 37 of file NFCControllerDriver.cpp.
virtual nfc_transceiver_t* initialize | ( | nfc_scheduler_timer_t * | scheduler_timer ) | [pure virtual] |
Initialize the driver and retrieve the interface to the controller.
- Parameters:
-
[in] scheduler_timer a timer to initialize the controller's scheduler instance with
- Returns:
- an initialized MicroNFC nfc_transceiver_t instance
void set_delegate | ( | Delegate * | delegate ) |
Set this instance's delegate.
- Parameters:
-
[in] delegate the delegate instance to use
Definition at line 32 of file NFCControllerDriver.cpp.
Generated on Tue Jul 12 2022 13:55:44 by
