ESPHome 2025.5.0
Loading...
Searching...
No Matches
gpio_one_wire.h
Go to the documentation of this file.
1#pragma once
2
4#include "esphome/core/hal.h"
6
7namespace esphome {
8namespace gpio {
9
11 public:
12 void setup() override;
13 void dump_config() override;
14 float get_setup_priority() const override { return setup_priority::BUS; }
15
17 this->t_pin_ = pin;
18 this->pin_ = pin->to_isr();
19 }
20
21 void write8(uint8_t val) override;
22 void write64(uint64_t val) override;
23 uint8_t read8() override;
24 uint64_t read64() override;
25
26 protected:
30 bool last_device_flag_{false};
31 uint64_t address_;
32
33 int reset_int() override;
34 void reset_search() override;
35 uint64_t search_int() override;
36 void write_bit_(bool bit);
37 bool read_bit_();
38 bool read_bit_(uint32_t *t);
39};
40
41} // namespace gpio
42} // namespace esphome
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
Definition gpio.h:73
virtual ISRInternalGPIOPin to_isr() const =0
float get_setup_priority() const override
void set_pin(InternalGPIOPin *pin)
void write64(uint64_t val) override
void write8(uint8_t val) override
bool read_bit_(uint32_t *t)
mopeka_std_values val[4]
const float BUS
For communication buses like i2c/spi.
Definition component.cpp:16
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7