Struct stm32_metapac::sdadc::regs::Cr2
#[repr(transparent)]pub struct Cr2(pub u32);
Expand description
control register 2.
Tuple Fields§
§0: u32
Implementations§
§impl Cr2
impl Cr2
pub const fn calibcnt(&self) -> u8
pub const fn calibcnt(&self) -> u8
Number of calibration sequences to be performed (number of valid configurations).
pub fn set_calibcnt(&mut self, val: u8)
pub fn set_calibcnt(&mut self, val: u8)
Number of calibration sequences to be performed (number of valid configurations).
pub const fn startcalib(&self) -> bool
pub const fn startcalib(&self) -> bool
Start calibration.
pub fn set_startcalib(&mut self, val: bool)
pub fn set_startcalib(&mut self, val: bool)
Start calibration.
pub fn set_jextsel(&mut self, val: u8)
pub fn set_jextsel(&mut self, val: u8)
Trigger signal selection for launching injected conversions.
pub fn set_jexten(&mut self, val: u8)
pub fn set_jexten(&mut self, val: u8)
Trigger enable and trigger edge selection for injected conversions.
pub fn set_jswstart(&mut self, val: bool)
pub fn set_jswstart(&mut self, val: bool)
Start a conversion of the injected group of channels.
pub fn set_rswstart(&mut self, val: bool)
pub fn set_rswstart(&mut self, val: bool)
Software start of a conversion on the regular channel.
Trait Implementations§
impl Copy for Cr2
impl Eq for Cr2
impl StructuralPartialEq for Cr2
Auto Trait Implementations§
impl Freeze for Cr2
impl RefUnwindSafe for Cr2
impl Send for Cr2
impl Sync for Cr2
impl Unpin for Cr2
impl UnwindSafe for Cr2
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
)