Struct esp32c2_hal::uart::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,
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
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,
impl<TX, RX, CTS, RTS> UartPins for AllPins<'_, TX, RX, CTS, RTS>where TX: OutputPin, RX: InputPin, CTS: InputPin, RTS: OutputPin,
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> RefUnwindSafe for AllPins<'d, TX, RX, CTS, RTS>where CTS: RefUnwindSafe, RTS: RefUnwindSafe, RX: RefUnwindSafe, TX: RefUnwindSafe,
impl<'d, TX, RX, CTS, RTS> Send for AllPins<'d, TX, RX, CTS, RTS>where CTS: Send, RTS: Send, RX: Send, TX: Send,
impl<'d, TX, RX, CTS, RTS> Sync for AllPins<'d, TX, RX, CTS, RTS>where CTS: Sync, RTS: Sync, RX: Sync, TX: Sync,
impl<'d, TX, RX, CTS, RTS> Unpin for AllPins<'d, TX, RX, CTS, RTS>where CTS: Unpin, RTS: Unpin, RX: Unpin, TX: Unpin,
impl<'d, TX, RX, CTS, RTS> !UnwindSafe for AllPins<'d, TX, RX, CTS, RTS>
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