26 bool check(Ts...
x)
override {
return this->parent_->is_writing(); }
30 void play(Ts...
x)
override { this->parent_->set_tag_emulation_off(); }
34 void play(Ts...
x)
override { this->parent_->set_tag_emulation_on(); }
38 void play(Ts...
x)
override { this->parent_->set_polling_off(); }
42 void play(Ts...
x)
override { this->parent_->set_polling_on(); }
46 void play(Ts...
x)
override { this->parent_->clean_mode(); }
50 void play(Ts...
x)
override { this->parent_->format_mode(); }
54 void play(Ts...
x)
override { this->parent_->read_mode(); }
58 TEMPLATABLE_VALUE(std::string, message)
59 TEMPLATABLE_VALUE(
bool, include_android_app_record)
61 void play(Ts...
x)
override {
62 this->parent_->set_tag_emulation_message(this->message_.optional_value(
x...),
63 this->include_android_app_record_.optional_value(
x...));
68 TEMPLATABLE_VALUE(std::string, message)
69 TEMPLATABLE_VALUE(
bool, include_android_app_record)
71 void play(Ts...
x)
override {
72 this->parent_->set_tag_write_message(this->message_.optional_value(
x...),
73 this->include_android_app_record_.optional_value(
x...));
78 void play(Ts...
x)
override { this->parent_->write_mode(); }
PN7160OnEmulatedTagScanTrigger(PN7160 *parent)
PN7160OnFinishedWriteTrigger(PN7160 *parent)
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
Base class for all automation conditions.
bool check(Ts... x) override
void add_on_finished_write_callback(std::function< void()> callback)
void add_on_emulated_tag_scan_callback(std::function< void()> callback)
Implementation of SPI Controller mode.
Helper class to easily give an object a parent of type T.