View Source Wafer.DLL.Tx (wafer v1.1.0)

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

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

Functions

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

Initialize a new transmission buffer from a term.

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

Get the next byte to transmit.