[][src]Struct x3::x3::FrameHeader

pub struct FrameHeader {
    pub source_id: u8,
    pub samples: u16,
    pub channels: u8,
    pub payload_len: usize,
    pub payload_crc: u16,
}

Fields

source_id: u8

Source Id of the stream

samples: u16

The number of samples in the frame

channels: u8

The number of channels

payload_len: usize

The length of the frame (bytes)

payload_crc: u16

The CRC16 value for the payload

Implementations

impl FrameHeader[src]

pub const LENGTH: usize[src]

The length of the header

pub const KEY: u16[src]

Fixed key marks the boundary of the frame 'x3'

pub const KEY_BUF: &'static [u8][src]

pub const P_KEY: usize[src]

The location of various bytes in the header

pub const P_SOURCE_ID: usize[src]

pub const P_CHANNELS: usize[src]

pub const P_SAMPLES: usize[src]

pub const P_PAYLOAD_SIZE: usize[src]

pub const P_TIME: usize[src]

pub const P_HEADER_CRC: usize[src]

CRC of the encoded payload, all the frames

pub const P_PAYLOAD_CRC: usize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.