pub struct Config {
pub operation_mode: OperationMode,
pub edge: Edge,
pub frequency: Frequency,
pub ratio: Ratio,
pub gain_left: i8,
pub gain_right: i8,
}Expand description
PDM microphone driver Config
Fields§
§operation_mode: OperationModeUse stero or mono operation
edge: EdgeOn which edge the left channel should be samples
frequency: FrequencyClock frequency
ratio: RatioClock ratio
gain_left: i8Gain left, in units of 0.5 dB, from -40 (-20 dB) to 40 (+20 dB). Values outside that range are clamped.
gain_right: i8Gain right, in units of 0.5 dB, from -40 (-20 dB) to 40 (+20 dB). Values outside that range are clamped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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