Struct TxRxPins

Source
pub struct TxRxPins<'d, TX, RX>
where TX: OutputPin, RX: InputPin,
{ pub tx: Option<PeripheralRef<'d, TX>>, pub rx: Option<PeripheralRef<'d, RX>>, }

Fields§

§tx: Option<PeripheralRef<'d, TX>>§rx: Option<PeripheralRef<'d, RX>>

Implementations§

Source§

impl<'d, TX, RX> TxRxPins<'d, TX, RX>
where TX: OutputPin, RX: InputPin,

Source

pub fn new_tx_rx( tx: impl Peripheral<P = TX> + 'd, rx: impl Peripheral<P = RX> + 'd, ) -> TxRxPins<'d, TX, RX>

Trait Implementations§

Source§

impl<TX, RX> UartPins for TxRxPins<'_, TX, RX>
where TX: OutputPin, RX: InputPin,

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> Freeze for TxRxPins<'d, TX, RX>
where TX: Freeze, RX: Freeze,

§

impl<'d, TX, RX> RefUnwindSafe for TxRxPins<'d, TX, RX>

§

impl<'d, TX, RX> Send for TxRxPins<'d, TX, RX>
where TX: Send, RX: Send,

§

impl<'d, TX, RX> Sync for TxRxPins<'d, TX, RX>
where TX: Sync, RX: Sync,

§

impl<'d, TX, RX> Unpin for TxRxPins<'d, TX, RX>
where TX: Unpin, RX: Unpin,

§

impl<'d, TX, RX> !UnwindSafe for TxRxPins<'d, TX, RX>

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.