18 #ifndef MBED_NFC_CONTROLLER_H 19 #define MBED_NFC_CONTROLLER_H 22 #include "events/EventQueue.h" 23 #include "platform/SharedPtr.h" 24 #include "drivers/Timer.h" 25 #include "drivers/Timeout.h" 27 #include "NFCDefinitions.h" 28 #include "NFCControllerDriver.h" 30 #include "platform/Span.h" 39 class
166 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.
Type for NFC errors.
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.
NFCController(NFCControllerDriver *driver, events::EventQueue *queue, const Span< uint8_t > &ndef_buffer)
Construct a NFCController instance.