Enum stm32f4xx_hal::gpio::alt::i2s4::Ws

source ·
pub enum Ws {
    PB12(PB12<Alternate<6, PushPull>>),
    PE4(PE4<Alternate<5, PushPull>>),
    PE11(PE11<Alternate<5, PushPull>>),
}

Variants§

Trait Implementations§

source§

impl Debug for Ws

source§

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

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

impl ExtiPin for Ws

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<'B', 12, Alternate<6>>> for Ws

source§

fn from(p: PB12<Alternate<6, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'B', 12, MODE>> for Ws
where MODE: NotAlt + PinMode,

source§

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

Converts to this type from the input type.
source§

impl From<Pin<'E', 11, Alternate<5>>> for Ws

source§

fn from(p: PE11<Alternate<5, PushPull>>) -> Self

Converts to this type from the input type.
source§

impl<MODE> From<Pin<'E', 11, MODE>> for Ws
where MODE: NotAlt + PinMode,

source§

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

Converts to this type from the input type.
source§

impl From<Pin<'E', 4, Alternate<5>>> for Ws

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl PinPull for Ws

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 Ws

source§

fn set_speed(&mut self, _speed: Speed)

Set pin speed
source§

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

source§

impl ReadPin for Ws

source§

fn is_low(&self) -> bool

source§

fn is_high(&self) -> bool

source§

impl<MODE> TryFrom<Ws> for PB12<MODE>
where MODE: PinMode, Alternate<6, PushPull>: PinMode,

§

type Error = ()

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

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

Performs the conversion.
source§

impl<MODE> TryFrom<Ws> for PE11<MODE>
where MODE: PinMode, Alternate<5, PushPull>: PinMode,

§

type Error = ()

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

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

Performs the conversion.
source§

impl<MODE> TryFrom<Ws> for PE4<MODE>
where MODE: PinMode, Alternate<5, PushPull>: PinMode,

§

type Error = ()

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

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

Performs the conversion.

Auto Trait Implementations§

§

impl RefUnwindSafe for Ws

§

impl Send for Ws

§

impl Sync for Ws

§

impl Unpin for Ws

§

impl UnwindSafe for Ws

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.