pub struct Syscfg { /* private fields */ }Expand description
Owns the SYSCFG registers.
Implementations§
Source§impl Syscfg
impl Syscfg
Sourcepub fn release(self) -> Syscfg
pub fn release(self) -> Syscfg
Returns the peripheral. The clock stays on, since CFGCMPEN also feeds
the comparator.
Sourcepub fn boot_mode(&self) -> BootMode
pub fn boot_mode(&self) -> BootMode
Returns the memory the chip booted from, as latched at the last reset.
Sourcepub fn set_irq_latency(&mut self, latency: u8)
pub fn set_irq_latency(&mut self, latency: u8)
Holds interrupt entry back to no sooner than latency + 1 cycles of
hclk after the interrupt pends. A value above the worst natural latency
makes entry take the same time whatever the core was executing; 0, the
reset value, enters as early as possible.
Sourcepub fn sram_pcef(&self) -> bool
pub fn sram_pcef(&self) -> bool
Whether an SRAM parity error has been caught (SRAM_PCEF). Raised only
while the check is on, see
OptionBytes::sram_parity.
Sourcepub fn clear_sram_pcef(&mut self)
pub fn clear_sram_pcef(&mut self)
Clears SRAM_PCEF.
Auto Trait Implementations§
impl !Sync for Syscfg
impl Freeze for Syscfg
impl RefUnwindSafe for Syscfg
impl Send for Syscfg
impl Unpin for Syscfg
impl UnsafeUnpin for Syscfg
impl UnwindSafe for Syscfg
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