#[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.