Enum Sda

Source
pub enum Sda {
    PB11(PB11<Alternate<4, OpenDrain>>),
    PF0(PF0<Alternate<4, OpenDrain>>),
    PH5(PH5<Alternate<4, OpenDrain>>),
}

Variants§

Trait Implementations§

Source§

impl Debug for Sda

Source§

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

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

impl ExtiPin for Sda

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', 11, Alternate<4, OpenDrain>>> for Sda

Source§

fn from(p: PB11<Alternate<4, OpenDrain>>) -> Self

Converts to this type from the input type.
Source§

impl<MODE> From<Pin<'B', 11, MODE>> for Sda
where MODE: NotAlt + PinMode,

Source§

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

Converts to this type from the input type.
Source§

impl From<Pin<'F', 0, Alternate<4, OpenDrain>>> for Sda

Source§

fn from(p: PF0<Alternate<4, OpenDrain>>) -> Self

Converts to this type from the input type.
Source§

impl<MODE> From<Pin<'F', 0, MODE>> for Sda
where MODE: NotAlt + PinMode,

Source§

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

Converts to this type from the input type.
Source§

impl From<Pin<'H', 5, Alternate<4, OpenDrain>>> for Sda

Source§

fn from(p: PH5<Alternate<4, OpenDrain>>) -> Self

Converts to this type from the input type.
Source§

impl<MODE> From<Pin<'H', 5, MODE>> for Sda
where MODE: NotAlt + PinMode,

Source§

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

Converts to this type from the input type.
Source§

impl PinPull for Sda

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 Sda

Source§

fn set_speed(&mut self, _speed: Speed)

Set pin speed
Source§

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

Source§

impl ReadPin for Sda

Source§

fn is_low(&self) -> bool

Source§

fn is_high(&self) -> bool

Source§

impl<MODE> TryFrom<Sda> for PB11<MODE>
where MODE: PinMode, Alternate<4, OpenDrain>: PinMode,

Source§

type Error = ()

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

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

Performs the conversion.
Source§

impl<MODE> TryFrom<Sda> for PF0<MODE>
where MODE: PinMode, Alternate<4, OpenDrain>: PinMode,

Source§

type Error = ()

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

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

Performs the conversion.
Source§

impl<MODE> TryFrom<Sda> for PH5<MODE>
where MODE: PinMode, Alternate<4, OpenDrain>: PinMode,

Source§

type Error = ()

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

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

Performs the conversion.

Auto Trait Implementations§

§

impl Freeze for Sda

§

impl RefUnwindSafe for Sda

§

impl Send for Sda

§

impl Sync for Sda

§

impl Unpin for Sda

§

impl UnwindSafe for Sda

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 = 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.