Modbux.Rtu.Framer (Modbux v0.3.10) View Source

A framer for Modbus RTU frames. This framer doesn't do anything for the transmit direction, but for receives, it will collect bytes that follows the Modbus RTU protocol, it also execute the CRC validation and returns the frame or the error.

Link to this section Summary

Link to this section Functions

Link to this function

add_framing(data, state)

View Source

Callback implementation for Circuits.UART.Framing.add_framing/2.

Callback implementation for Circuits.UART.Framing.flush/2.

Callback implementation for Circuits.UART.Framing.frame_timeout/1.

Callback implementation for Circuits.UART.Framing.init/1.

Link to this function

remove_framing(data, state)

View Source

Callback implementation for Circuits.UART.Framing.remove_framing/2.