Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
NFCNDEFCapable Class Reference
[Nfc]
  The base class for all endpoints that can support NDEF content. More...
#include <NFCNDEFCapable.h>
Inherited by NFCRemoteInitiator, and NFCTarget.
| Public Member Functions | |
| NFCNDEFCapable (const Span< uint8_t > &buffer) | |
| Construct a NFCNDEFCapable instance. | |
| virtual bool | is_ndef_supported () const | 
| Check if this instance actually supports NDEF content. | |
| Protected Member Functions | |
| void | parse_ndef_message (const ac_buffer_t &buffer) | 
| Parse a NDEF message. | |
| void | build_ndef_message (ac_buffer_builder_t &buffer_builder) | 
| Build NDEF message. | |
| ndef_msg_t * | ndef_message () | 
| Retrieve underlying NDEF message instance. | |
Detailed Description
The base class for all endpoints that can support NDEF content.
Definition at line 42 of file NFCNDEFCapable.h.
Constructor & Destructor Documentation
| NFCNDEFCapable | ( | const Span< uint8_t > & | buffer ) | 
Construct a NFCNDEFCapable instance.
- Parameters:
- 
  [in] buffer a bytes array used to store NDEF messages 
Definition at line 28 of file NFCNDEFCapable.cpp.
Member Function Documentation
| void build_ndef_message | ( | ac_buffer_builder_t & | buffer_builder ) |  [protected] | 
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. 
Definition at line 44 of file NFCNDEFCapable.cpp.
| virtual bool is_ndef_supported | ( | ) | const  [virtual] | 
Check if this instance actually supports NDEF content.
- Returns:
- whether NDEF content is supported
Reimplemented in Type4RemoteInitiator.
Definition at line 55 of file NFCNDEFCapable.h.
| ndef_msg_t * ndef_message | ( | ) |  [protected] | 
Retrieve underlying NDEF message instance.
- Returns:
- pointer to NDEF message instance
Definition at line 77 of file NFCNDEFCapable.cpp.
| void parse_ndef_message | ( | const ac_buffer_t & | buffer ) |  [protected] | 
Parse a NDEF message.
- Parameters:
- 
  [in] buffer a buffer containing a NDEF message 
Definition at line 33 of file NFCNDEFCapable.cpp.
Generated on Tue Aug 9 2022 00:37:39 by
 1.7.2
 1.7.2