ESPHome 2026.2.4
Loading...
Searching...
No Matches
rx8130.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace rx8130 {
9
11 public:
12 void setup() override;
13 void update() override;
14 void dump_config() override;
15 void read_time();
16 void write_time();
17
18 protected:
19 void stop_(bool stop);
20};
21
22template<typename... Ts> class WriteAction : public Action<Ts...>, public Parented<RX8130Component> {
23 public:
24 void play(const Ts... x) override { this->parent_->write_time(); }
25};
26
27template<typename... Ts> class ReadAction : public Action<Ts...>, public Parented<RX8130Component> {
28 public:
29 void play(const Ts... x) override { this->parent_->read_time(); }
30};
31
32} // namespace rx8130
33} // namespace esphome
Helper class to easily give an object a parent of type T.
Definition helpers.h:1471
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
uint8_t size_t bool stop
Definition i2c.h:273
void play(const Ts... x) override
Definition rx8130.h:29
void play(const Ts... x) override
Definition rx8130.h:24
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t x
Definition tt21100.cpp:5