embassy-stm32

Crates

git

Versions

stm32u599zi

Flavors

embassy_stm32::tsc::pin_groups::pin_roles

Trait Role

Source
pub trait Role {
    // Required methods
    fn pin_type() -> PinType;
    fn output_type() -> OutputType;
}
Expand description

Trait for TSC pin roles.

This trait defines the behavior and properties of different TSC pin roles. It is implemented by the marker types Channel, Sample, and Shield.

Required Methods§

Source

fn pin_type() -> PinType

Returns the PinType associated with this role.

Source

fn output_type() -> OutputType

Returns the OutputType associated with this role.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§