Enum stm32f4xx_hal::gpio::alt::uart4::Tx

source ·
pub enum Tx<Otype = PushPull> {
    None(NoPin<Otype>),
    PA0(PA0<Alternate<8, Otype>>),
    PC10(PC10<Alternate<8, Otype>>),
}

Variants§

§

None(NoPin<Otype>)

§

PA0(PA0<Alternate<8, Otype>>)

§

PC10(PC10<Alternate<8, Otype>>)

Trait Implementations§

source§

impl<Otype: Debug> Debug for Tx<Otype>

source§

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

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

impl<Otype> ExtiPin for Tx<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<NoPin<Otype>> for Tx<Otype>

source§

fn from(p: NoPin<Otype>) -> Self

Converts to this type from the input type.
source§

impl<Otype> From<Pin<'A', 0, Alternate<8, Otype>>> for Tx<Otype>

source§

fn from(p: PA0<Alternate<8, Otype>>) -> Self

Converts to this type from the input type.
source§

impl<MODE, Otype> From<Pin<'A', 0, MODE>> for Tx<Otype>
where MODE: NotAlt + PinMode, Alternate<8, Otype>: PinMode,

source§

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

Converts to this type from the input type.
source§

impl<Otype> From<Pin<'C', 10, Alternate<8, Otype>>> for Tx<Otype>

source§

fn from(p: PC10<Alternate<8, Otype>>) -> Self

Converts to this type from the input type.
source§

impl<MODE, Otype> From<Pin<'C', 10, MODE>> for Tx<Otype>
where MODE: NotAlt + PinMode, Alternate<8, Otype>: PinMode,

source§

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

Converts to this type from the input type.
source§

impl<Otype> PinPull for Tx<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 Tx<Otype>

source§

fn set_speed(&mut self, _speed: Speed)

Set pin speed
source§

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

source§

impl<Otype> ReadPin for Tx<Otype>

source§

fn is_low(&self) -> bool

source§

fn is_high(&self) -> bool

source§

impl<MODE, Otype> TryFrom<Tx<Otype>> for PA0<MODE>
where MODE: PinMode, Alternate<8, Otype>: PinMode,

§

type Error = ()

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

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

Performs the conversion.
source§

impl<MODE, Otype> TryFrom<Tx<Otype>> for PC10<MODE>
where MODE: PinMode, Alternate<8, Otype>: PinMode,

§

type Error = ()

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

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

Performs the conversion.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

impl<Otype> UnwindSafe for Tx<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>,

§

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.