Skip to main content

V2ipPtpMessages

Struct V2ipPtpMessages 

Source
pub struct V2ipPtpMessages {
    pub log_announce_interval: i8,
    pub log_sync_interval: i8,
    pub log_delay_req_interval: i8,
    pub announce_timeout: u8,
    pub dscp: u8,
    pub sap_expire_min: u8,
    pub sap_interval_s: u16,
    pub stream_ttl: u8,
    pub sink_rotation: u16,
    pub sink_rotation_step: u16,
}
Expand description

How a OneIP device paces its PTP messages, its SAP timings, its streams’ TTL and its output’s rotation, which a frame carries in the same block. Each value is behind its own bit of V2ipDeviceSettings::valid, one of SETTINGS_BLOCK.

Intervals are base-2 logarithms of seconds, so -3 is 125 ms and 1 is 2 s.

Fields§

§log_announce_interval: i8

Between announce messages, behind PTP_ANNOUNCE.

§log_sync_interval: i8

Between sync messages, behind PTP_SYNC.

§log_delay_req_interval: i8

Between delay requests, behind PTP_DELAY_REQ.

§announce_timeout: u8

The announce intervals before a silent master is dropped, behind PTP_ANNOUNCE_TIMEOUT.

§dscp: u8

The DSCP of the messages, at most V2IP_DSCP_MAX, behind PTP_DSCP.

§sap_expire_min: u8

The minutes after which a SAP announcement the device heard is forgotten, behind SAP_EXPIRE.

§sap_interval_s: u16

The seconds between the device’s SAP announcements, behind SAP_INTERVAL.

§stream_ttl: u8

The TTL of the device’s streams, 1 to 255, behind STREAM_TTL. A device whose video processor cannot change it keeps the setting and sends V2IP_STREAM_TTL_DEFAULT.

§sink_rotation: u16

The degrees the device’s HDMI output is turned by, clockwise, at most V2IP_SINK_ROTATION_MAX, behind SINK_ROTATION.

§sink_rotation_step: u16

The step the output turns by: the device takes only an angle that is a multiple of it, and 0 alone when it is 0. Only the device reports it, behind the same bit.

Trait Implementations§

Source§

impl Clone for V2ipPtpMessages

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for V2ipPtpMessages

Source§

impl Debug for V2ipPtpMessages

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for V2ipPtpMessages

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for V2ipPtpMessages

Source§

impl PartialEq for V2ipPtpMessages

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for V2ipPtpMessages

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.