Class pn532::any_frame

Inheritance Relationships

Base Type

  • public mlab::any_of< frame_type, frame, frame_type::error >

Class Documentation

class any_frame : public mlab::any_of<frame_type, frame, frame_type::error>

Any frame transmitted by the PN532, i.e. one of frame.

Note

In order to know which frame has to be extracted, parse first a frame_id, and then tie the stream and the frame_id together as follows:

bin_stream s{d};
frame_id id{};
s >> id;
any_frame f{};
std::tie(s, id) >> f;