Crate ql_gpio

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:

  1. Quectel uses a different GPIO numbering scheme than Linux. The mapping is done internally by the ql_peripheral library.
  2. 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§

InputPin
Input GPIO pin.
Pin

Enums§

Direction
PinName
AG35 GPIO pin.
PullSelection

Functions§

init
Initializes a GPIO pin similar to Ql_GPIO_Init.
set_pull_selection
Sets the pull selection for a pin.