Wafer.DLL.Rx (wafer v1.0.2)

Bytewise reception buffer for our data link layer.

Link to this section Summary

Functions

Has the reception completed successfully?

Was there an error during reception?

Initialize a new empty buffer reading for receiving.

Receive a byte into the buffer.

Attempt to retrieve the received value from the buffer.

Link to this section Types

Specs

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

Link to this section Functions

Specs

complete?(t()) :: boolean()

Has the reception completed successfully?

Specs

error?(t()) :: boolean()

Was there an error during reception?

Initialize a new empty buffer reading for receiving.

Specs

rx(t(), byte()) :: t()

Receive a byte into the buffer.

Specs

value(t()) :: {:ok, any()} | {:error, any()}

Attempt to retrieve the received value from the buffer.