#[repr(transparent)]pub struct Csr(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Csr
impl Csr
Sourcepub const fn set_hcbgen(&mut self, val: bool)
pub const fn set_hcbgen(&mut self, val: bool)
HC bandgap enable. Enable only when IBIAS_EN is set.
pub const fn ibias_en(&self) -> bool
pub const fn set_ibias_en(&mut self, val: bool)
Sourcepub const fn chopen(&self) -> bool
pub const fn chopen(&self) -> bool
Chopping enable. Required when using the internal regulator.
Sourcepub const fn set_chopen(&mut self, val: bool)
pub const fn set_chopen(&mut self, val: bool)
Chopping enable. Required when using the internal regulator.
Sourcepub const fn icompen(&self) -> bool
pub const fn icompen(&self) -> bool
Current compensation. Must be set for data-sheet performance.
Sourcepub const fn set_icompen(&mut self, val: bool)
pub const fn set_icompen(&mut self, val: bool)
Current compensation. Must be set for data-sheet performance.
Sourcepub const fn set_regen(&mut self, val: bool)
pub const fn set_regen(&mut self, val: bool)
Internal regulator. Must be set for data-sheet performance.
pub const fn refchseln_en(&self) -> bool
pub const fn set_refchseln_en(&mut self, val: bool)
pub const fn refchselp_en(&self) -> bool
pub const fn set_refchselp_en(&mut self, val: bool)
Sourcepub const fn hi_pwr_lv(&self) -> bool
pub const fn hi_pwr_lv(&self) -> bool
Buffer21 high-power mode when set, low-power mode when clear.
Sourcepub const fn set_hi_pwr_lv(&mut self, val: bool)
pub const fn set_hi_pwr_lv(&mut self, val: bool)
Buffer21 high-power mode when set, low-power mode when clear.
pub const fn buf21en(&self) -> bool
pub const fn set_buf21en(&mut self, val: bool)
Sourcepub const fn vrefst(&self) -> bool
pub const fn vrefst(&self) -> bool
Read-only stability indication. Valid only with chopping disabled.
Sourcepub const fn set_vrefst(&mut self, val: bool)
pub const fn set_vrefst(&mut self, val: bool)
Read-only stability indication. Valid only with chopping disabled.
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 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