Enum stm32f4xx_hal::gpio::alt::dcmi::D4

source ·
pub enum D4 {
    PC11(PC11<Alternate<13, PushPull>>),
    PE4(PE4<Alternate<13, PushPull>>),
    PH14(PH14<Alternate<13, PushPull>>),
}

Variants§

Trait Implementations§

source§

impl Debug for D4

source§

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

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

impl ExtiPin for D4

source§

fn make_interrupt_source(&mut self, _syscfg: &mut SysCfg)

Make corresponding EXTI line sensitive to this pin
source§

fn trigger_on_edge(&mut self, _exti: &mut EXTI, _level: Edge)

Generate interrupt on rising edge, falling edge or both
source§

fn enable_interrupt(&mut self, _exti: &mut EXTI)

Enable external interrupts from this pin.
source§

fn disable_interrupt(&mut self, _exti: &mut EXTI)

Disable external interrupts from this pin
source§

fn clear_interrupt_pending_bit(&mut self)

Clear the interrupt pending bit for this pin
source§

fn check_interrupt(&self) -> bool

Reads the interrupt pending bit for this pin
source§

impl From<Pin<'C', 11, Alternate<13>>> for D4

source§

fn from(p: PC11<Alternate<13, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'C', 11, MODE>> for D4
where MODE: NotAlt + PinMode,

source§

fn from(p: PC11<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'E', 4, Alternate<13>>> for D4

source§

fn from(p: PE4<Alternate<13, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'E', 4, MODE>> for D4
where MODE: NotAlt + PinMode,

source§

fn from(p: PE4<MODE>) -> Self

Converts to this type from the input type.
source§

impl From<Pin<'H', 14, Alternate<13>>> for D4

source§

fn from(p: PH14<Alternate<13, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'H', 14, MODE>> for D4
where MODE: NotAlt + PinMode,

source§

fn from(p: PH14<MODE>) -> Self

Converts to this type from the input type.
source§

impl PinPull for D4

source§

fn set_internal_resistor(&mut self, _pull: Pull)

Set the internal pull-up and pull-down resistor
source§

fn internal_resistor(self, resistor: Pull) -> Self

source§

impl PinSpeed for D4

source§

fn set_speed(&mut self, _speed: Speed)

Set pin speed
source§

fn speed(self, speed: Speed) -> Self

source§

impl ReadPin for D4

source§

fn is_low(&self) -> bool

source§

fn is_high(&self) -> bool

source§

impl<MODE> TryFrom<D4> for PC11<MODE>
where MODE: PinMode, Alternate<13, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: D4) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<D4> for PE4<MODE>
where MODE: PinMode, Alternate<13, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: D4) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<D4> for PH14<MODE>
where MODE: PinMode, Alternate<13, PushPull>: PinMode,

§

type Error = ()

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

fn try_from(a: D4) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl RefUnwindSafe for D4

§

impl Send for D4

§

impl Sync for D4

§

impl Unpin for D4

§

impl UnwindSafe for D4

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>,

§

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>,

§

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.