17 #ifndef MBED_NFC_CONTROLLER_H 18 #define MBED_NFC_CONTROLLER_H 21 #include "events/EventQueue.h" 22 #include "platform/SharedPtr.h" 23 #include "drivers/Timer.h" 24 #include "drivers/Timeout.h" 26 #include "NFCDefinitions.h" 27 #include "NFCControllerDriver.h" 29 #include "platform/Span.h" 38 class
nfc_transceiver_t *transceiver() const
162 static void
s_polling_callback(nfc_transceiver_t *pTransceiver, nfc_err_t ret, void
165 virtual void
nfc_err_t configure_rf_protocols(nfc_rf_protocols_bitmask_t rf_protocols)
Set the list of RF protocols to look for during discovery.
The abstraction for a NFC controller driver.
virtual void on_nfc_target_discovered(const SharedPtr< NFCRemoteTarget > &nfc_target)
A remote target was discovered (the local controller is in initiator mode).
Process was canceled by the user.
virtual void on_discovery_terminated(nfc_discovery_terminated_reason_t reason)
The discovery process terminated.
Initialize the NFC controller.
virtual void on_nfc_initiator_discovered(const SharedPtr< NFCRemoteInitiator > &nfc_initiator)
A remote initiator was discovered (the local controller is in target mode).
This class represents a NFC Controller.
The NFCController delegate.
Process completed, at least one endpoint was discovered.
The NFCControllerDriver delegate.
A enumeration of causes for the discovery process terminating.
An unexpected error was encountered during an exchange on the air interface.
Cancel/stop a running discovery process.
Start the discovery process using the protocols configured previously.
This class is an implementation of the Type 4 tag application.
This is the base class for all remote endpoints (initiators and targets) addressable over the air int...
nfc_rf_protocols_bitmask_t get_supported_rf_protocols() const
Get the list of RF protocols supported by this controller.
void set_delegate(Delegate *delegate)
Set the delegate that will receive events generated by this controller.
A Timeout is used to call a function at a point in the future.
NFCController(NFCControllerDriver *driver, events::EventQueue *queue, const Span< uint8_t > &ndef_buffer)
Construct a NFCController instance.