embassy-stm32

Crates

git

Versions

stm32f302cb

Flavors

TSC

Struct TSC 

Source
pub struct TSC { /* private fields */ }
Expand description

TSC peripheral

Implementationsยง

Sourceยง

impl TSC

Source

pub const unsafe fn steal() -> Peri<'static, Self>

Unsafely create an instance of this peripheral out of thin air.

ยงSafety

You must ensure that youโ€™re only using one instance of this type at a time.

Trait Implementationsยง

Sourceยง

impl Clone for TSC

Sourceยง

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for TSC

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Format for TSC
where (): Format,

Sourceยง

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Sourceยง

impl G1IO1Pin<TSC> for PA0

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G1IO1Pin.
Sourceยง

impl G1IO2Pin<TSC> for PA1

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G1IO2Pin.
Sourceยง

impl G1IO3Pin<TSC> for PA2

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G1IO3Pin.
Sourceยง

impl G1IO4Pin<TSC> for PA3

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G1IO4Pin.
Sourceยง

impl G2IO1Pin<TSC> for PA4

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G2IO1Pin.
Sourceยง

impl G2IO2Pin<TSC> for PA5

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G2IO2Pin.
Sourceยง

impl G2IO3Pin<TSC> for PA6

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G2IO3Pin.
Sourceยง

impl G2IO4Pin<TSC> for PA7

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G2IO4Pin.
Sourceยง

impl G3IO2Pin<TSC> for PB0

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G3IO2Pin.
Sourceยง

impl G3IO3Pin<TSC> for PB1

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G3IO3Pin.
Sourceยง

impl G3IO4Pin<TSC> for PB2

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G3IO4Pin.
Sourceยง

impl G4IO1Pin<TSC> for PA9

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G4IO1Pin.
Sourceยง

impl G4IO2Pin<TSC> for PA10

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G4IO2Pin.
Sourceยง

impl G4IO3Pin<TSC> for PA13

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G4IO3Pin.
Sourceยง

impl G4IO4Pin<TSC> for PA14

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G4IO4Pin.
Sourceยง

impl G5IO1Pin<TSC> for PB3

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G5IO1Pin.
Sourceยง

impl G5IO2Pin<TSC> for PB4

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G5IO2Pin.
Sourceยง

impl G5IO3Pin<TSC> for PB6

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G5IO3Pin.
Sourceยง

impl G5IO4Pin<TSC> for PB7

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G5IO4Pin.
Sourceยง

impl G6IO1Pin<TSC> for PB11

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G6IO1Pin.
Sourceยง

impl G6IO2Pin<TSC> for PB12

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G6IO2Pin.
Sourceยง

impl G6IO3Pin<TSC> for PB13

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G6IO3Pin.
Sourceยง

impl G6IO4Pin<TSC> for PB14

Available on non-afio only.
Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as G6IO4Pin.
Sourceยง

impl Instance for TSC

Sourceยง

type Interrupt = EXTI2_TSC

Interrupt for this TSC instance
Sourceยง

impl Copy for TSC

Sourceยง

impl PeripheralType for TSC

Sourceยง

impl RccPeripheral for TSC

Auto Trait Implementationsยง

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> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.
Sourceยง

impl<_INNER> Instance for _INNER
where _INNER: PeripheralType + 'static,