42DECLARE_REMOTE_PROTOCOL(CanalSat)
46 TEMPLATABLE_VALUE(uint8_t, device)
47 TEMPLATABLE_VALUE(uint8_t,
address)
48 TEMPLATABLE_VALUE(uint8_t, command)
52 data.device = this->device_.value(
x...);
53 data.address = this->address_.value(
x...);
54 data.command = this->command_.value(
x...);
55 CanalSatProtocol().encode(dst, data);
59DECLARE_REMOTE_PROTOCOL(CanalSatLD)
61template<
typename... Ts>
class CanalSatLDAction :
public RemoteTransmitterActionBase<Ts...> {
63 TEMPLATABLE_VALUE(uint8_t, device)
64 TEMPLATABLE_VALUE(uint8_t,
address)
65 TEMPLATABLE_VALUE(uint8_t, command)
67 void encode(RemoteTransmitData *dst, Ts...
x) {
69 data.device = this->device_.value(
x...);
70 data.address = this->address_.value(
x...);
71 data.command = this->command_.value(
x...);
72 CanalSatLDProtocol().encode(dst, data);
void dump(const CanalSatData &data) override
void encode(RemoteTransmitData *dst, const CanalSatData &data) override
optional< CanalSatData > decode(RemoteReceiveData src) override
const std::vector< uint8_t > & data
bool operator==(const CanalSatData &rhs) const