Struct SysCfg

Source
pub struct SysCfg(/* private fields */);
Expand description

Constrained SYSCFG peripheral

An instance of this struct is acquired by calling the constrain function on the SYSCFG struct.

let dp = pac::Peripherals::take().unwrap();
let mut rcc = dp.RCC.constrain();
let syscfg = dp.SYSCFG.constrain(&mut rcc.apb2);

Implementations§

Source§

impl SysCfg

Source

pub fn select_exti_interrupt_source<Gpio, Index, Mode>( &mut self, pin: &Pin<Gpio, Index, Mode>, )
where Gpio: Gpio, Index: Index,

Make corresponding EXTI (external interrupt) line sensitive to the selected pin.

§Note

Only one Pin index of all banks can be activated for interrupts at the same time.

This means, that only on of PA1, PB1, PC1, … can be activated.

For example, if first crate::gpio::gpioa::PA1 and than crate::gpio::gpiob::PB1 would be configured, the former configuration would be overwritten.

But configuring PA1 and and PB2 works!

Methods from Deref<Target = SYSCFG>§

Source

pub const PTR: *const RegisterBlock = {0x40010000 as *const stm32f3::stm32f303::syscfg::RegisterBlock}

Trait Implementations§

Source§

impl Debug for SysCfg

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for SysCfg

Source§

type Target = SYSCFG

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

§

impl Freeze for SysCfg

§

impl RefUnwindSafe for SysCfg

§

impl Send for SysCfg

§

impl !Sync for SysCfg

§

impl Unpin for SysCfg

§

impl UnwindSafe for SysCfg

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.