Module rtu

Source
Expand description

Modbus RTU

Modules§

client
Modbus RTU client (master) specific functions.
server
Modbus RTU server (slave) specific functions.

Structs§

DecodedFrame
An extracted RTU PDU frame.
FrameLocation
The location of all bytes that belong to the frame.
Header
RTU header
RequestAdu
RTU Request ADU
ResponseAdu
RTU Response ADU

Functions§

crc16
Calculate the CRC (Cyclic Redundancy Check) sum.
decode
Decode RTU PDU frames from a buffer.
extract_frame
Extract a PDU frame out of a buffer.
request_pdu_len
Extract the PDU length out of the ADU request buffer.
response_pdu_len
Extract the PDU length out of the ADU response buffer.

Type Aliases§

SlaveId
Slave ID