Wafer.DLL.Tx (wafer v1.1.1)

View Source

A bytewise transmission buffer for our data link layer.

Summary

Functions

Initialize a new transmission buffer from a term.

Get the next byte to transmit.

Types

t()

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

Functions

complete?(tx)

init(term)

@spec init(any()) :: t()

Initialize a new transmission buffer from a term.

tx(tx)

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

Get the next byte to transmit.