Enum Ch4

Source
pub enum Ch4<Otype = PushPull> {
    PB1(PB1<Alternate<2, Otype>>),
    PC9(PC9<Alternate<2, Otype>>),
}

Variants§

§

PB1(PB1<Alternate<2, Otype>>)

§

PC9(PC9<Alternate<2, Otype>>)

Trait Implementations§

Source§

impl<Otype: Debug> Debug for Ch4<Otype>

Source§

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

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

impl<Otype> ExtiPin for Ch4<Otype>

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<Otype> From<Pin<'B', 1, Alternate<2, Otype>>> for Ch4<Otype>

Source§

fn from(p: PB1<Alternate<2, Otype>>) -> Self

Converts to this type from the input type.
Source§

impl<MODE, Otype> From<Pin<'B', 1, MODE>> for Ch4<Otype>
where MODE: NotAlt + PinMode, Alternate<2, Otype>: PinMode,

Source§

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

Converts to this type from the input type.
Source§

impl<Otype> From<Pin<'C', 9, Alternate<2, Otype>>> for Ch4<Otype>

Source§

fn from(p: PC9<Alternate<2, Otype>>) -> Self

Converts to this type from the input type.
Source§

impl<MODE, Otype> From<Pin<'C', 9, MODE>> for Ch4<Otype>
where MODE: NotAlt + PinMode, Alternate<2, Otype>: PinMode,

Source§

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

Converts to this type from the input type.
Source§

impl<Otype> PinPull for Ch4<Otype>

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<Otype> PinSpeed for Ch4<Otype>

Source§

fn set_speed(&mut self, _speed: Speed)

Set pin speed
Source§

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

Source§

impl<Otype> ReadPin for Ch4<Otype>

Source§

fn is_low(&self) -> bool

Source§

fn is_high(&self) -> bool

Source§

impl<MODE, Otype> TryFrom<Ch4<Otype>> for PB1<MODE>
where MODE: PinMode, Alternate<2, Otype>: PinMode,

Source§

type Error = ()

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

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

Performs the conversion.
Source§

impl<MODE, Otype> TryFrom<Ch4<Otype>> for PC9<MODE>
where MODE: PinMode, Alternate<2, Otype>: PinMode,

Source§

type Error = ()

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

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

Performs the conversion.

Auto Trait Implementations§

§

impl<Otype> Freeze for Ch4<Otype>

§

impl<Otype> RefUnwindSafe for Ch4<Otype>
where Otype: RefUnwindSafe,

§

impl<Otype> Send for Ch4<Otype>
where Otype: Send,

§

impl<Otype> Sync for Ch4<Otype>
where Otype: Sync,

§

impl<Otype> Unpin for Ch4<Otype>
where Otype: Unpin,

§

impl<Otype> UnwindSafe for Ch4<Otype>
where Otype: UnwindSafe,

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.