Struct stm32_metapac::adccommon::regs::Hwcfgr0
#[repr(transparent)]pub struct Hwcfgr0(pub u32);
Expand description
hardware configuration register
Tuple Fields§
§0: u32
Implementations§
§impl Hwcfgr0
impl Hwcfgr0
pub fn set_adcnum(&mut self, val: u8)
pub fn set_adcnum(&mut self, val: u8)
Number of ADCs implemented
pub fn set_mulpipe(&mut self, val: u8)
pub fn set_mulpipe(&mut self, val: u8)
Number of pipeline stages
pub const fn opbits(&self) -> u8
pub const fn opbits(&self) -> u8
Number of option bits 0002: 2 option bits implemented in the ADC option register (ADC_OR) at address offset 0xC8.
pub fn set_opbits(&mut self, val: u8)
pub fn set_opbits(&mut self, val: u8)
Number of option bits 0002: 2 option bits implemented in the ADC option register (ADC_OR) at address offset 0xC8.
pub fn set_idlevalue(&mut self, val: Idlevalue)
pub fn set_idlevalue(&mut self, val: Idlevalue)
Idle value for non-selected channels
Trait Implementations§
impl Copy for Hwcfgr0
impl Eq for Hwcfgr0
impl StructuralPartialEq for Hwcfgr0
Auto Trait Implementations§
impl Freeze for Hwcfgr0
impl RefUnwindSafe for Hwcfgr0
impl Send for Hwcfgr0
impl Sync for Hwcfgr0
impl Unpin for Hwcfgr0
impl UnwindSafe for Hwcfgr0
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
)