Exmbus.Parser.Ell.CommunicationControl (Exmbus v0.3.0)

View Source

This module represents the Communication Control (CC) field in the ELL layer.

Summary

Functions

Decode the CC (Communication Control) field from the ELL.

Functions

decode(arg)

Decode the CC (Communication Control) field from the ELL.

iex> decode_cc(<<0b00000000>>) {:ok, %{bidirectional: false}} iex> decode_cc(<<0b10000000>>) {:ok, %{bidirectional: true}}

encode(cc)