Struct pn532::p2p::initiator

Inheritance Relationships

Derived Type

Struct Documentation

struct initiator

Generic interface of a P2P NFC module acting as initiator in P2P communication. This sends commands and expects answers.

Subclassed by pn532::p2p::pn532_initiator

Public Functions

virtual result<mlab::bin_data> communicate(mlab::bin_data const &data, ms timeout) = 0

Sends data and receives an answer.

Parameters:
Returns:

The data sent by the target as a response, or any of the channel_error error conditions.

virtual ~initiator() = default