wafer v0.1.0 Wafer.DLL.Tx

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

Link to this type

t()

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

Link to this section Functions

Link to this function

init(term)

init(any()) :: t()

Initialize a new transmission buffer from a term.

Link to this function

tx(tx)

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

Get the next byte to transmit.