grizzly v0.8.5 Grizzly.CommandClass.Mappings View Source

Link to this section Summary

Link to this section Types

Link to this type

basic_class_name() View Source
basic_class_name() :: :controller | :static_controller | :routing_slave | :slave

Link to this type

command_class_byte() View Source
command_class_byte() :: byte()

Link to this type

command_class_name() View Source
command_class_name() :: atom()

Link to this type

command_class_type() View Source
command_class_type() :: :raw | :network | :application | :management

Link to this type

command_class_unk() View Source
command_class_unk() :: {:unk, byte() | command_class_name()}

Link to this type

generic_type_name() View Source
generic_type_name() :: atom()

Link to this type

specific_cmd_class_unk() View Source
specific_cmd_class_unk() ::
  {:unk, byte() | generic_type_name(), byte() | specific_type_name()}

Link to this type

specific_type_name() View Source
specific_type_name() :: atom()

Link to this section Functions

Link to this function

byte_to_basic_class(byte) View Source
byte_to_basic_class(byte()) :: basic_class_name() | command_class_unk()

Link to this function

byte_to_generic_class(byte) View Source
byte_to_generic_class(byte()) :: generic_type_name() | command_class_unk()

Link to this function

byte_to_specific_class(gen_byte, spec_byte) View Source
byte_to_specific_class(byte(), byte()) ::
  specific_type_name() | specific_cmd_class_unk()

Link to this function

command_from_byte(command_class_byte, byte) View Source
command_from_byte(command_class :: byte(), command :: byte()) ::
  command_class_name() | command_class_unk()

Link to this function

generic_class_to_byte(generic_class) View Source
generic_class_to_byte(generic_type_name()) :: byte() | command_class_unk()

Link to this function

is_network_command_class(byte) View Source
is_network_command_class(byte()) :: boolean()

Link to this function

specific_class_to_byte(gen_name, spec_name) View Source
specific_class_to_byte(generic_type_name(), specific_type_name()) ::
  byte() | specific_cmd_class_unk()