Mbed OS Reference
Loading...
Searching...
No Matches
NFCTarget::Delegate Struct Reference
Inheritance diagram for NFCTarget::Delegate:
NFCNDEFCapable::Delegate NFCEEPROM::Delegate

Public Member Functions

virtual void on_ndef_message_erased (nfc_err_t result)
 The NDEF message erasing request completed. More...
 
virtual void on_ndef_message_written (nfc_err_t result)
 The NDEF message writing request completed. More...
 
virtual void on_ndef_message_read (nfc_err_t result)
 The NDEF message reading request completed. More...
 
virtual void parse_ndef_message (const Span< const uint8_t > &buffer)
 Parse a NDEF message. More...
 
virtual size_t build_ndef_message (const Span< uint8_t > &buffer)
 Build a NDEF message. More...
 

Detailed Description

Definition at line 55 of file NFCTarget.h.

Member Function Documentation

◆ on_ndef_message_erased()

virtual void on_ndef_message_erased ( nfc_err_t  result)
virtual

The NDEF message erasing request completed.

Parameters
[in]resultNFC_OK or an error code on failure

Reimplemented in NFCEEPROM::Delegate.

Definition at line 61 of file NFCTarget.h.

◆ on_ndef_message_written()

virtual void on_ndef_message_written ( nfc_err_t  result)
virtual

The NDEF message writing request completed.

Parameters
[in]resultNFC_OK or an error code on failure

Reimplemented in NFCEEPROM::Delegate.

Definition at line 68 of file NFCTarget.h.

◆ on_ndef_message_read()

virtual void on_ndef_message_read ( nfc_err_t  result)
virtual

The NDEF message reading request completed.

Parameters
[in]resultNFC_OK or an error code on failure

Reimplemented in NFCEEPROM::Delegate.

Definition at line 75 of file NFCTarget.h.

◆ parse_ndef_message()

virtual void parse_ndef_message ( const Span< const uint8_t > &  buffer)
virtualinherited

Parse a NDEF message.

Parameters
[in]buffera buffer containing the message to parse

Definition at line 67 of file NFCNDEFCapable.h.

◆ build_ndef_message()

virtual size_t build_ndef_message ( const Span< uint8_t > &  buffer)
virtualinherited

Build a NDEF message.

Parameters
[in]buffera mutable buffer in which the message should be stored
Returns
the number of bytes actually used

Definition at line 76 of file NFCNDEFCapable.h.