ESPHome 2025.12.0-dev
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();
18 float get_setup_priority() const override { return setup_priority::DATA; }
19
20 protected:
21 void stop_(bool stop);
22};
23
24template<typename... Ts> class WriteAction : public Action<Ts...>, public Parented<RX8130Component> {
25 public:
26 void play(const Ts... x) override { this->parent_->write_time(); }
27};
28
29template<typename... Ts> class ReadAction : public Action<Ts...>, public Parented<RX8130Component> {
30 public:
31 void play(const Ts... x) override { this->parent_->read_time(); }
32};
33
34} // namespace rx8130
35} // namespace esphome
Helper class to easily give an object a parent of type T.
Definition helpers.h:918
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
float get_setup_priority() const override
Ensure RTC is initialized at the correct time in the setup sequence.
Definition rx8130.h:18
void play(const Ts... x) override
Definition rx8130.h:31
void play(const Ts... x) override
Definition rx8130.h:26
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
const float DATA
For components that import data from directly connected sensors like DHT.
Definition component.cpp:59
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t x
Definition tt21100.cpp:5