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
sourceimpl<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)
sourceimpl<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, Pad<S, I>, TX, RTS, CTS>where
I: GetPad<S>,
Pad<S, I>: IsPad,
pub fn rx<I>(self, pin: impl AnyPin<Id = I>) -> Pads<S, Pad<S, I>, TX, RTS, CTS>where
I: GetPad<S>,
Pad<S, I>: IsPad,
Set the RX
Pad
sourcepub fn tx<I>(self, pin: impl AnyPin<Id = I>) -> Pads<S, RX, Pad<S, I>, RTS, CTS>where
I: GetPad<S>,
Pad<S, I>: IsPad,
pub fn tx<I>(self, pin: impl AnyPin<Id = I>) -> Pads<S, RX, Pad<S, I>, RTS, CTS>where
I: GetPad<S>,
Pad<S, I>: IsPad,
Set the TX
Pad
Trait Implementations
sourceimpl<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,
sourceimpl<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::PadNum, TX::PadNum, RTS::PadNum, CTS::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::PadNum, TX::PadNum, RTS::PadNum, CTS::PadNum): RxpoTxpo,
Lift the implementations of RxpoTxpo
from four-tuples of
OptionalPadNum
s to the corresponding Pads
types.
sourceimpl<S, TX, CTS> ValidPads for Pads<S, NoneT, TX, NoneT, CTS>where
S: Sercom,
TX: SomePad,
CTS: OptionalPad,
Self: PadSet + RxpoTxpo,
impl<S, TX, CTS> ValidPads for Pads<S, NoneT, TX, NoneT, CTS>where
S: Sercom,
TX: SomePad,
CTS: OptionalPad,
Self: PadSet + RxpoTxpo,
type Capability = Tx
sourceimpl<S, RX, RTS> ValidPads for Pads<S, RX, NoneT, RTS, NoneT>where
S: Sercom,
RX: SomePad,
RTS: OptionalPad,
Self: PadSet + RxpoTxpo,
impl<S, RX, RTS> ValidPads for Pads<S, RX, NoneT, RTS, NoneT>where
S: Sercom,
RX: SomePad,
RTS: OptionalPad,
Self: PadSet + RxpoTxpo,
type Capability = Rx
sourceimpl<S, RX, TX, RTS, CTS> ValidPads for Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: SomePad,
TX: SomePad,
RTS: OptionalPad,
CTS: OptionalPad,
Self: 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,
Self: 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more