#include <modbus.h>
|
| | ModbusFrame (uint8_t address, const uint8_t *pdu, uint16_t pdu_len) |
| |
| uint16_t | size () const |
| |
| uint8_t | address () const |
| |
| std::span< const uint8_t > | pdu () const |
| | A PDU is [function code][data...] without address or CRC.
|
| |
Definition at line 28 of file modbus.h.
◆ ModbusFrame()
| esphome::modbus::ModbusFrame::ModbusFrame |
( |
uint8_t | address, |
|
|
const uint8_t * | pdu, |
|
|
uint16_t | pdu_len ) |
|
inline |
◆ address()
| uint8_t esphome::modbus::ModbusFrame::address |
( |
| ) |
const |
|
inline |
◆ pdu()
| std::span< const uint8_t > esphome::modbus::ModbusFrame::pdu |
( |
| ) |
const |
|
inline |
A PDU is [function code][data...] without address or CRC.
Only valid while the frame is alive. Requires a complete frame (size() >= MIN_FRAME_SIZE, guaranteed by the constructors)
Definition at line 47 of file modbus.h.
◆ size()
| uint16_t esphome::modbus::ModbusFrame::size |
( |
| ) |
const |
|
inline |
◆ data
The documentation for this struct was generated from the following file: