pub struct Dmx<'a> {
pub sequence: u8,
pub physical: u8,
pub port_address: PortAddress,
pub data: &'a [u8],
}Fields§
§sequence: u8The sequence number is used to ensure that ArtDmx packets are used in the correct order. When Art-Net is carried over a medium such as the Internet, it is possible that ArtDmx packets will reach the receiver out of order.
This field is incremented in the range 0x01 to 0xff to allow the receiving node to re-sequence packets.
The Sequence field is set to 0x00 to disable this feature.
physical: u8The physical input port from which DMX512 data was input. This field is used by the receiving device to discriminate between packets with identical Port-Address that have been generated by different input ports and so need to be merged.
port_address: PortAddressone of the 32,768 possible addresses to which a DMX frame can be directed. The Port-Address is a 15-bit number composed of Net+Sub-Net+Universe.
Bits: | 15 | 8-14 | 4-7 | 0-3 | | 0 | Net | SubNet | Universe |
data: &'a [u8]