|
PebbleOS v4.47.0-888-g9fa910d13
|
GPIO port over the eight pins of a TI TCA6408 I2C expander. More...
Data Structures | |
| struct | pbl_tca6408 |
| TCA6408 port. More... | |
Macros | |
| #define | TCA6408_NUM_PINS 8U |
| Number of pins. | |
| #define | PBL_TCA6408_DEFINE(sym, _bus, _addr) |
| Define a TCA6408. | |
GPIO port over the eight pins of a TI TCA6408 I2C expander.
Pins are push-pull, without pulls.
| struct pbl_tca6408 |
TCA6408 port.
| Data Fields | ||
|---|---|---|
| struct pbl_i2c_dev | i2c | I2C device. |
| struct pbl_gpio_port | port | GPIO port, child of the I2C bus. |
| struct pbl_tca6408_state * | state | Runtime state. |
| #define PBL_TCA6408_DEFINE | ( | sym, | |
| _bus, | |||
| _addr | |||
| ) |
Define a TCA6408.
Pins are then referenced with PBL_GPIO(&sym.port, pin, flags).
| sym | Symbol of the port. |
| _bus | I2C bus. |
| _addr | 7-bit I2C address. |
| #define TCA6408_NUM_PINS 8U |
Number of pins.