Struct Ofr
#[repr(transparent)]pub struct Ofr(pub u32);Expand description
Offset register
Tuple Fields§
§0: u32Implementations§
§impl Ofr
impl Ofr
pub const fn set_offset(&mut self, val: u16)
pub const fn set_offset(&mut self, val: u16)
Data offset y for the channel programmed into OFFSET_CH
pub const fn offsetpos(&self) -> bool
pub const fn offsetpos(&self) -> bool
Positive offset (0: the offset is subtracted, 1: the offset is added)
pub const fn set_offsetpos(&mut self, val: bool)
pub const fn set_offsetpos(&mut self, val: bool)
Positive offset (0: the offset is subtracted, 1: the offset is added)
pub const fn set_offset_ch(&mut self, val: u8)
pub const fn set_offset_ch(&mut self, val: u8)
Channel selection for the data offset y
pub const fn set_offset_en(&mut self, val: bool)
pub const fn set_offset_en(&mut self, val: bool)
Offset y 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 UnsafeUnpin 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