Struct stm32_metapac::adf::regs::Dfltcr
#[repr(transparent)]pub struct Dfltcr(pub u32);
Expand description
ADF digital filter control register 0.
Tuple Fields§
§0: u32
Implementations§
§impl Dfltcr
impl Dfltcr
pub const fn dflten(&self) -> bool
pub const fn dflten(&self) -> bool
DFLT enable. This bit is set and reset by software. It is used to enable the digital filter.
pub fn set_dflten(&mut self, val: bool)
pub fn set_dflten(&mut self, val: bool)
DFLT enable. This bit is set and reset by software. It is used to enable the digital filter.
pub const fn dmaen(&self) -> bool
pub const fn dmaen(&self) -> bool
DMA requests enable. This bit is set and reset by software. It is used to control the generation of DMA request to transfer the processed samples into the memory.
pub fn set_dmaen(&mut self, val: bool)
pub fn set_dmaen(&mut self, val: bool)
DMA requests enable. This bit is set and reset by software. It is used to control the generation of DMA request to transfer the processed samples into the memory.
pub fn set_acqmod(&mut self, val: Acqmod)
pub fn set_acqmod(&mut self, val: Acqmod)
DFLT trigger mode.
pub fn set_trgsrc(&mut self, val: u8)
pub fn set_trgsrc(&mut self, val: u8)
DFLT trigger signal selection.
pub fn set_dfltrun(&mut self, val: bool)
pub fn set_dfltrun(&mut self, val: bool)
DFLT run status flag.
pub const fn dfltactive(&self) -> bool
pub const fn dfltactive(&self) -> bool
DFLT active flag.
pub fn set_dfltactive(&mut self, val: bool)
pub fn set_dfltactive(&mut self, val: bool)
DFLT active flag.
Trait Implementations§
impl Copy for Dfltcr
impl Eq for Dfltcr
impl StructuralPartialEq for Dfltcr
Auto Trait Implementations§
impl Freeze for Dfltcr
impl RefUnwindSafe for Dfltcr
impl Send for Dfltcr
impl Sync for Dfltcr
impl Unpin for Dfltcr
impl UnwindSafe for Dfltcr
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
)