#include <one_wire.h>
Definition at line 14 of file one_wire.h.
◆ check_address_()
bool esphome::one_wire::OneWireDevice::check_address_ |
( |
| ) |
|
|
protected |
find an address if necessary should be called from setup
Definition at line 23 of file one_wire.cpp.
◆ get_address_name()
const std::string & esphome::one_wire::OneWireDevice::get_address_name |
( |
| ) |
|
Helper to create (and cache) the name for this sensor. For example "0xfe0000031f1eaf29".
Definition at line 8 of file one_wire.cpp.
◆ send_command_()
bool esphome::one_wire::OneWireDevice::send_command_ |
( |
uint8_t |
cmd | ) |
|
|
protected |
send command on the bus
- Parameters
-
Definition at line 16 of file one_wire.cpp.
◆ set_address()
void esphome::one_wire::OneWireDevice::set_address |
( |
uint64_t |
address | ) |
|
|
inline |
store the address of the device
- Parameters
-
Definition at line 18 of file one_wire.h.
◆ set_one_wire_bus()
void esphome::one_wire::OneWireDevice::set_one_wire_bus |
( |
OneWireBus * |
bus | ) |
|
|
inline |
◆ unique_id()
std::string esphome::one_wire::OneWireDevice::unique_id |
( |
| ) |
|
◆ address_
uint64_t esphome::one_wire::OneWireDevice::address_ {0} |
|
protected |
◆ address_name_
std::string esphome::one_wire::OneWireDevice::address_name_ |
|
protected |
◆ bus_
OneWireBus* esphome::one_wire::OneWireDevice::bus_ {nullptr} |
|
protected |
The documentation for this class was generated from the following files:
- /opt/build/esphome/esphome/components/one_wire/one_wire.h
- /opt/build/esphome/esphome/components/one_wire/one_wire.cpp