[−][src]Module stm32f1xx_hal::gpio
General Purpose I/Os
Interfacing with v1 traits
embedded-hal has two versions of the digital traits, v2 which is used
by this crate and v1 which is deprecated but still used by a lot of drivers.
If you want to use such a driver with this crate, you need to convert the digital pins to the v1 type.
This is done using embedded-hal::digital::v1_compat::OldOutputPin. For example:
let nss = gpioa.pa4.into_push_pull_output(&mut gpioa.crl); let mut mfrc522 = Mfrc522::new(spi, OldOutputPin::from(nss)).unwrap();
Modules
| gpioa | GPIO |
| gpiob | GPIO |
| gpioc | GPIO |
| gpiod | GPIO |
| gpioe | GPIO |
Structs
| Alternate | Alternate function |
| Analog | Analog mode (type state) |
| Debugger | Used by the debugger (type state) |
| Floating | Floating input (type state) |
| Input | Input mode (type state) |
| OpenDrain | Open drain output (type state) |
| Output | Output mode (type state) |
| PullDown | Pulled down input (type state) |
| PullUp | Pulled up input (type state) |
| PushPull | Push pull output (type state) |
Enums
| State |
Traits
| Active | Marker trait for active states. |
| GpioExt | Extension trait to split a GPIO peripheral in independent pins and registers |