Struct Cfgr1
#[repr(transparent)]pub struct Cfgr1(pub u32);Expand description
configuration register 1
Tuple Fields§
§0: u32Implementations§
§impl Cfgr1
impl Cfgr1
pub const fn set_dmacfg(&mut self, val: Dmacfg)
pub const fn set_dmacfg(&mut self, val: Dmacfg)
direct memory access configuration
pub const fn set_scandir(&mut self, val: Scandir)
pub const fn set_scandir(&mut self, val: Scandir)
scan sequence direction
pub const fn set_extsel(&mut self, val: u8)
pub const fn set_extsel(&mut self, val: u8)
external trigger selection
pub const fn set_ovrmod(&mut self, val: Ovrmod)
pub const fn set_ovrmod(&mut self, val: Ovrmod)
overrun management mode
pub const fn set_autoff(&mut self, val: bool)
pub const fn set_autoff(&mut self, val: bool)
auto-off mode
pub const fn set_discen(&mut self, val: bool)
pub const fn set_discen(&mut self, val: bool)
discontinuous mode
pub const fn set_chselrmod(&mut self, val: bool)
pub const fn set_chselrmod(&mut self, val: bool)
mode selection of the ADC_CHSELR register
pub const fn set_awd1sgl(&mut self, val: Awd1sgl)
pub const fn set_awd1sgl(&mut self, val: Awd1sgl)
enable the watchdog on a single channel or on all channels
pub const fn set_awd1en(&mut self, val: bool)
pub const fn set_awd1en(&mut self, val: bool)
analog watchdog enable
pub const fn set_awd1ch(&mut self, val: u8)
pub const fn set_awd1ch(&mut self, val: u8)
analog watchdog channel selection
Trait Implementations§
impl Copy for Cfgr1
impl Eq for Cfgr1
impl StructuralPartialEq for Cfgr1
Auto Trait Implementations§
impl Freeze for Cfgr1
impl RefUnwindSafe for Cfgr1
impl Send for Cfgr1
impl Sync for Cfgr1
impl Unpin for Cfgr1
impl UnwindSafe for Cfgr1
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