Struct Mbox3SpecificParams

Source
pub struct Mbox3SpecificParams {
Show 15 fields pub standalone_use_case: StandaloneUseCase, pub master_knob_value: u8, pub master_knob_assigns: [bool; 6], pub mute_led: MuteLedState, pub mono_led: MonoLedState, pub spkr_led: SpkrLedState, pub dim_led: bool, pub duration_hold: u8, pub phantom_powering: bool, pub hpf_enables: [bool; 4], pub output_trims: [u8; 6], pub reverb_type: ReverbType, pub reverb_volume: u8, pub reverb_duration: u8, pub reverb_feedback: u8,
}
Expand description

Parameters specific to Mbox 3 pro.

Fields§

§standalone_use_case: StandaloneUseCase

Usecase at standalone mode.

§master_knob_value: u8

State of master knob.

§master_knob_assigns: [bool; 6]

Assignment map for master knob.

§mute_led: MuteLedState

State of mute LED.

§mono_led: MonoLedState

State of mono LED.

§spkr_led: SpkrLedState

State of spkr LED.

§dim_led: bool

Whether to use dim LED.

§duration_hold: u8

Duration till being activate by holding button.

§phantom_powering: bool

Whether to supply phantom powering.

§hpf_enables: [bool; 4]

Whether to enable High Pass Filter.

§output_trims: [u8; 6]

Volume of analog outputs.

§reverb_type: ReverbType

The type of reverb.

§reverb_volume: u8

Volume of reverb return.

§reverb_duration: u8

Duration of reverb.

§reverb_feedback: u8

Feedback of reverb.

Trait Implementations§

Source§

impl Clone for Mbox3SpecificParams

Source§

fn clone(&self) -> Mbox3SpecificParams

Returns a duplicate 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 Mbox3SpecificParams

Source§

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

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

impl Default for Mbox3SpecificParams

Source§

fn default() -> Mbox3SpecificParams

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

impl PartialEq for Mbox3SpecificParams

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TcatExtensionSectionNotifiedParamsOperation<Mbox3SpecificParams> for Mbox3Protocol

Source§

fn cache_extension_notified_params( req: &FwReq, node: &FwNode, sections: &ExtensionSections, caps: &ExtensionCaps, params: &mut Mbox3SpecificParams, msg: u32, timeout_ms: u32, ) -> Result<(), Error>

Cache state of hardware for notified parameters.
Source§

impl TcatExtensionSectionParamsOperation<Mbox3SpecificParams> for Mbox3Protocol

Source§

fn cache_extension_whole_params( req: &FwReq, node: &FwNode, sections: &ExtensionSections, _: &ExtensionCaps, params: &mut Mbox3SpecificParams, timeout_ms: u32, ) -> Result<(), Error>

Cache state of hardware for whole parameters.
Source§

impl TcatExtensionSectionPartialMutableParamsOperation<Mbox3SpecificParams> for Mbox3Protocol

Source§

fn update_extension_partial_params( req: &FwReq, node: &FwNode, sections: &ExtensionSections, _: &ExtensionCaps, params: &Mbox3SpecificParams, prev: &mut Mbox3SpecificParams, timeout_ms: u32, ) -> Result<(), Error>

Update state of hardware for partial parameters.
Source§

impl Copy for Mbox3SpecificParams

Source§

impl Eq for Mbox3SpecificParams

Source§

impl StructuralPartialEq for Mbox3SpecificParams

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

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.