View Source Circuits.UART.Framing.FourByte (circuits_uart v1.5.3)

Each message is 4 bytes. This framer doesn't do anything for the transmit direction, but for receives, it will collect bytes in batches of 4 before sending them up. The user can set up a framer timeout if they don't mind partial frames. This can be useful to resyncronize when bytes are dropped.

Summary

Functions

Link to this function

add_framing(data, rx_buffer)

View Source

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

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

Link to this function

frame_timeout(rx_buffer)

View Source

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

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

Link to this function

remove_framing(data, rx_buffer)

View Source

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