This class represents a NFC target (either a remote target when the local controller in in initiator mode, or a target connected through a wired connection). More...
#include <NFCTarget.h>
 
  
 | Data Structures | |
| struct | Delegate | 
| Public Member Functions | |
| NFCTarget (const Span< uint8_t > &buffer) | |
| Create a NFCTarget.  More... | |
| virtual | ~NFCTarget () | 
| NFCTarget destructor.  More... | |
| virtual void | write_ndef_message ()=0 | 
| Write a NDEF message to the target.  More... | |
| virtual void | read_ndef_message ()=0 | 
| Read a NDEF message from the target.  More... | |
| virtual void | erase_ndef_message ()=0 | 
| Erase the NDEF message in the target.  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... | |
This class represents a NFC target (either a remote target when the local controller in in initiator mode, or a target connected through a wired connection).
A target can be a NFC tag/card, a NFC-enabled phone or other NFC device capable of modulating a RF field.
Definition at line 41 of file NFCTarget.h.
Create a NFCTarget.
| [in] | buffer | a bytes array used to store NDEF messages | 
| 
 | 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. | 
| 
 | pure virtual | 
Erase the NDEF message in the target.
on_ndef_message_erased() will be called on completion.
Implemented in NFCEEPROM.
| 
 | virtualinherited | 
Check if this instance actually supports NDEF content.
Reimplemented in Type4RemoteInitiator.
Definition at line 56 of file NFCNDEFCapable.h.
| 
 | protectedinherited | 
Retrieve underlying NDEF message instance.
| 
 | protectedinherited | 
Parse a NDEF message.
| [in] | buffer | a buffer containing a NDEF message | 
| 
 | pure virtual | 
Read a NDEF message from the target.
on_ndef_message_read() will be called on completion.
Implemented in NFCEEPROM.
| 
 | pure virtual | 
Write a NDEF message to the target.
on_ndef_message_written() will be called on completion.
Implemented in NFCEEPROM.