Struct stm32_metapac::adc::regs::Ofr
#[repr(transparent)]pub struct Ofr(pub u32);
Expand description
offset number x register
Tuple Fields§
§0: u32
Implementations§
§impl Ofr
impl Ofr
pub fn set_offset(&mut self, val: u16)
pub fn set_offset(&mut self, val: u16)
data offset
pub fn set_offsetpos(&mut self, val: bool)
pub fn set_offsetpos(&mut self, val: bool)
Positive offset
pub const fn offset1_ch(&self) -> u8
pub const fn offset1_ch(&self) -> u8
Channel selection for the data offset
pub fn set_offset1_ch(&mut self, val: u8)
pub fn set_offset1_ch(&mut self, val: u8)
Channel selection for the data offset
pub fn set_offset_en(&mut self, val: bool)
pub fn set_offset_en(&mut self, val: bool)
Offset enable
Trait Implementations§
impl Copy for Ofr
impl Eq for Ofr
impl StructuralPartialEq for Ofr
Auto Trait Implementations§
impl Freeze for Ofr
impl RefUnwindSafe for Ofr
impl Send for Ofr
impl Sync for Ofr
impl Unpin for Ofr
impl UnwindSafe for Ofr
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
)