pub struct PdmConfig {
pub tx: Option<PdmTxConfig>,
pub rx: Option<PdmRxConfig>,
}Expand description
PDM mode configuration (simplex TX and/or RX).
Fields§
§tx: Option<PdmTxConfig>Optional TX unit configuration.
rx: Option<PdmRxConfig>Optional RX unit configuration.
Implementations§
Source§impl PdmConfig
impl PdmConfig
Sourcepub fn tx_only(tx: PdmTxConfig) -> Self
pub fn tx_only(tx: PdmTxConfig) -> Self
PDM TX only (recommended simplex setup).
Sourcepub fn rx_only(rx: PdmRxConfig) -> Self
pub fn rx_only(rx: PdmRxConfig) -> Self
PDM RX only (recommended simplex setup).
Trait Implementations§
impl Copy for PdmConfig
Available on crate feature
unstable only.impl StructuralPartialEq for PdmConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for PdmConfig
impl RefUnwindSafe for PdmConfig
impl Send for PdmConfig
impl Sync for PdmConfig
impl Unpin for PdmConfig
impl UnsafeUnpin for PdmConfig
impl UnwindSafe for PdmConfig
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)