The base class for all endpoints that can support NDEF content. More...
#include <NFCNDEFCapable.h>
Data Structures | |
| struct | Delegate |
Public Member Functions | |
| NFCNDEFCapable (const Span< uint8_t > &buffer) | |
| Construct a NFCNDEFCapable instance. More... | |
| virtual bool | is_ndef_supported () const |
| Check if this instance actually supports NDEF content. More... | |
Protected Member Functions | |
| 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... | |
The base class for all endpoints that can support NDEF content.
Definition at line 43 of file NFCNDEFCapable.h.
| NFCNDEFCapable | ( | const Span< uint8_t > & | buffer | ) |
Construct a NFCNDEFCapable instance.
| [in] | buffer | a bytes array used to store NDEF messages |
|
protected |
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 |
Check if this instance actually supports NDEF content.
Reimplemented in Type4RemoteInitiator.
Definition at line 56 of file NFCNDEFCapable.h.
|
protected |
Retrieve underlying NDEF message instance.
|
protected |
Parse a NDEF message.
| [in] | buffer | a buffer containing a NDEF message |