This class is an implementation of the Type 4 tag application. More...
#include <Type4RemoteInitiator.h>
Public Member Functions | |
Type4RemoteInitiator (NFCController *controller, const Span< uint8_t > &buffer) | |
Create a Type4RemoteInitiator. More... | |
virtual | ~Type4RemoteInitiator () |
Type4RemoteInitiator destructor. More... | |
virtual nfc_err_t | connect () |
Connect the remote endpoint. More... | |
virtual nfc_err_t | disconnect () |
Disconnect the remote endpoint. More... | |
virtual bool | is_connected () const |
Check if the endpoint is connected. More... | |
virtual bool | is_disconnected () const |
Check if the endpoint is disconnected/lost. More... | |
virtual nfc_rf_protocols_bitmask_t | rf_protocols () |
Get the list of RF protocols supported and activated over the air interface. More... | |
virtual nfc_tag_type_t | nfc_tag_type () const |
Retrieve the NFC tag type exposed by the controller to communicate with the initiator. More... | |
virtual bool | is_iso7816_supported () const |
Retrieve whether ISO7816 applications are supported by the underlying technology. More... | |
virtual void | add_iso7816_application (nfc_tech_iso7816_app_t *application) |
Register an ISO7816 application to be used by the initiator. More... | |
virtual bool | is_ndef_supported () const |
Check if this instance actually supports NDEF content. More... | |
void | set_delegate (Delegate *delegate) |
Set the delegate that will receive events generated by the initiator. More... | |
Protected Member Functions | |
virtual void | connected () |
Mark endpoint as connected. More... | |
virtual void | disconnected () |
Mark endpoint as disconnected. More... | |
NFCController * | nfc_controller () |
Retrieve NFCController instance. More... | |
const NFCController * | nfc_controller () const |
Retrieve NFCController instance. More... | |
void | parse_ndef_message (const ac_buffer_t &buffer) |
Parse a NDEF message. More... | |
void | build_ndef_message (ac_buffer_builder_t &buffer_builder) |
Build NDEF message. More... | |
ndef_msg_t * | ndef_message () |
Retrieve underlying NDEF message instance. More... | |
This class is an implementation of the Type 4 tag application.
Definition at line 44 of file Type4RemoteInitiator.h.
Type4RemoteInitiator | ( | NFCController * | controller, |
const Span< uint8_t > & | buffer | ||
) |
Create a Type4RemoteInitiator.
[in] | controller | pointer to the NFCController instance that created this object |
[in] | buffer | a bytes array used to store NDEF messages |
|
virtual |
Type4RemoteInitiator destructor.
|
virtual |
Register an ISO7816 application to be used by the initiator.
[in] | application | a pointer to an nfc_tech_iso7816_app_t instance as defined by the MuNFC stack |
Implements NFCRemoteInitiator.
|
protectedinherited |
Build NDEF message.
[in,out] | buffer_builder | a buffer builder in which to create the NDEF message. The backing buffer is guaranteed to be continuous. |
|
virtual |
|
protectedvirtualinherited |
Mark endpoint as connected.
Implements NFCRemoteEndpoint.
|
virtual |
|
protectedvirtualinherited |
Mark endpoint as disconnected.
Implements NFCRemoteEndpoint.
|
virtual |
Check if the endpoint is connected.
Implements NFCRemoteEndpoint.
|
virtual |
Check if the endpoint is disconnected/lost.
Implements NFCRemoteEndpoint.
|
virtual |
Retrieve whether ISO7816 applications are supported by the underlying technology.
Implements NFCRemoteInitiator.
|
virtual |
Check if this instance actually supports NDEF content.
Reimplemented from NFCNDEFCapable.
|
protectedinherited |
Retrieve underlying NDEF message instance.
|
protectedinherited |
Retrieve NFCController instance.
|
protectedinherited |
Retrieve NFCController instance.
|
virtual |
Retrieve the NFC tag type exposed by the controller to communicate with the initiator.
Implements NFCRemoteInitiator.
|
protectedinherited |
Parse a NDEF message.
[in] | buffer | a buffer containing a NDEF message |
|
virtual |
Get the list of RF protocols supported and activated over the air interface.
Implements NFCRemoteEndpoint.
|
inherited |
Set the delegate that will receive events generated by the initiator.
[in] | delegate | the delegate instance to use |