Struct SYN_ModbusMaster¶
Modbus Master instance configuration & transaction state.
#include <syn_modbus_master.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t | buf |
| uint16_t | count |
| uint8_t | exception_code |
| uint8_t | func_code |
| uint32_t | last_byte_tick_ms |
| uint16_t | read_count |
| uint16_t | read_data |
| uint32_t | request_tick_ms |
| uint8_t | response_fc |
| uint16_t | rx_len |
| uint8_t | slave_addr |
| uint16_t | start_addr |
| SYN_ModbusMaster_State | state |
| uint32_t | timeout_ms |
| uint16_t | tx_len |
Public Attributes Documentation¶
variable buf¶
Frame buffer
variable count¶
Register quantity / write value
variable exception_code¶
Exception code if error
variable func_code¶
Active function code
variable last_byte_tick_ms¶
Tick of last received RX byte
variable read_count¶
Number of registers read
variable read_data¶
Received read data buffer
variable request_tick_ms¶
Tick when request was dispatched
variable response_fc¶
Response function code
variable rx_len¶
Received response length
variable slave_addr¶
Target slave address (1–247)
variable start_addr¶
Target register start address
variable state¶
Master transaction state
variable timeout_ms¶
Response timeout limit in ms
variable tx_len¶
Transmitted request length
The documentation for this class was generated from the following file src/syntropic/proto/syn_modbus_master.h