pub struct Pads<S, RX = NoneT, TX = NoneT, RTS = NoneT, CTS = NoneT>where
S: Sercom,
RX: OptionalPad,
TX: OptionalPad,
RTS: OptionalPad,
CTS: OptionalPad,{ /* private fields */ }
Expand description
Container for a set of SERCOM Pad
s
See the module-level documentation for more
details on specifying a Pads
type and creating instances.
Implementations§
source§impl<S, RX, TX, RTS, CTS> Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: OptionalPad,
TX: OptionalPad,
RTS: OptionalPad,
CTS: OptionalPad,
impl<S, RX, TX, RTS, CTS> Pads<S, RX, TX, RTS, CTS>where S: Sercom, RX: OptionalPad, TX: OptionalPad, RTS: OptionalPad, CTS: OptionalPad,
sourcepub fn free(self) -> (RX, TX, RTS, CTS)
pub fn free(self) -> (RX, TX, RTS, CTS)
source§impl<S, RX, TX, RTS, CTS> Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: OptionalPad,
TX: OptionalPad,
RTS: OptionalPad,
CTS: OptionalPad,
impl<S, RX, TX, RTS, CTS> Pads<S, RX, TX, RTS, CTS>where S: Sercom, RX: OptionalPad, TX: OptionalPad, RTS: OptionalPad, CTS: OptionalPad,
sourcepub fn rx<I>(
self,
pin: impl AnyPin<Id = I>
) -> Pads<S, Pin<I, <I as GetPad<S>>::PinMode>, TX, RTS, CTS>where
I: GetPad<S>,
Pin<I, <I as GetPad<S>>::PinMode>: IsPad,
pub fn rx<I>( self, pin: impl AnyPin<Id = I> ) -> Pads<S, Pin<I, <I as GetPad<S>>::PinMode>, TX, RTS, CTS>where I: GetPad<S>, Pin<I, <I as GetPad<S>>::PinMode>: IsPad,
Set the RX
Pad
sourcepub fn tx<I>(
self,
pin: impl AnyPin<Id = I>
) -> Pads<S, RX, Pin<I, <I as GetPad<S>>::PinMode>, RTS, CTS>where
I: GetPad<S>,
Pin<I, <I as GetPad<S>>::PinMode>: IsPad,
pub fn tx<I>( self, pin: impl AnyPin<Id = I> ) -> Pads<S, RX, Pin<I, <I as GetPad<S>>::PinMode>, RTS, CTS>where I: GetPad<S>, Pin<I, <I as GetPad<S>>::PinMode>: IsPad,
Set the TX
Pad
Trait Implementations§
source§impl<S, RX, TX, RTS, CTS> PadSet for Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: OptionalPad,
TX: OptionalPad,
RTS: OptionalPad,
CTS: OptionalPad,
impl<S, RX, TX, RTS, CTS> PadSet for Pads<S, RX, TX, RTS, CTS>where S: Sercom, RX: OptionalPad, TX: OptionalPad, RTS: OptionalPad, CTS: OptionalPad,
source§impl<S, RX, TX, RTS, CTS> RxpoTxpo for Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: OptionalPad,
TX: OptionalPad,
RTS: OptionalPad,
CTS: OptionalPad,
(<RX as OptionalPad>::PadNum, <TX as OptionalPad>::PadNum, <RTS as OptionalPad>::PadNum, <CTS as OptionalPad>::PadNum): RxpoTxpo,
impl<S, RX, TX, RTS, CTS> RxpoTxpo for Pads<S, RX, TX, RTS, CTS>where S: Sercom, RX: OptionalPad, TX: OptionalPad, RTS: OptionalPad, CTS: OptionalPad, (<RX as OptionalPad>::PadNum, <TX as OptionalPad>::PadNum, <RTS as OptionalPad>::PadNum, <CTS as OptionalPad>::PadNum): RxpoTxpo,
Lift the implementations of RxpoTxpo
from four-tuples of
OptionalPadNum
s to the corresponding Pads
types.
source§impl<S, TX, CTS> ValidPads for Pads<S, NoneT, TX, NoneT, CTS>where
S: Sercom,
TX: SomePad,
CTS: OptionalPad,
Pads<S, NoneT, TX, NoneT, CTS>: PadSet + RxpoTxpo,
impl<S, TX, CTS> ValidPads for Pads<S, NoneT, TX, NoneT, CTS>where S: Sercom, TX: SomePad, CTS: OptionalPad, Pads<S, NoneT, TX, NoneT, CTS>: PadSet + RxpoTxpo,
type Capability = Tx
source§impl<S, RX, RTS> ValidPads for Pads<S, RX, NoneT, RTS, NoneT>where
S: Sercom,
RX: SomePad,
RTS: OptionalPad,
Pads<S, RX, NoneT, RTS, NoneT>: PadSet + RxpoTxpo,
impl<S, RX, RTS> ValidPads for Pads<S, RX, NoneT, RTS, NoneT>where S: Sercom, RX: SomePad, RTS: OptionalPad, Pads<S, RX, NoneT, RTS, NoneT>: PadSet + RxpoTxpo,
type Capability = Rx
source§impl<S, RX, TX, RTS, CTS> ValidPads for Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: SomePad,
TX: SomePad,
RTS: OptionalPad,
CTS: OptionalPad,
Pads<S, RX, TX, RTS, CTS>: PadSet + RxpoTxpo,
impl<S, RX, TX, RTS, CTS> ValidPads for Pads<S, RX, TX, RTS, CTS>where S: Sercom, RX: SomePad, TX: SomePad, RTS: OptionalPad, CTS: OptionalPad, Pads<S, RX, TX, RTS, CTS>: PadSet + RxpoTxpo,
type Capability = Duplex
Auto Trait Implementations§
impl<S, RX, TX, RTS, CTS> RefUnwindSafe for Pads<S, RX, TX, RTS, CTS>where CTS: RefUnwindSafe, RTS: RefUnwindSafe, RX: RefUnwindSafe, S: RefUnwindSafe, TX: RefUnwindSafe,
impl<S, RX, TX, RTS, CTS> Send for Pads<S, RX, TX, RTS, CTS>where CTS: Send, RTS: Send, RX: Send, S: Send, TX: Send,
impl<S, RX, TX, RTS, CTS> Sync for Pads<S, RX, TX, RTS, CTS>where CTS: Sync, RTS: Sync, RX: Sync, S: Sync, TX: Sync,
impl<S, RX, TX, RTS, CTS> Unpin for Pads<S, RX, TX, RTS, CTS>where CTS: Unpin, RTS: Unpin, RX: Unpin, S: Unpin, TX: Unpin,
impl<S, RX, TX, RTS, CTS> UnwindSafe for Pads<S, RX, TX, RTS, CTS>where CTS: UnwindSafe, RTS: UnwindSafe, RX: UnwindSafe, S: UnwindSafe, TX: UnwindSafe,
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