Wafer.DLL.Tx (wafer v1.0.1)

A bytewise transmission buffer for our data link layer.

Link to this section Summary

Functions

Initialize a new transmission buffer from a term.

Get the next byte to transmit.

Link to this section Types

Specs

t() :: %Wafer.DLL.Tx{buffer: binary(), state: any()}

Link to this section Functions

Specs

init(any()) :: t()

Initialize a new transmission buffer from a term.

Specs

tx(t()) :: {byte(), t()} | :done

Get the next byte to transmit.