Struct artnet_protocol::PollReply[][src]

pub struct PollReply {
    pub address: Ipv4Addr,
    pub port: u16,
    pub version: [u8; 2],
    pub port_address: [u8; 2],
    pub oem: [u8; 2],
    pub ubea_version: u8,
    pub status_1: u8,
    pub esta_code: u16,
    pub short_name: [u8; 18],
    pub long_name: [u8; 64],
    pub node_report: [u8; 64],
    pub num_ports: [u8; 2],
    pub port_types: [u8; 4],
    pub good_input: [u8; 4],
    pub good_output: [u8; 4],
    pub swin: [u8; 4],
    pub swout: [u8; 4],
    pub sw_video: u8,
    pub sw_macro: u8,
    pub sw_remote: u8,
    pub style: u8,
    pub mac: [u8; 6],
    pub bind_ip: [u8; 4],
    pub bind_index: u8,
    pub status_2: u8,
    pub filler: [u8; 26],
    // some fields omitted
}

Gets send by the nodes in the network as a response to the Poll message

Fields

The IP address of the node

The port of the node, should always be 0x1936 / 6454

The version of the node

Bits 14-8 of the 15 bit Port-Address are encoded into the bottom 7 bits of the first byte. This is used in combination with SubSwitch and SwIn[] or SwOut[] to produce the full universe address.

Bits 7-4 of the 15 bit Port-Address are encoded into the bottom 4 bits of the second byte. This is used in combination with NetSwitch and SwIn[] or SwOut[] to produce the full universe address

The Oem word describes the equipment vendor and the feature set available. Bit 15 high indicates extended features available

This field contains the firmware version of the User Bios Extension Area (UBEA). If the UBEA is not programmed, this field contains zero.

General Status register. Will be expanded on in the future.

The ESTA manufacturer code. These codes are used to represent equipment manufacturer. They are assigned by ESTA. This field can be interpreted as two ASCII bytes representing the manufacturer initials.

The array represents a null terminated short name for the Node. The Controller uses the ArtAddress packet to program this string. Max length is 17 characters plus the null. This is a fixed length field, although the string it contains can be shorter than the field.

The array represents a null terminated long name for the Node. The Controller uses the ArtAddress packet to program this string. Max length is 63 characters plus the null. This is a fixed length field, although the string it contains can be shorter than the field.

The array is a textual report of the Node’s operating status or operational errors. It is primarily intended for ‘engineering’ data rather than ‘end user’ data. The field is formatted as: “#xxxx [yyyy..] zzzzz…” xxxx is a hex status code as defined in Table 3. yyyy is a decimal counter that increments every time the Node sends an ArtPollResponse. This allows the controller to monitor event changes in the Node. zzzz is an English text string defining the status. This is a fixed length field, although the string it contains can be shorter than the field.

The number of input or output ports. If number of inputs is not equal to number of outputs, the largest value is taken. Zero is a legal value if no input or output ports are implemented. The maximum value is 4. Nodes can ignore this field as the information is implicit in PortTypes[]

This array defines the operation and protocol of each channel. (A product with 4 inputs and 4 outputs would report 0xc0, 0xc0, 0xc0, 0xc0). The array length is fixed, independent of the number of inputs or outputs physically available on the Node.

This array defines input status of the node. Will be converted to a bitflag enum in the future.

This array defines output status of the node. Will be converted to a bitflag enum in the future.

Bits 3-0 of the 15 bit Port-Address for each of the 4 possible input ports are encoded into the low nibble

Bits 3-0 of the 15 bit Port-Address for each of the 4 possible output ports are encoded into the low nibble.

Set to 00 when video display is showing local data. Set to 01 when video is showing ethernet data. The field is now deprecated

If the Node supports macro key inputs, this byte represents the trigger values. The Node is responsible for ‘debouncing’ inputs. When the ArtPollReply is set to transmit automatically, (TalkToMe Bit 1), the ArtPollReply will be sent on both key down and key up events. However, the Controller should not assume that only one bit position has changed. The Macro inputs are used for remote event triggering or cueing.

If the Node supports remote trigger inputs, this byte represents the trigger values. The Node is responsible for ‘debouncing’ inputs. When the ArtPollReply is set to transmit automatically, (TalkToMe Bit 1), the ArtPollReply will be sent on both key down and key up events. However, the Controller should not assume that only one bit position has changed. The Remote inputs are used for remote event triggering or cueing.

The Style code defines the equipment style of the device.

MAC Address. Set to zero if node cannot supply this information.

If this unit is part of a larger or modular product, this is the IP of the root device

This number represents the order of bound devices. A lower number means closer to root device. A value of 1 means root device

Status 2. Will be expanded in the future

Transmit as zero. For future expansion.

Methods

impl PollReply
[src]

Convert this struct to a byte array.

Convert a byte array to an instance of this struct.

Trait Implementations

impl Debug for PollReply
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PollReply

impl Sync for PollReply