IO::Modbus::ADU Struct Reference
#include <ADU.h>
Collaboration diagram for IO::Modbus::ADU:
Public Member Functions | |||||
Prepare outgoing packet | |||||
The
| |||||
size_t | prepareRequest () | ||||
size_t | prepareResponse () | ||||
Parse a received packet | |||||
| |||||
ErrorCode | parseRequest (size_t receivedSize) | ||||
ErrorCode | parseResponse (size_t receivedSize) | ||||
Public Attributes | |
union { | |
struct { | |
uint8_t slaveAddress | |
PDU pdu | |
} | |
uint8_t buffer [MaxSize] | |
}; | |
Static Public Attributes | |
static constexpr uint8_t | BROADCAST_ADDRESS {0x00} |
static constexpr size_t | MinSize {4} |
static constexpr size_t | MaxSize {256} |
Member Function Documentation
◆ parseRequest()
◆ parseResponse()
◆ prepareRequest()
size_t IO::Modbus::ADU::prepareRequest | ( | ) |
◆ prepareResponse()
size_t IO::Modbus::ADU::prepareResponse | ( | ) |
Member Data Documentation
◆ @74
union { ... } |
◆ BROADCAST_ADDRESS
|
staticconstexpr |
◆ buffer
◆ MaxSize
|
staticconstexpr |
◆ MinSize
|
staticconstexpr |
◆ pdu
PDU IO::Modbus::ADU::pdu |
◆ slaveAddress
uint8_t IO::Modbus::ADU::slaveAddress |
The documentation for this struct was generated from the following file: