Skip to main content

Syscfg

Struct Syscfg 

Source
pub struct Syscfg { /* private fields */ }
Expand description

Owns the SYSCFG registers.

Implementations§

Source§

impl Syscfg

Source

pub fn release(self) -> Syscfg

Returns the peripheral. The clock stays on, since CFGCMPEN also feeds the comparator.

Source

pub fn boot_mode(&self) -> BootMode

Returns the memory the chip booted from, as latched at the last reset.

Source

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.

Source

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.

Source

pub fn clear_sram_pcef(&mut self)

Clears SRAM_PCEF.

Source§

impl Syscfg

Source

pub fn remap_pa11_pa12<M9: Active, M10: Active>( &mut self, _pa9: Pin<'A', 9, M9>, _pa10: Pin<'A', 10, M10>, ) -> (Pin<'A', 11, Input>, Pin<'A', 12, Input>)

Hands the PA9/PA10 pads over to PA11/PA12, which come back as inputs.

Packages below 32 pins bond one pair or the other on the same two pads, PA9/PA10 after reset.

Source

pub fn unmap_pa11_pa12<M11: Active, M12: Active>( &mut self, _pa11: Pin<'A', 11, M11>, _pa12: Pin<'A', 12, M12>, ) -> (Pin<'A', 9, Input>, Pin<'A', 10, Input>)

Gives the pads back to PA9/PA10, which come back as inputs.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.