#[repr(transparent)]pub struct VregCtrl(pub u32);
Expand description
Voltage Regulator Control
Tuple Fields§
§0: u32
Implementations§
source§impl VregCtrl
impl VregCtrl
sourcepub const fn ht_th(&self) -> u8
pub const fn ht_th(&self) -> u8
high temperature protection threshold regulator power transistors are disabled when junction temperature exceeds threshold 000 - 100C 001 - 105C 010 - 110C 011 - 115C 100 - 120C 101 - 125C 110 - 135C 111 - 150C
sourcepub fn set_ht_th(&mut self, val: u8)
pub fn set_ht_th(&mut self, val: u8)
high temperature protection threshold regulator power transistors are disabled when junction temperature exceeds threshold 000 - 100C 001 - 105C 010 - 110C 011 - 115C 100 - 120C 101 - 125C 110 - 135C 111 - 150C
sourcepub const fn disable_voltage_limit(&self) -> bool
pub const fn disable_voltage_limit(&self) -> bool
0=not disabled, 1=enabled
sourcepub fn set_disable_voltage_limit(&mut self, val: bool)
pub fn set_disable_voltage_limit(&mut self, val: bool)
0=not disabled, 1=enabled
sourcepub const fn isolate(&self) -> bool
pub const fn isolate(&self) -> bool
isolates the VREG control interface 0 - not isolated (default) 1 - isolated
sourcepub fn set_isolate(&mut self, val: bool)
pub fn set_isolate(&mut self, val: bool)
isolates the VREG control interface 0 - not isolated (default) 1 - isolated
sourcepub const fn unlock(&self) -> bool
pub const fn unlock(&self) -> bool
unlocks the VREG control interface after power up 0 - Locked (default) 1 - Unlocked It cannot be relocked when it is unlocked.
sourcepub fn set_unlock(&mut self, val: bool)
pub fn set_unlock(&mut self, val: bool)
unlocks the VREG control interface after power up 0 - Locked (default) 1 - Unlocked It cannot be relocked when it is unlocked.
Trait Implementations§
impl Copy for VregCtrl
impl Eq for VregCtrl
impl StructuralPartialEq for VregCtrl
Auto Trait Implementations§
impl Freeze for VregCtrl
impl RefUnwindSafe for VregCtrl
impl Send for VregCtrl
impl Sync for VregCtrl
impl Unpin for VregCtrl
impl UnwindSafe for VregCtrl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)