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