pub struct DesktopHwState {
    pub meter_target: MeterTarget,
    pub mixer_output_monaural: bool,
    pub knob_assign_to_hp: bool,
    pub mixer_output_dim_enabled: bool,
    pub mixer_output_dim_volume: i32,
    pub input_scene: InputScene,
    pub reverb_to_master: bool,
    pub reverb_to_hp: bool,
    pub master_knob_backlight: bool,
    pub mic_0_phantom: bool,
    pub mic_0_boost: bool,
}
Expand description

General state of hardware.

Fields§

§meter_target: MeterTarget

The target of meter in surface.

§mixer_output_monaural: bool

Use mixer output as monaural.

§knob_assign_to_hp: bool

Whether to adjust volume of headphone output by main knob.

§mixer_output_dim_enabled: bool

Whether to dim main output.

§mixer_output_dim_volume: i32

The volume of main output if dimmed between -1000..-60. (-94.0..-6.0 dB)

§input_scene: InputScene

The use case of analog input 1/2.

§reverb_to_master: bool

Multiplex reverb signal to stream input 1/2 in advance.

§reverb_to_hp: bool

Multiplex reverb signal to stream input 3/4 in advance.

§master_knob_backlight: bool

Turn on backlight in master knob.

§mic_0_phantom: bool

Phantom powering in microphone 1.

§mic_0_boost: bool

Signal boost in microphone 1 by 12 dB.

Trait Implementations§

source§

impl Clone for DesktopHwState

source§

fn clone(&self) -> DesktopHwState

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for DesktopHwState

source§

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

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

impl Default for DesktopHwState

source§

fn default() -> DesktopHwState

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

impl PartialEq for DesktopHwState

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TcKonnektMutableSegmentOperation<DesktopHwState> for Desktopk6Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektNotifiedSegmentOperation<DesktopHwState> for Desktopk6Protocol

source§

const NOTIFY_FLAG: u32 = 65_536u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektSegmentSerdes<DesktopHwState> for Desktopk6Protocol

source§

const NAME: &'static str = "hardware-state"

The name of segment.
source§

const OFFSET: usize = 8usize

The offset of segment.
source§

const SIZE: usize = 144usize

The size of segment.
source§

fn serialize(params: &DesktopHwState, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut DesktopHwState, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl Copy for DesktopHwState

source§

impl Eq for DesktopHwState

source§

impl StructuralEq for DesktopHwState

source§

impl StructuralPartialEq for DesktopHwState

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> 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,

§

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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.