ArtNet.Packet.EnumTable.RdmCommand (ArtNet v0.1.0)

View Source

ArtRdm command values used by ArtNet.Packet.ArtRdm.

Values

AtomDescriptionValue
ar_processProcess the embedded RDM data.0x0 / 0b00000000

Summary

Functions

Returns the integer code for :ar_process.

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

type()

@type type() :: :ar_process

Functions

ar_process()

@spec ar_process() :: non_neg_integer()

Returns the integer code for :ar_process.

The code is 0x0.

bit_size()

@spec bit_size() :: pos_integer()

Returns the number of bits used to encode values in this enum table.

to_atom(code)

@spec to_atom(term()) :: {:ok, type()} | :error

Converts an integer code into its enum atom.

Returns {:ok, atom} when the code is defined by this enum table, or :error otherwise.

to_code(value)

@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.