#include <cfg/pca9555.h>
#include <dev/twif.h>
Go to the source code of this file.
Defines |
| #define | IOXP_PORT0 0x80 |
| #define | IOXP_PORT1 0x81 |
| #define | IOXP_PIN0 0 |
| #define | IOXP_PIN1 1 |
| #define | IOXP_PIN2 2 |
| #define | IOXP_PIN3 3 |
| #define | IOXP_PIN4 4 |
| #define | IOXP_PIN5 5 |
| #define | IOXP_PIN6 6 |
| #define | IOXP_PIN7 7 |
| #define | GPIO_CFG_INVERT 0x00010000 |
| #define | GPIO_CFG_NORM 0x00020000 |
Functions |
| int | IOExpInit (void) |
| int | IOExpPinConfigSet (int bank, int bit, uint32_t flags) |
| int | IOExpRawWrite (int bank, int value) |
| int | IOExpRawRead (int bank, int *value) |
| int | IOExpSetBitLow (int bank, int bit) |
| int | IOExpSetBitHigh (int bank, int bit) |
| int | IOExpGetBit (int bank, int bit, int *value) |
| int | IOExpSetBit (int bank, int bit, int value) |
Define Documentation
| #define GPIO_CFG_INVERT 0x00010000 |
| #define GPIO_CFG_NORM 0x00020000 |
Function Documentation
References pca_regs_t::con, I2C_SLA_IOEXP, malloc(), memset(), NULL, pca_regs_t::out, PCA_CONF, PCA_PINV, PCA_POUT, pca_regs_t::pol, and TwMasterRegWrite.
| int IOExpPinConfigSet |
( |
int |
bank, |
|
|
int |
bit, |
|
|
uint32_t |
flags |
|
) |
| |
References pca_regs_t::con, GPIO_CFG_INVERT, GPIO_CFG_NORM, GPIO_CFG_OUTPUT, I2C_SLA_IOEXP, pca_regs_t::out, PCA_CONF, PCA_PINV, PCA_POUT, pca_regs_t::pol, and TwMasterRegWrite.
Referenced by InitKEY(), and InitLED().
| int IOExpRawWrite |
( |
int |
bank, |
|
|
int |
value |
|
) |
| |
| int IOExpRawRead |
( |
int |
bank, |
|
|
int * |
value |
|
) |
| |
| int IOExpSetBitLow |
( |
int |
bank, |
|
|
int |
bit |
|
) |
| |
| int IOExpSetBitHigh |
( |
int |
bank, |
|
|
int |
bit |
|
) |
| |
| int IOExpGetBit |
( |
int |
bank, |
|
|
int |
bit, |
|
|
int * |
value |
|
) |
| |
| int IOExpSetBit |
( |
int |
bank, |
|
|
int |
bit, |
|
|
int |
value |
|
) |
| |