pub struct EnsembleInputParameters {
pub limits: [bool; 8],
pub levels: [InputNominalLevel; 8],
pub gains: [u8; 4],
pub phantoms: [bool; 4],
pub polarities: [bool; 4],
pub opt_iface_mode: OptIfaceMode,
}
Expand description
Parameters of analog/digital inputs. The gains, phantoms, and polarities parameters are available when channel 0-3 levels are for mic.
Fields§
§limits: [bool; 8]
Whether to enable/disable limitter of analog inputs.
levels: [InputNominalLevel; 8]
The nominal level of analog inputs.
gains: [u8; 4]
The gain of microphone inputs.
phantoms: [bool; 4]
Whether to enable/disable phantom powering for microphone inputs.
polarities: [bool; 4]
Whether to invert polarity for microphone inputs.
opt_iface_mode: OptIfaceMode
The mode of optical inputs.
Trait Implementations§
Source§impl Clone for EnsembleInputParameters
impl Clone for EnsembleInputParameters
Source§fn clone(&self) -> EnsembleInputParameters
fn clone(&self) -> EnsembleInputParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnsembleInputParameters
impl Debug for EnsembleInputParameters
Source§impl Default for EnsembleInputParameters
impl Default for EnsembleInputParameters
Source§fn default() -> EnsembleInputParameters
fn default() -> EnsembleInputParameters
Returns the “default value” for a type. Read more
Source§impl EnsembleParametersConverter<EnsembleInputParameters> for EnsembleInputProtocol
impl EnsembleParametersConverter<EnsembleInputParameters> for EnsembleInputProtocol
Source§fn parse_cmds(params: &mut EnsembleInputParameters, cmds: &[EnsembleCmd])
fn parse_cmds(params: &mut EnsembleInputParameters, cmds: &[EnsembleCmd])
Parse the given vector of commands for parameters.
Source§fn build_cmds(params: &EnsembleInputParameters) -> Vec<EnsembleCmd>
fn build_cmds(params: &EnsembleInputParameters) -> Vec<EnsembleCmd>
Build vector of commands by the given parameters.
Source§impl From<&EnsembleInputParameters> for Vec<EnsembleCmd>
impl From<&EnsembleInputParameters> for Vec<EnsembleCmd>
Source§fn from(params: &EnsembleInputParameters) -> Self
fn from(params: &EnsembleInputParameters) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnsembleInputParameters
impl PartialEq for EnsembleInputParameters
Source§fn eq(&self, other: &EnsembleInputParameters) -> bool
fn eq(&self, other: &EnsembleInputParameters) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for EnsembleInputParameters
impl Eq for EnsembleInputParameters
impl StructuralPartialEq for EnsembleInputParameters
Auto Trait Implementations§
impl Freeze for EnsembleInputParameters
impl RefUnwindSafe for EnsembleInputParameters
impl Send for EnsembleInputParameters
impl Sync for EnsembleInputParameters
impl Unpin for EnsembleInputParameters
impl UnwindSafe for EnsembleInputParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more