Embassy
embassy-stm32

Crates

git

Versions

stm32u535rb

Flavors

Struct embassy_stm32::tsc::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>,

§

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

§

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.