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§
Required Methods§
Sourcefn split(self, rcc: &mut RCC) -> Self::Parts
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.
Sourceunsafe fn split_without_reset(self, rcc: &mut RCC) -> Self::Parts
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.