pub struct AllPins<'d, TX, RX, CTS, RTS>{ /* private fields */ }
Expand description
All pins offered by UART
Implementations§
source§impl<'d, TX, RX, CTS, RTS> AllPins<'d, TX, RX, CTS, RTS>
impl<'d, TX, RX, CTS, RTS> AllPins<'d, TX, RX, CTS, RTS>
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>
impl<TX, RX, CTS, RTS> UartPins for AllPins<'_, TX, RX, CTS, RTS>
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>
impl<'d, TX, RX, CTS, RTS> Send for AllPins<'d, TX, RX, CTS, RTS>
impl<'d, TX, RX, CTS, RTS> Sync for AllPins<'d, TX, RX, CTS, RTS>
impl<'d, TX, RX, CTS, RTS> Unpin for AllPins<'d, TX, RX, CTS, RTS>
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