ArtNet. Packet. EnumTable. TodControlCommand
(ArtNet v0.1.0)
View Source
TOD control command values used by ArtNet.Packet.ArtTodControl.
Values
| Atom | Description | Value |
|---|---|---|
atc_none | No control command. | 0x0 / 0b00000000 |
atc_flush | Flush the Table of Devices. | 0x1 / 0b00000001 |
atc_end | End TOD control. | 0x2 / 0b00000010 |
atc_inc_on | Enable incremental discovery. | 0x3 / 0b00000011 |
atc_inc_off | Disable incremental discovery. | 0x4 / 0b00000100 |
Summary
Functions
Returns the integer code for :atc_end.
Returns the integer code for :atc_flush.
Returns the integer code for :atc_inc_off.
Returns the integer code for :atc_inc_on.
Returns the integer code for :atc_none.
Returns the number of bits used to encode values in this enum table.
Converts an integer code into its enum atom.
Converts an enum atom into its integer code.
Types
Functions
@spec atc_end() :: non_neg_integer()
Returns the integer code for :atc_end.
The code is 0x2.
@spec atc_flush() :: non_neg_integer()
Returns the integer code for :atc_flush.
The code is 0x1.
@spec atc_inc_off() :: non_neg_integer()
Returns the integer code for :atc_inc_off.
The code is 0x4.
@spec atc_inc_on() :: non_neg_integer()
Returns the integer code for :atc_inc_on.
The code is 0x3.
@spec atc_none() :: non_neg_integer()
Returns the integer code for :atc_none.
The code is 0x0.
@spec bit_size() :: pos_integer()
Returns the number of bits used to encode values in this enum table.
Converts an integer code into its enum atom.
Returns {:ok, atom} when the code is defined by this enum table, or
:error otherwise.
@spec to_code(term()) :: {:ok, non_neg_integer()} | :error
Converts an enum atom into its integer code.
Returns {:ok, code} when the atom is defined by this enum table, or
:error otherwise.