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

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.

Summary

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.