Struct Comp2
#[repr(transparent)]pub struct Comp2(pub u32);Expand description
COMP_2 register.
Tuple Fields§
§0: u32Implementations§
§impl Comp2
impl Comp2
pub fn set_gain2(&mut self, val: u16)
pub fn set_gain2(&mut self, val: u16)
GAIN2[11:0]: second calibration point: gain AUXADC_GAIN_1V2[11:0].
pub const fn offset2(&self) -> u8
pub const fn offset2(&self) -> u8
OFFSET2[7:0]: second calibration point: offset compensation[7:0] with sign.
pub fn set_offset2(&mut self, val: u8)
pub fn set_offset2(&mut self, val: u8)
OFFSET2[7:0]: second calibration point: offset compensation[7:0] with sign.
Trait Implementations§
impl Copy for Comp2
impl Eq for Comp2
impl StructuralPartialEq for Comp2
Auto Trait Implementations§
impl Freeze for Comp2
impl RefUnwindSafe for Comp2
impl Send for Comp2
impl Sync for Comp2
impl Unpin for Comp2
impl UnwindSafe for Comp2
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