pub struct IofwMixerParams {
    pub mixer_pairs: [IofwMixerPair; 4],
    pub blend_knob: u32,
    pub master_knob: u32,
}
Expand description

Parametes of source pairs for mixer.

Fields§

§mixer_pairs: [IofwMixerPair; 4]

The setting of each mixer.

§blend_knob: u32

The value of master knob, between 0 and 0x100.

§master_knob: u32

The value of master knob, between 0 and 0x100.

Trait Implementations§

source§

impl Clone for IofwMixerParams

source§

fn clone(&self) -> IofwMixerParams

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 IofwMixerParams

source§

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

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

impl PartialEq for IofwMixerParams

source§

fn eq(&self, other: &IofwMixerParams) -> 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 Eq for IofwMixerParams

source§

impl StructuralEq for IofwMixerParams

source§

impl StructuralPartialEq for IofwMixerParams

Auto Trait Implementations§

Blanket Implementations§

source§

impl<O> AlesisFluctuatedParametersOperation<IofwMixerParams> for O

source§

const FLUCTUATED_OFFSET_RANGES: &'static [Range<usize>] = const FLUCTUATED_OFFSET_RANGES: &'static [Range<usize>] = &[Range{ start: MIXER_OUTPUT_VOLUME_OFFSET, end: MIXER_OUTPUT_VOLUME_OFFSET + 8,}, Range{ start: KNOB_PARAMS_OFFSET, end: KNOB_PARAMS_OFFSET + KNOB_PARAMS_SIZE,}];

The set of address offsets in which any value is changed apart from software operation.
source§

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

Cache part of offset ranges for fluctuated values, then deserialize for parameters.
source§

impl<O> AlesisMutableParametersOperation<IofwMixerParams> for O

source§

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

Update the hardware partially for any change of parameter.
source§

impl<O> AlesisParametersSerdes<IofwMixerParams> for O

source§

const NAME: &'static str = const NAME: &'static str = "mixer";

The name of parameters
source§

const OFFSET_RANGES: &'static [Range<usize>] = const OFFSET_RANGES: &'static [Range<usize>] = &[Range{ start: MIXER_PARAMS_OFFSET, end: MIXER_PARAMS_OFFSET + MIXER_PARAMS_SIZE,}, Range{ start: KNOB_PARAMS_OFFSET, end: KNOB_PARAMS_OFFSET + KNOB_PARAMS_SIZE,}];

The range of offset for parameters.
source§

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

Serialize parameters to raw layout of data.
source§

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

Deserialize parameters from raw layout of data.
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.