Harald.HCI.Commands.Command behaviour (harald v0.3.0) View Source

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Specs

decode(binary()) :: {:ok, Command.t()} | {:error, any()}
Link to this callback

decode_return_parameters(binary)

View Source

Specs

decode_return_parameters(binary()) :: {:ok, map()} | {:error, any()}

Specs

encode(Command.t()) :: {:ok, binary()} | {:error, any()}
Link to this callback

encode_return_parameters(map)

View Source

Specs

encode_return_parameters(map()) :: {:ok, binary()} | {:error, any()}

Specs

ocf() :: {:ok, Commands.ocf()} | {:error, any()}