GpioExt

Trait GpioExt 

Source
pub trait GpioExt {
    type Parts;

    // Required methods
    fn split(self, rcc: &mut RCC) -> Self::Parts;
    unsafe fn split_without_reset(self, rcc: &mut RCC) -> Self::Parts;
}
Expand description

Extension trait to split a GPIO peripheral in independent pins and registers

Required Associated Types§

Source

type Parts

The to split the GPIO into

Required Methods§

Source

fn split(self, rcc: &mut RCC) -> Self::Parts

Splits the GPIO block into independent pins and registers.

This resets the state of the GPIO block.

Source

unsafe fn split_without_reset(self, rcc: &mut RCC) -> Self::Parts

Splits the GPIO block into independent pins and registers without resetting its state.

§Safety

Make sure that all pins modes are set in reset state.

Implementors§