#include <one_wire.h>
Definition at line 14 of file one_wire.h.
◆ check_address_or_index_()
| bool esphome::one_wire::OneWireDevice::check_address_or_index_ |
( |
| ) |
|
|
protected |
find an address if necessary should be called from setup
Definition at line 21 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 14 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_index()
| void esphome::one_wire::OneWireDevice::set_index |
( |
uint8_t | index | ) |
|
|
inline |
◆ set_one_wire_bus()
| void esphome::one_wire::OneWireDevice::set_one_wire_bus |
( |
OneWireBus * | bus | ) |
|
|
inline |
◆ 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 |
◆ index_
◆ INDEX_NOT_SET
| uint8_t esphome::one_wire::OneWireDevice::INDEX_NOT_SET = 255 |
|
staticconstexprprotected |
The documentation for this class was generated from the following files: