embassy-stm32

Crates

git

Versions

stm32h7b0zb

Flavors

Skip to main content

Sel

Struct Sel 

Source
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>

Source

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).

Source

pub fn datin_ckin( self, datin: Peri<'d, impl DatinPin<T, M>>, ckin: Peri<'d, impl CkinPin<T, M>>, ) -> DckCfg<'d, T, M>

Declare this transceiver with DATIN + CKIN.

Source

pub fn none(self) -> NoPinsCfg

Declare this transceiver as pinless (same as NoPinsCfg).

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.