Skip to main content

GpioExt

Trait GpioExt 

Source
pub trait GpioExt {
    type Parts;

    // Required method
    fn split(self, rcu: &mut Rcu) -> Self::Parts;
}
Expand description

Extension trait splitting a GPIO port into its individual pins.

Required Associated Types§

Source

type Parts

The struct of individual pins this port yields.

Required Methods§

Source

fn split(self, rcu: &mut Rcu) -> Self::Parts

Enables the port’s clock and returns its pins.

Consumes the port, so its pins can only be obtained once.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GpioExt for Gpioa

Source§

type Parts = PartsA

Source§

fn split(self, rcu: &mut Rcu) -> Self::Parts

Source§

impl GpioExt for Gpiob

Source§

type Parts = PartsB

Source§

fn split(self, rcu: &mut Rcu) -> Self::Parts

Source§

impl GpioExt for Gpiof

Source§

type Parts = PartsF

Source§

fn split(self, rcu: &mut Rcu) -> Self::Parts

Implementors§