|
ESPHome 2026.10.0-dev
|
Namespaces | |
| namespace | helpers |
Data Structures | |
| struct | CommandOptions |
| class | Modbus |
| class | ModbusClientDevice |
| Callback contract. More... | |
| class | ModbusClientHub |
| struct | ModbusDeviceCommand |
| struct | ModbusFrame |
| class | ModbusServerDevice |
| class | ModbusServerHub |
| class | MutablePackedBits |
| Mutable counterpart of PackedBits: set() writes bits in place (deliberately no proxy operator[]=). More... | |
| class | PackedBits |
| Read-only view of Modbus-packed bits: bit 0 of byte 0 is the first bit (LSB first), the layout coil/discrete-input values use on the wire. More... | |
Typedefs | |
| using | ResponseStatus = std::optional<ExceptionCode> |
| using | RegisterValues = StaticVector<uint16_t, MAX_NUM_OF_REGISTERS_TO_READ> |
Functions | |
| bool | succeeded (ResponseStatus status) |
| True when a transaction carried no exception. | |
| bool | operator== (FunctionCode lhs, uint8_t rhs) |
| bool | operator== (uint8_t lhs, FunctionCode rhs) |
| bool | operator!= (FunctionCode lhs, uint8_t rhs) |
| bool | operator!= (uint8_t lhs, FunctionCode rhs) |
| constexpr size_t | packed_bit_bytes (size_t bits) |
| Bits pack 8 per data byte, rounded up to whole bytes. | |
Variables | |
| const uint8_t | FUNCTION_CODE_USER_DEFINED_SPACE_1_INIT = 65 |
| Modbus definitions from specs: https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf. | |
| const uint8_t | FUNCTION_CODE_USER_DEFINED_SPACE_1_END = 72 |
| const uint8_t | FUNCTION_CODE_USER_DEFINED_SPACE_2_INIT = 100 |
| const uint8_t | FUNCTION_CODE_USER_DEFINED_SPACE_2_END = 110 |
| const uint8_t | FUNCTION_CODE_MASK = 0x7F |
| const uint8_t | FUNCTION_CODE_EXCEPTION_MASK = 0x80 |
| using esphome::modbus::RegisterValues = StaticVector<uint16_t, MAX_NUM_OF_REGISTERS_TO_READ> |
| using esphome::modbus::ResponseStatus = std::optional<ExceptionCode> |
|
strong |
|
strong |
| Enumerator | |
|---|---|
| CUSTOM | |
| COIL | |
| DISCRETE_INPUT | |
| HOLDING | |
| INPUT_REGISTER | |
| ESPDEPRECATED | |
Definition at line 58 of file modbus_definitions.h.
|
strong |
Definition at line 76 of file modbus_definitions.h.
|
strong |
|
strong |
Definition at line 21 of file modbus_definitions.h.
|
inline |
Definition at line 52 of file modbus_definitions.h.
|
inline |
Definition at line 53 of file modbus_definitions.h.
|
inline |
Definition at line 50 of file modbus_definitions.h.
|
inline |
Definition at line 51 of file modbus_definitions.h.
|
constexpr |
Bits pack 8 per data byte, rounded up to whole bytes.
Definition at line 133 of file modbus_definitions.h.
|
inline |
| const uint8_t esphome::modbus::FUNCTION_CODE_EXCEPTION_MASK = 0x80 |
Definition at line 74 of file modbus_definitions.h.
| const uint8_t esphome::modbus::FUNCTION_CODE_MASK = 0x7F |
Definition at line 73 of file modbus_definitions.h.
| const uint8_t esphome::modbus::FUNCTION_CODE_USER_DEFINED_SPACE_1_END = 72 |
Definition at line 16 of file modbus_definitions.h.
| const uint8_t esphome::modbus::FUNCTION_CODE_USER_DEFINED_SPACE_1_INIT = 65 |
Modbus definitions from specs: https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf.
Definition at line 15 of file modbus_definitions.h.
| const uint8_t esphome::modbus::FUNCTION_CODE_USER_DEFINED_SPACE_2_END = 110 |
Definition at line 19 of file modbus_definitions.h.
| const uint8_t esphome::modbus::FUNCTION_CODE_USER_DEFINED_SPACE_2_INIT = 100 |
Definition at line 18 of file modbus_definitions.h.