Struct Gpio
pub struct Gpio { /* private fields */ }Expand description
General-purpose I/Os
Implementations§
§impl Gpio
impl Gpio
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
pub const fn afr(self, n: usize) -> Reg<Afr, RW>
pub const fn afr(self, n: usize) -> Reg<Afr, RW>
GPIO alternate function registers. The register described in the datasheet as AFRL is index 0 in this array, and AFRH is index 1. Note that when operating on AFRH, you need to subtract 8 from any operations on the field array it contains – the alternate function for pin 9 is at index 1, for instance.
pub const fn brr(self) -> Reg<Brr, W>
pub const fn brr(self) -> Reg<Brr, W>
GPIO port bit reset register (not available on STM32F2, F4, F7, H742/743/745/747/750/753/755/757, H72x/73x, H7A3/7B3/7B0 and L1 Cat.1/2/3)
pub const fn hslvr(self) -> Reg<Hslvr, RW>
pub const fn hslvr(self) -> Reg<Hslvr, RW>
GPIO high-speed low-voltage register (only on STM32U5, U3, H5 and WBA6 ports D/E/G)
pub const fn seccfgr(self) -> Reg<Seccfgr, RW>
pub const fn seccfgr(self) -> Reg<Seccfgr, RW>
GPIO secure configuration register (only on STM32L5, U5, U3, H5 except H503, WBA, N6, G5 and MP1 GPIOZ)
pub const fn privcfgr(self) -> Reg<Privcfgr, RW>
pub const fn privcfgr(self) -> Reg<Privcfgr, RW>
GPIO privileged configuration register (only on STM32N6)
pub const fn rcfglockr(self) -> Reg<Rcfglockr, RW>
pub const fn rcfglockr(self) -> Reg<Rcfglockr, RW>
GPIO resource configuration lock register (only on STM32N6)