10 namespace remote_base {
15 for (
size_t i = 0; i < this->
len_; i++) {
47 this->code_static_ = code;
48 this->code_static_len_ =
len;
50 TEMPLATABLE_VALUE(uint32_t, carrier_frequency);
53 if (this->code_static_ !=
nullptr) {
54 for (
size_t i = 0; i < this->code_static_len_; i++) {
55 auto val = this->code_static_[i];
57 dst->
space(static_cast<uint32_t>(-
val));
59 dst->
mark(static_cast<uint32_t>(
val));
70 const int32_t *code_static_{
nullptr};
71 int32_t code_static_len_{0};
void set_data(const RawTimings &data)
const RawTimings & get_raw_data() const
void set_carrier_frequency(uint32_t carrier_frequency)
bool on_receive(RemoteReceiveData src) override
bool is_secondary() override
bool expect_space(uint32_t length)
bool expect_mark(uint32_t length)
std::vector< int32_t > RawTimings
void mark(uint32_t length)
bool matches(RemoteReceiveData src) override
void set_code_template(std::function< RawTimings(Ts...)> func)
void encode(RemoteTransmitData *dst, Ts... x) override
void set_code_static(const int32_t *code, size_t len)
void space(uint32_t length)
Implementation of SPI Controller mode.
void set_data(const int32_t *data)