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

View Source

TOD data command response values used by ArtNet.Packet.ArtTodData.

Values

AtomDescriptionValue
tod_fullPacket contains a full Table of Devices response.0x0 / 0b00000000
tod_nakRequest was rejected.0xFF / 0b11111111

Summary

Functions

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.

Returns the integer code for :tod_full.

Returns the integer code for :tod_nak.

Types

type()

@type type() :: :tod_full | :tod_nak

Functions

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.

tod_full()

@spec tod_full() :: non_neg_integer()

Returns the integer code for :tod_full.

The code is 0x0.

tod_nak()

@spec tod_nak() :: non_neg_integer()

Returns the integer code for :tod_nak.

The code is 0xFF.