#[repr(transparent)]pub struct Config(pub u32);
Expand description
Description cluster: Input configuration for CH[n]
Tuple Fields§
§0: u32
Implementations§
Source§impl Config
impl Config
Sourcepub fn set_refsel(&mut self, val: Refsel)
pub fn set_refsel(&mut self, val: Refsel)
Reference control
Sourcepub const fn tacq(&self) -> Tacq
pub const fn tacq(&self) -> Tacq
Acquisition time, the time the SAADC uses to sample the input voltage
Sourcepub fn set_tacq(&mut self, val: Tacq)
pub fn set_tacq(&mut self, val: Tacq)
Acquisition time, the time the SAADC uses to sample the input voltage
Sourcepub const fn mode(&self) -> ConfigMode
pub const fn mode(&self) -> ConfigMode
Enable differential mode
Sourcepub fn set_mode(&mut self, val: ConfigMode)
pub fn set_mode(&mut self, val: ConfigMode)
Enable differential mode
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
)