Crate ql_gpio
Expand description
Pure Rust implementation of <ql_peripheral>’s GPIO API.
The API is mostly based on Linux’s sysfs GPIO interface, but with two exceptions:
- Quectel uses a different GPIO numbering scheme than Linux. The mapping is
done internally by the
ql_peripherallibrary. - The sysfs interface doesn’t support setting the pull selection. Quectel’s library handles this by writing to some magic registers.
Both of these are re-implemented by this library.
Modules§
- ag35 🔒
- Taken from <ql_gpio.h>
Structs§
Enums§
- Direction
- PinName
- AG35 GPIO pin.
- Pull
Selection
Functions§
- init
- Initializes a GPIO pin similar to
Ql_GPIO_Init. - set_
pull_ selection - Sets the pull selection for a pin.