Struct Sr2
#[repr(transparent)]pub struct Sr2(pub u32);Expand description
SR2 register.
Tuple Fields§
§0: u32Implementations§
§impl Sr2
impl Sr2
pub const fn smpsbypr(&self) -> bool
pub const fn smpsbypr(&self) -> bool
SMPSBYPR: SMPS Force Bypass Control Replica This bit mirrors the actual BYPASS_3V3 control signal driven to the SMPS regulator, dependant on the real working state.
pub fn set_smpsbypr(&mut self, val: bool)
pub fn set_smpsbypr(&mut self, val: bool)
SMPSBYPR: SMPS Force Bypass Control Replica This bit mirrors the actual BYPASS_3V3 control signal driven to the SMPS regulator, dependant on the real working state.
pub const fn smpsenr(&self) -> bool
pub const fn smpsenr(&self) -> bool
SMPSENR: SMPS Enable Control Replica This bit mirrors the actual ENABLE_3V3 control signal driven to the SMPS regulator, dependant on the real working state.
pub fn set_smpsenr(&mut self, val: bool)
pub fn set_smpsenr(&mut self, val: bool)
SMPSENR: SMPS Enable Control Replica This bit mirrors the actual ENABLE_3V3 control signal driven to the SMPS regulator, dependant on the real working state.
pub const fn smpsrdy(&self) -> Smpsrdy
pub const fn smpsrdy(&self) -> Smpsrdy
SMPSRDY: SMPS Ready Status This bit provides the information whether SMPS is ready.
pub fn set_smpsrdy(&mut self, val: Smpsrdy)
pub fn set_smpsrdy(&mut self, val: Smpsrdy)
SMPSRDY: SMPS Ready Status This bit provides the information whether SMPS is ready.
pub const fn iobootval2(&self) -> u8
pub const fn iobootval2(&self) -> u8
Bit3: PB15 input value on VDD33 latched at POR Bit2: PB14 input value on VDD33 latched at POR Bit1: PB13 input value on VDD33 latched at POR Bit0: PB12 input value on VDD33 latched at POR.
pub fn set_iobootval2(&mut self, val: u8)
pub fn set_iobootval2(&mut self, val: u8)
Bit3: PB15 input value on VDD33 latched at POR Bit2: PB14 input value on VDD33 latched at POR Bit1: PB13 input value on VDD33 latched at POR Bit0: PB12 input value on VDD33 latched at POR.
pub const fn reglps(&self) -> Reglps
pub const fn reglps(&self) -> Reglps
REGLPS: Regulator Low Power Started This bit provides the information whether low power regulator is ready.
pub fn set_reglps(&mut self, val: Reglps)
pub fn set_reglps(&mut self, val: Reglps)
REGLPS: Regulator Low Power Started This bit provides the information whether low power regulator is ready.
pub const fn regms(&self) -> Regms
pub const fn regms(&self) -> Regms
REGMS: Regulator Main LDO Started This bit provides the information whether main regulator is ready.
pub fn set_regms(&mut self, val: Regms)
pub fn set_regms(&mut self, val: Regms)
REGMS: Regulator Main LDO Started This bit provides the information whether main regulator is ready.
pub const fn pvdo(&self) -> bool
pub const fn pvdo(&self) -> bool
PVDO: Power Voltage Detector Output When the Power Voltage Detector is enabled (CR2.PVDE) this bit is set when the system supply (VDDIO) is lower than the selected PVD threshold (CR2.PVDLS).
pub fn set_pvdo(&mut self, val: bool)
pub fn set_pvdo(&mut self, val: bool)
PVDO: Power Voltage Detector Output When the Power Voltage Detector is enabled (CR2.PVDE) this bit is set when the system supply (VDDIO) is lower than the selected PVD threshold (CR2.PVDLS).
pub const fn iobootval(&self) -> u8
pub const fn iobootval(&self) -> u8
Bit3: PA11 input value on VDD33 latched at POR Bit2: PA10 input value on VDD33 latched at POR Bit1: PA9 input value on VDD33 latched at POR Bit0: PA8 input value on VDD33 latched at POR.
pub fn set_iobootval(&mut self, val: u8)
pub fn set_iobootval(&mut self, val: u8)
Bit3: PA11 input value on VDD33 latched at POR Bit2: PA10 input value on VDD33 latched at POR Bit1: PA9 input value on VDD33 latched at POR Bit0: PA8 input value on VDD33 latched at POR.