Struct SYN_Modbus¶
Modbus RTU slave instance — frame buffer, config, and statistics.
#include <syn_modbus.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t * | buf |
| uint16_t | buf_size |
| uint16_t | bus_message_count |
| SYN_Modbus_Config | cfg |
| uint16_t | comm_event_counter |
| uint32_t | errors |
| bool | frame_ready |
| uint32_t | frames_rx |
| uint32_t | frames_tx |
| uint32_t | last_byte_tick |
| uint16_t | rx_len |
Public Attributes Documentation¶
variable buf¶
RX/TX buffer
variable buf_size¶
Buffer capacity
variable bus_message_count¶
Bus message count for FC 0x0C
variable cfg¶
Configuration snapshot
variable comm_event_counter¶
Event counter for FC 0x0B/0x0C
variable errors¶
CRC/framing error count
variable frame_ready¶
Complete frame available?
variable frames_rx¶
Total frames received
variable frames_tx¶
Total frames sent
variable last_byte_tick¶
Tick of last received byte
variable rx_len¶
Bytes received in current frame
The documentation for this class was generated from the following file src/syntropic/proto/syn_modbus.h