ArtNet. Packet. BitField. GoodOutput
(ArtNet v0.1.0)
View Source
GoodOutput bit field used by ArtNet.Packet.ArtPollReply.
The packet contains one GoodOutput value for each of the four reported
ports. Each boolean describes the output state of that port.
Bit size
This bit field is encoded in 8 bits.
Bit layout
| Field | Description | Bits | Default | Value |
|---|---|---|---|---|
convert_sacn | Output is converting Art-Net to sACN. | 0 | required | boolean flag |
merge_ltp_mode | Port is merging in LTP mode. | 1 | required | boolean flag |
output_short | Output short condition has been detected. | 2 | required | boolean flag |
merging | Port is currently merging data. | 3 | required | boolean flag |
dmx_test_packet | DMX test packets are being output. | 4 | required | boolean flag |
dmx_sip | DMX SIP packets are being output. | 5 | required | boolean flag |
dmx_text | DMX text packets are being output. | 6 | required | boolean flag |
output_data | Output data is being transmitted. | 7 | required | boolean flag |
Summary
Functions
Returns the bit-field schema in declaration order.
Returns the total number of bits encoded by this bit field.
Decodes an unsigned integer into this bit-field struct.
Encodes this bit-field struct into an unsigned integer.
Types
Functions
@spec bit_field_schema() :: [ {key :: atom(), {ArtNet.Packet.BitField.schema_type(), {start_bit :: non_neg_integer(), length :: pos_integer()}}} ]
Returns the bit-field schema in declaration order.
@spec bit_size() :: pos_integer()
Returns the total number of bits encoded by this bit field.
This bit field is encoded in 8 bits.
@spec decode(non_neg_integer()) :: {:ok, t()} | :error
Decodes an unsigned integer into this bit-field struct.
@spec encode(t()) :: {:ok, non_neg_integer()} | :error
Encodes this bit-field struct into an unsigned integer.