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(); }
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
PN7150OnFinishedWriteTrigger(PN7150 *parent)
PN7150OnEmulatedTagScanTrigger(PN7150 *parent)
Base class for all automation conditions.
void add_on_finished_write_callback(std::function< void()> callback)
bool check(Ts... x) override
Implementation of SPI Controller mode.
void add_on_emulated_tag_scan_callback(std::function< void()> callback)
Helper class to easily give an object a parent of type T.