pub struct PdmRxConfig {
pub clock: PdmRxClockConfig,
pub slot: PdmRxSlotConfig,
}Expand description
Full PDM RX unit configuration.
Fields§
§clock: PdmRxClockConfigRX clock settings.
slot: PdmRxSlotConfigRX slot settings.
Implementations§
Source§impl PdmRxConfig
impl PdmRxConfig
Sourcepub fn new_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
pub fn new_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
Default RX config; uses PCM when PDM2PCM is available, otherwise raw.
Sourcepub fn new_pcm_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
pub fn new_pcm_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
PCM RX defaults (requires hardware PDM2PCM support).
Sourcepub fn new_raw_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
pub fn new_raw_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
Raw PDM RX defaults (no hardware PCM conversion).
Trait Implementations§
Source§impl Clone for PdmRxConfig
Available on crate feature unstable only.
impl Clone for PdmRxConfig
Available on crate feature
unstable only.Source§fn clone(&self) -> PdmRxConfig
fn clone(&self) -> PdmRxConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PdmRxConfig
Available on crate feature
unstable only.Source§impl Debug for PdmRxConfig
Available on crate feature unstable only.
impl Debug for PdmRxConfig
Available on crate feature
unstable only.Source§impl PartialEq for PdmRxConfig
Available on crate feature unstable only.
impl PartialEq for PdmRxConfig
Available on crate feature
unstable only.impl StructuralPartialEq for PdmRxConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for PdmRxConfig
impl RefUnwindSafe for PdmRxConfig
impl Send for PdmRxConfig
impl Sync for PdmRxConfig
impl Unpin for PdmRxConfig
impl UnsafeUnpin for PdmRxConfig
impl UnwindSafe for PdmRxConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)