embassy-stm32

Crates

git

Versions

stm32u031f4

Flavors

embassy_stm32::tsc

Struct PinGroup

Source
pub struct PinGroup<'d, T, C> { /* private fields */ }
Expand description

Pin group definition Pins are organized into groups of four IOs, all groups with a sampling channel must also have a sampling capacitor channel.

Implementations§

Source§

impl<'d, T: Instance, C> PinGroup<'d, T, C>

Source

pub fn new() -> Self

Create new sensing group

Source§

impl<'d, T: Instance> PinGroup<'d, T, G1>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G1IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G1 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G1IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G1 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G1IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G1 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G1IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G1 TSC group instance.

Source§

impl<'d, T: Instance> PinGroup<'d, T, G2>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G2IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G2 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G2IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G2 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G2IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G2 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G2IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G2 TSC group instance.

Source§

impl<'d, T: Instance> PinGroup<'d, T, G3>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G3IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G3 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G3IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G3 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G3IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G3 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G3IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G3 TSC group instance.

Source§

impl<'d, T: Instance> PinGroup<'d, T, G4>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G4IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G4 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G4IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G4 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G4IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G4 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G4IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G4 TSC group instance.

Source§

impl<'d, T: Instance> PinGroup<'d, T, G5>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G5IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G5 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G5IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G5 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G5IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G5 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G5IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G5 TSC group instance.

Source§

impl<'d, T: Instance> PinGroup<'d, T, G6>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G6IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G6 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G6IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G6 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G6IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G6 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G6IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G6 TSC group instance.

Source§

impl<'d, T: Instance> PinGroup<'d, T, G7>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G7IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G7 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G7IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G7 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G7IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G7 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G7IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G7 TSC group instance.

Source§

impl<'d, T: Instance> PinGroup<'d, T, G8>

Source

pub fn set_io1( &mut self, pin: impl Peripheral<P = impl G8IO1Pin<T>> + 'd, role: PinType, )

Create a new pin1 for G8 TSC group instance.

Source

pub fn set_io2( &mut self, pin: impl Peripheral<P = impl G8IO2Pin<T>> + 'd, role: PinType, )

Create a new pin2 for G8 TSC group instance.

Source

pub fn set_io3( &mut self, pin: impl Peripheral<P = impl G8IO3Pin<T>> + 'd, role: PinType, )

Create a new pin3 for G8 TSC group instance.

Source

pub fn set_io4( &mut self, pin: impl Peripheral<P = impl G8IO4Pin<T>> + 'd, role: PinType, )

Create a new pin4 for G8 TSC group instance.

Trait Implementations§

Source§

impl<'d, T: Default, C: Default> Default for PinGroup<'d, T, C>

Source§

fn default() -> PinGroup<'d, T, C>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'d, T, C> Freeze for PinGroup<'d, T, C>

§

impl<'d, T, C> RefUnwindSafe for PinGroup<'d, T, C>

§

impl<'d, T, C> Send for PinGroup<'d, T, C>
where T: Send, C: Send,

§

impl<'d, T, C> Sync for PinGroup<'d, T, C>
where T: Sync, C: Sync,

§

impl<'d, T, C> Unpin for PinGroup<'d, T, C>
where T: Unpin, C: Unpin,

§

impl<'d, T, C> !UnwindSafe for PinGroup<'d, T, C>

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 = Infallible

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.