18#ifndef MBED_NFC_TARGET_H
19#define MBED_NFC_TARGET_H
23#include "NFCDefinitions.h"
24#include "NFCNDEFCapable.h"
26#include "platform/Span.h"
The base class for all endpoints that can support NDEF content.
This class represents a NFC target (either a remote target when the local controller in in initiator ...
virtual void read_ndef_message()=0
Read a NDEF message from the target.
virtual ~NFCTarget()
NFCTarget destructor.
NFCTarget(const Span< uint8_t > &buffer)
Create a NFCTarget.
virtual void erase_ndef_message()=0
Erase the NDEF message in the target.
virtual void write_ndef_message()=0
Write a NDEF message to the target.
int nfc_err_t
Type for NFC errors.
Nonowning view to a sequence of contiguous elements.
virtual void on_ndef_message_read(nfc_err_t result)
The NDEF message reading request completed.
virtual void on_ndef_message_erased(nfc_err_t result)
The NDEF message erasing request completed.
virtual void on_ndef_message_written(nfc_err_t result)
The NDEF message writing request completed.