Struct pn532::p2p::initiator
Defined in File p2p.hpp
Inheritance Relationships
Derived Type
public pn532::p2p::pn532_initiator
(Class pn532::p2p::pn532_initiator)
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:
data – Data to send.
timeout – Maximum time after which channel_error::timeout is returned.
- Returns:
The data sent by the target as a response, or any of the channel_error error conditions.
-
virtual ~initiator() = default
-
virtual result<mlab::bin_data> communicate(mlab::bin_data const &data, ms timeout) = 0