#[repr(transparent)]pub struct Cfg(pub u32);Expand description
Configuration register
Tuple Fields§
§0: u32Implementations§
Source§impl Cfg
impl Cfg
Sourcepub const fn set_adiclk(&mut self, val: Adiclk)
pub const fn set_adiclk(&mut self, val: Adiclk)
Input Clock Select
Sourcepub const fn set_adlsmp(&mut self, val: Adlsmp)
pub const fn set_adlsmp(&mut self, val: Adlsmp)
Long Sample Time Configuration
Sourcepub const fn adsts(&self) -> Adsts
pub const fn adsts(&self) -> Adsts
Defines the total sample time duration in number of full cycles
Sourcepub const fn set_adsts(&mut self, val: Adsts)
pub const fn set_adsts(&mut self, val: Adsts)
Defines the total sample time duration in number of full cycles
Sourcepub const fn set_refsel(&mut self, val: Refsel)
pub const fn set_refsel(&mut self, val: Refsel)
Voltage Reference Selection
Sourcepub const fn set_ovwren(&mut self, val: Ovwren)
pub const fn set_ovwren(&mut self, val: Ovwren)
Data Overwrite Enable
Trait Implementations§
impl Copy for Cfg
impl Eq for Cfg
impl StructuralPartialEq for Cfg
Auto Trait Implementations§
impl Freeze for Cfg
impl RefUnwindSafe for Cfg
impl Send for Cfg
impl Sync for Cfg
impl Unpin for Cfg
impl UnwindSafe for Cfg
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