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,
impl<'d, TX, RX> TxRxPins<'d, TX, RX>where TX: OutputPin, RX: InputPin,
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,
impl<TX, RX> UartPins for TxRxPins<'_, TX, RX>where TX: OutputPin, RX: InputPin,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more