Struct stm32_metapac::adf::regs::Sadcr
#[repr(transparent)]pub struct Sadcr(pub u32);
Expand description
ADF Sound activity detector (SAD) control register.
Tuple Fields§
§0: u32
Implementations§
§impl Sadcr
impl Sadcr
pub fn set_datcap(&mut self, val: Datcap)
pub fn set_datcap(&mut self, val: Datcap)
Data capture mode.
pub fn set_detcfg(&mut self, val: Detcfg)
pub fn set_detcfg(&mut self, val: Detcfg)
Sound trigger event configuration.
pub fn set_hysten(&mut self, val: bool)
pub fn set_hysten(&mut self, val: bool)
Hysteresis enable.
pub fn set_frsize(&mut self, val: Frsize)
pub fn set_frsize(&mut self, val: Frsize)
Frame size.
pub fn set_sadmod(&mut self, val: Sadmod)
pub fn set_sadmod(&mut self, val: Sadmod)
Sound activity detector working mode.
pub fn set_sadactive(&mut self, val: bool)
pub fn set_sadactive(&mut self, val: bool)
SAD Active flag.
Trait Implementations§
impl Copy for Sadcr
impl Eq for Sadcr
impl StructuralPartialEq for Sadcr
Auto Trait Implementations§
impl Freeze for Sadcr
impl RefUnwindSafe for Sadcr
impl Send for Sadcr
impl Sync for Sadcr
impl Unpin for Sadcr
impl UnwindSafe for Sadcr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)