Struct Csr
#[repr(transparent)]pub struct Csr(pub u32);Expand description
COMP control and status register.
Tuple Fields§
§0: u32Implementations§
§impl Csr
impl Csr
pub const fn set_pu400k(&mut self, val: bool)
pub const fn set_pu400k(&mut self, val: bool)
400 kOhm pull-up resistor.
pub const fn set_pd400k(&mut self, val: bool)
pub const fn set_pd400k(&mut self, val: bool)
400 kOhm pull-down resistor.
pub const fn set_cmp1en(&mut self, val: bool)
pub const fn set_cmp1en(&mut self, val: bool)
Comparator 1 enable.
pub const fn set_cmp1out(&mut self, val: bool)
pub const fn set_cmp1out(&mut self, val: bool)
Comparator 1 output.
pub const fn set_cmp2out(&mut self, val: bool)
pub const fn set_cmp2out(&mut self, val: bool)
Comparator 2 output.
pub const fn set_vrefouten(&mut self, val: bool)
pub const fn set_vrefouten(&mut self, val: bool)
VREFINT output enable.
pub const fn set_outsel(&mut self, val: Outsel)
pub const fn set_outsel(&mut self, val: Outsel)
Comparator 2 output redirection.
Trait Implementations§
impl Copy for Csr
impl Eq for Csr
impl StructuralPartialEq for Csr
Auto Trait Implementations§
impl Freeze for Csr
impl RefUnwindSafe for Csr
impl Send for Csr
impl Sync for Csr
impl Unpin for Csr
impl UnsafeUnpin for Csr
impl UnwindSafe for Csr
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