pub struct Sel<T: Instance, M: TransceiverMarker> { /* private fields */ }Expand description
Per-transceiver pin selector. Cannot be constructed outside this module
(private field); handed out only inside the configure_pins closure,
one per transceiver, by value. Every method consumes self, so each
transceiver’s pins can be declared exactly once (E0382 otherwise).
Implementations§
Source§impl<'d, T, M> Sel<T, M>where
T: Instance,
M: TransceiverMarker,
impl<'d, T, M> Sel<T, M>where
T: Instance,
M: TransceiverMarker,
Sourcepub fn datin(self, datin: Peri<'d, impl DatinPin<T, M>>) -> DatinCfg<'d, T, M>
pub fn datin(self, datin: Peri<'d, impl DatinPin<T, M>>) -> DatinCfg<'d, T, M>
Declare this transceiver with a DATIN pin (AF set here).
Auto Trait Implementations§
impl<T, M> Freeze for Sel<T, M>
impl<T, M> RefUnwindSafe for Sel<T, M>
impl<T, M> Send for Sel<T, M>
impl<T, M> Sync for Sel<T, M>
impl<T, M> Unpin for Sel<T, M>
impl<T, M> UnsafeUnpin for Sel<T, M>
impl<T, M> UnwindSafe for Sel<T, M>
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