grizzly v0.8.5 Grizzly.CommandClass.Powerlevel View Source

Link to this section Summary

Link to this section Types

Link to this type

power_level_description() View Source
power_level_description() ::
  :normal_power
  | :minus1dBm
  | :minus2dBm
  | :minus3dBm
  | :minus4dBm
  | :minus5dBm
  | :minus6dBm
  | :minus7dBm
  | :minus8dBm
  | :minus9dBm

Link to this type

power_level_report() View Source
power_level_report() :: %{
  power_level: power_level_description(),
  timeout: non_neg_integer()
}

Link to this type

power_level_value() View Source
power_level_value() :: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Link to this type

status_of_operation_description() View Source
status_of_operation_description() ::
  :test_failed | :test_success | :test_in_progress

Link to this type

status_of_operation_value() View Source
status_of_operation_value() :: 0 | 1 | 2

Link to this type

test_node_report() View Source
test_node_report() :: %{
  test_node_id: non_neg_integer(),
  status_of_operation: status_of_operation_description(),
  test_frame_acknowledged_count: non_neg_integer()
}

Link to this section Functions

Link to this function

decode_power_level(int) View Source
decode_power_level(power_level_value()) :: power_level_description()

Link to this function

decode_status_of_operation(int) View Source
decode_status_of_operation(status_of_operation_value()) ::
  status_of_operation_description()

Link to this function

encode_power_level(other) View Source
encode_power_level(power_level_description()) ::
  {:ok, power_level_value()} | {:error, :invalid_arg, any()}