#[repr(transparent)]pub struct Ldocsr2(pub u32);Expand description
LDO Control and Status Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Ldocsr2
impl Ldocsr2
Sourcepub const fn ldoen(&self) -> bool
pub const fn ldoen(&self) -> bool
LDO Enable. Raw bit values: false (0) = Disabled: LDO is disabled.; true (1) = Enabled: LDO is enabled.
Sourcepub const fn set_ldoen(&mut self, val: bool)
pub const fn set_ldoen(&mut self, val: bool)
LDO Enable. Raw bit values: false (0) = Disabled: LDO is disabled.; true (1) = Enabled: LDO is enabled.
Sourcepub const fn set_vout_sel(&mut self, val: VoutSel2)
pub const fn set_vout_sel(&mut self, val: VoutSel2)
LDO output voltage select.
Sourcepub const fn ldobypass(&self) -> bool
pub const fn ldobypass(&self) -> bool
LDO Bypass. Raw bit values: false (0) = Disabled: LDO is not bypassed.; true (1) = Enabled: LDO is bypassed.
Sourcepub const fn set_ldobypass(&mut self, val: bool)
pub const fn set_ldobypass(&mut self, val: bool)
LDO Bypass. Raw bit values: false (0) = Disabled: LDO is not bypassed.; true (1) = Enabled: LDO is bypassed.
Sourcepub const fn vout_ok(&self) -> bool
pub const fn vout_ok(&self) -> bool
LDO VOUT OK Inform. Raw bit values: false (0) = Disabled: LDO output VOUT is not OK.; true (1) = Enabled: LDO output VOUT is OK.
Sourcepub const fn set_vout_ok(&mut self, val: bool)
pub const fn set_vout_ok(&mut self, val: bool)
LDO VOUT OK Inform. Raw bit values: false (0) = Disabled: LDO output VOUT is not OK.; true (1) = Enabled: LDO output VOUT is OK.
Trait Implementations§
impl Copy for Ldocsr2
impl Eq for Ldocsr2
impl StructuralPartialEq for Ldocsr2
Auto Trait Implementations§
impl Freeze for Ldocsr2
impl RefUnwindSafe for Ldocsr2
impl Send for Ldocsr2
impl Sync for Ldocsr2
impl Unpin for Ldocsr2
impl UnwindSafe for Ldocsr2
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