Struct Seccfgr
#[repr(transparent)]pub struct Seccfgr(pub u32);Expand description
PWR security configuration register.
Tuple Fields§
§0: u32Implementations§
§impl Seccfgr
impl Seccfgr
pub const fn wupsec(&self, n: usize) -> bool
pub const fn wupsec(&self, n: usize) -> bool
WKUPx secure protection. 0: bits related to the WKUPx line in WUCR1, WUCR2, WUCR3 and WUSCR can be accessed with secure or nonsecure access. 1: secure access only.
pub const fn set_wupsec(&mut self, n: usize, val: bool)
pub const fn set_wupsec(&mut self, n: usize, val: bool)
WKUPx secure protection. 0: bits related to the WKUPx line in WUCR1, WUCR2, WUCR3 and WUSCR can be accessed with secure or nonsecure access. 1: secure access only.
pub const fn lpmsec(&self) -> bool
pub const fn lpmsec(&self) -> bool
Low-power mode secure protection. 0: CR1, CR2 and CSSF in the SR can be read and written with secure or non-secure access. 1: CR1, CR2, and CSSF in the SR can be read and written only with secure access.
pub const fn set_lpmsec(&mut self, val: bool)
pub const fn set_lpmsec(&mut self, val: bool)
Low-power mode secure protection. 0: CR1, CR2 and CSSF in the SR can be read and written with secure or non-secure access. 1: CR1, CR2, and CSSF in the SR can be read and written only with secure access.
pub const fn vdmsec(&self) -> bool
pub const fn vdmsec(&self) -> bool
Voltage detection and monitoring secure protection. 0: SVMCR and CR3 can be read and written with secure or non-secure access. 1: SVMCR and CR3 can be read and written only with secure access.
pub const fn set_vdmsec(&mut self, val: bool)
pub const fn set_vdmsec(&mut self, val: bool)
Voltage detection and monitoring secure protection. 0: SVMCR and CR3 can be read and written with secure or non-secure access. 1: SVMCR and CR3 can be read and written only with secure access.
pub const fn vbsec(&self) -> bool
pub const fn vbsec(&self) -> bool
Backup domain secure protection. 0: BDCR and DBPR can be read and written with secure or non-secure access. 1: BDCR and DBPR can be read and written only with secure access.
pub const fn set_vbsec(&mut self, val: bool)
pub const fn set_vbsec(&mut self, val: bool)
Backup domain secure protection. 0: BDCR and DBPR can be read and written with secure or non-secure access. 1: BDCR and DBPR can be read and written only with secure access.
pub const fn apcsec(&self) -> bool
pub const fn apcsec(&self) -> bool
Pull-up/pull-down secure protection. 0: APCR can be read and written with secure or non-secure access. 1: APCR can be read and written only with secure access.
pub const fn set_apcsec(&mut self, val: bool)
pub const fn set_apcsec(&mut self, val: bool)
Pull-up/pull-down secure protection. 0: APCR can be read and written with secure or non-secure access. 1: APCR can be read and written only with secure access.