15namespace lightwaverf {
26 void setup()
override;
29 void send_rx(
const std::vector<uint8_t> &msg, uint8_t repeats,
bool inverted,
int u_sec);
52 void set_data(
const std::vector<uint8_t> &data) { code_ = data; }
55 int repeats = this->repeat_.value(
x...);
56 int inverted = this->inverted_.value(
x...);
57 int pulse_length = this->pulse_length_.value(
x...);
58 std::vector<uint8_t> msg = this->code_.value(
x...);
This class simplifies creating components that periodically check a state.
void set_pin(InternalGPIOPin *pin_tx, InternalGPIOPin *pin_rx)
void print_msg_(uint8_t *msg, uint8_t len)
void send_rx(const std::vector< uint8_t > &msg, uint8_t repeats, bool inverted, int u_sec)
void dump_config() override
InternalGPIOPin * pin_rx_
InternalGPIOPin * pin_tx_
TEMPLATABLE_VALUE(std::vector< uint8_t >, code)
void set_data(const std::vector< uint8_t > &data)
TEMPLATABLE_VALUE(int, repeat)
void set_repeats(const int &data)
void set_inverted(const int &data)
void set_pulse_length(const int &data)
SendRawAction(LightWaveRF *parent)
TEMPLATABLE_VALUE(int, inverted)
TEMPLATABLE_VALUE(int, pulse_length)
Providing packet encoding functions for exchanging data with a remote host.