pub struct V2ipScalingSettings {
pub mode: MxrSignalType,
pub refresh: u16,
pub flags: u8,
}Expand description
A V2IP output’s scaling mode, refresh rate and flags.
Fields§
§mode: MxrSignalTypeThe signal type the output scales to.
refresh: u16Refresh rate in Hz.
flags: u8The flag bits below.
Implementations§
Source§impl V2ipScalingSettings
impl V2ipScalingSettings
Sourcepub const fn configured_mode(&self) -> Option<(MxrSignalType, u16)>
pub const fn configured_mode(&self) -> Option<(MxrSignalType, u16)>
The mode this sink is configured to scale to, None when it has none.
The two are distinct on the wire: a sink with no mode configured leaves
SCALING_FLAG_MODE_VALID clear, and never sets it over a zero mode.
Trust it only where the sender reports
crate::DeviceInfo::config_initialised. Firmware without that builds
this block over uninitialised stack, where the valid bit itself is
noise.
Sourcepub const fn auto_scaling(&self) -> Option<bool>
pub const fn auto_scaling(&self) -> Option<bool>
Whether the output scales automatically, None when the sender did not
say.
Sourcepub fn merge(self, previous: Self) -> Self
pub fn merge(self, previous: Self) -> Self
Folds a received scaling config onto the cached one, field by field.
A write carries the mode or the options alone, so taking the block
wholesale would drop whichever half was not being written. The options
branch replaces the option bit rather than adding to it, which is what
lets an options-only write clear SCALING_FLAG_AUTO_SCALING.
Trait Implementations§
Source§impl Clone for V2ipScalingSettings
impl Clone for V2ipScalingSettings
Source§fn clone(&self) -> V2ipScalingSettings
fn clone(&self) -> V2ipScalingSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more