|
PebbleOS
|
GPIO port over the five GPIOs of the nPM1300, a cell of nPM1300. More...
Data Structures | |
| struct | pbl_npm1300_gpio |
| nPM1300 GPIO port. More... | |
Macros | |
| #define | NPM1300_GPIO_NUM_PINS 5U |
| Number of GPIOs. | |
| #define | PBL_NPM1300_GPIO_DEFINE(sym, _pmic) |
| Define the GPIO port. | |
GPIO port over the five GPIOs of the nPM1300, a cell of nPM1300.
A pin's pull-up is only enabled while it drives high.
| struct pbl_npm1300_gpio |
nPM1300 GPIO port.
| Data Fields | ||
|---|---|---|
| struct pbl_gpio_port | port | GPIO port, child of the core. |
| struct pbl_npm1300_gpio_state * | state | Runtime state. |
| #define NPM1300_GPIO_NUM_PINS 5U |
Number of GPIOs.
| #define PBL_NPM1300_GPIO_DEFINE | ( | sym, | |
| _pmic | |||
| ) |
Define the GPIO port.
Pins are then referenced with PBL_GPIO(&sym.port, pin, flags).
| sym | Symbol of the port. |
| _pmic | Core, a struct pbl_npm1300. |