23DECLARE_REMOTE_PROTOCOL(NEC)
27 TEMPLATABLE_VALUE(uint16_t,
address)
28 TEMPLATABLE_VALUE(uint16_t, command)
29 TEMPLATABLE_VALUE(uint16_t, command_repeats)
33 data.
address = this->address_.value(
x...);
34 data.command = this->command_.value(
x...);
35 data.command_repeats = this->command_repeats_.value(
x...);
36 NECProtocol().encode(dst, data);
void dump(const NECData &data) override
void encode(RemoteTransmitData *dst, const NECData &data) override
optional< NECData > decode(RemoteReceiveData src) override
Providing packet encoding functions for exchanging data with a remote host.
bool operator==(const NECData &rhs) const