Struct esp32c3_hal::uart::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> RefUnwindSafe for TxRxPins<'d, TX, RX>where RX: RefUnwindSafe, TX: RefUnwindSafe,

§

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

§

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

§

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

§

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

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.