#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
ADC_ETC Global Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn trig_enable(&self) -> TrigEnable
pub const fn trig_enable(&self) -> TrigEnable
TRIG enable register.
Sourcepub const fn set_trig_enable(&mut self, val: TrigEnable)
pub const fn set_trig_enable(&mut self, val: TrigEnable)
TRIG enable register.
Sourcepub const fn pre_divider(&self) -> u8
pub const fn pre_divider(&self) -> u8
Pre-divider for trig delay and interval
Sourcepub const fn set_pre_divider(&mut self, val: u8)
pub const fn set_pre_divider(&mut self, val: u8)
Pre-divider for trig delay and interval
Sourcepub const fn dma_mode_sel(&self) -> DmaModeSel
pub const fn dma_mode_sel(&self) -> DmaModeSel
Select the trigger type of the DMA_REQ.
Sourcepub const fn set_dma_mode_sel(&mut self, val: DmaModeSel)
pub const fn set_dma_mode_sel(&mut self, val: DmaModeSel)
Select the trigger type of the DMA_REQ.
Sourcepub const fn set_softrst(&mut self, val: Softrst)
pub const fn set_softrst(&mut self, val: Softrst)
Software synchronous reset, active high.
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
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