Struct AllPins

Source
pub struct AllPins<'d, TX, RX, CTS, RTS>
where TX: OutputPin, RX: InputPin, CTS: InputPin, RTS: OutputPin,
{ /* private fields */ }
Expand description

All pins offered by UART

Implementations§

Source§

impl<'d, TX, RX, CTS, RTS> AllPins<'d, TX, RX, CTS, RTS>
where TX: OutputPin, RX: InputPin, CTS: InputPin, RTS: OutputPin,

Tx and Rx pins

Source

pub fn new( tx: impl Peripheral<P = TX> + 'd, rx: impl Peripheral<P = RX> + 'd, cts: impl Peripheral<P = CTS> + 'd, rts: impl Peripheral<P = RTS> + 'd, ) -> AllPins<'d, TX, RX, CTS, RTS>

Trait Implementations§

Source§

impl<TX, RX, CTS, RTS> UartPins for AllPins<'_, TX, RX, CTS, RTS>
where TX: OutputPin, RX: InputPin, CTS: InputPin, RTS: OutputPin,

Source§

fn configure_pins( &mut self, tx_signal: OutputSignal, rx_signal: InputSignal, cts_signal: InputSignal, rts_signal: OutputSignal, )

Auto Trait Implementations§

§

impl<'d, TX, RX, CTS, RTS> Freeze for AllPins<'d, TX, RX, CTS, RTS>
where TX: Freeze, RX: Freeze, CTS: Freeze, RTS: Freeze,

§

impl<'d, TX, RX, CTS, RTS> RefUnwindSafe for AllPins<'d, TX, RX, CTS, RTS>

§

impl<'d, TX, RX, CTS, RTS> Send for AllPins<'d, TX, RX, CTS, RTS>
where TX: Send, RX: Send, CTS: Send, RTS: Send,

§

impl<'d, TX, RX, CTS, RTS> Sync for AllPins<'d, TX, RX, CTS, RTS>
where TX: Sync, RX: Sync, CTS: Sync, RTS: Sync,

§

impl<'d, TX, RX, CTS, RTS> Unpin for AllPins<'d, TX, RX, CTS, RTS>
where TX: Unpin, RX: Unpin, CTS: Unpin, RTS: Unpin,

§

impl<'d, TX, RX, CTS, RTS> !UnwindSafe for AllPins<'d, TX, RX, CTS, RTS>

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.