Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Private Types | Private Member Functions
NFCProcessController Class Reference

Wrapper class handles calls and callbacks for NFC controller drivers. More...

#include <NFCProcessCtrl.h>

Inheritance diagram for NFCProcessController:
NFCTestShim NFCRemoteInitiator::Delegate NFCController::Delegate

Public Member Functions

void cmd_get_max_ndef ()
 For an EEPROM, this queries and responds with the flash size, For a Controller, responds with the config macro TEST_NDEF_MSG_MAX. More...
 
virtual void parse_ndef_message (const mbed::Span< const uint8_t > &buffer)
 Parse a NDEF message. More...
 
virtual size_t build_ndef_message (const mbed::Span< uint8_t > &buffer)
 Build a NDEF message. More...
 

Private Types

Private Member Functions

virtual void on_nfc_target_discovered (const SharedPtr< NFCRemoteTarget > &nfc_target)
 A remote target was discovered (the local controller is in initiator mode). More...
 

Detailed Description

Wrapper class handles calls and callbacks for NFC controller drivers.

Note, that users must call "start" in order to start the discovery loop for controllers. An internal buffer stores the NFC message and records.

Definition at line 45 of file NFCProcessCtrl.h.

Member Function Documentation

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

Build a NDEF message.

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

Reimplemented from NFCNDEFCapable::Delegate.

void cmd_get_max_ndef ( )
virtual

For an EEPROM, this queries and responds with the flash size, For a Controller, responds with the config macro TEST_NDEF_MSG_MAX.

Implements NFCTestShim.

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

Parse a NDEF message.

Parameters
[in]buffera buffer containing the message to parse

Reimplemented from NFCNDEFCapable::Delegate.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.