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

Reference: version 5.1, vol 2, part E, 5.4.1.

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

encode(ogf_module, ocf_module, parameters \\ %{})

View Source
Link to this function

encode_op_code(ogf, ocf)

View Source

Specs

encode_op_code(ogf(), ocf()) :: op_code()
Link to this function

header(ogf, ocf, parameter_total_length)

View Source
Link to this function

new(ogf_module, ocf_module, parameters)

View Source

Link to this section Callbacks

Specs

decode(ocf(), binary()) :: {:ok, Harald.HCI.Commands.Command.t()} | :error

Specs

ocf_to_module(ocf()) ::
  {:ok, ocf_module()} | {:error, {:not_implemented, {module(), ocf()}}}

Specs

ogf() :: ogf()