pub struct PdmTxConfig {
pub clock: PdmTxClockConfig,
pub slot: PdmTxSlotConfig,
}Expand description
Full PDM TX unit configuration.
Fields§
§clock: PdmTxClockConfigTX clock settings.
slot: PdmTxSlotConfigTX slot and filter settings.
Implementations§
Source§impl PdmTxConfig
impl PdmTxConfig
Sourcepub fn new_codec_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
pub fn new_codec_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
Codec-line defaults (I2S_PDM_TX_*_DEFAULT_CONFIG).
Sourcepub fn new_raw_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
pub fn new_raw_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
Raw PDM TX defaults (no hardware PCM conversion).
Sourcepub fn new_dac_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
pub fn new_dac_default(sample_rate: Rate, mode: PdmSlotMode) -> Self
DAC-line defaults (I2S_PDM_TX_*_DAC_DEFAULT_CONFIG, HW v2+).
Trait Implementations§
Source§impl Clone for PdmTxConfig
Available on crate feature unstable only.
impl Clone for PdmTxConfig
Available on crate feature
unstable only.Source§fn clone(&self) -> PdmTxConfig
fn clone(&self) -> PdmTxConfig
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 moreSource§impl Debug for PdmTxConfig
Available on crate feature unstable only.
impl Debug for PdmTxConfig
Available on crate feature
unstable only.Source§impl PartialEq for PdmTxConfig
Available on crate feature unstable only.
impl PartialEq for PdmTxConfig
Available on crate feature
unstable only.impl Copy for PdmTxConfig
Available on crate feature
unstable only.impl StructuralPartialEq for PdmTxConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for PdmTxConfig
impl RefUnwindSafe for PdmTxConfig
impl Send for PdmTxConfig
impl Sync for PdmTxConfig
impl Unpin for PdmTxConfig
impl UnsafeUnpin for PdmTxConfig
impl UnwindSafe for PdmTxConfig
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)