Go to the source code of this file.
Defines | |
#define | PCA_PINP 0 |
#define | PCA_POUT 2 |
#define | PCA_PINV 4 |
#define | PCA_CONF 6 |
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 | IOExpGetBit (int bank, int bit, int *value) |
int | IOExpSetBitHigh (int bank, int bit) |
int | IOExpSetBitLow (int bank, int bit) |
int | IOExpSetBit (int bank, int bit, int value) |
Variables | |
pca_regs_t * | pca_ctrl = NULL |
#define PCA_PINP 0 |
PCA Input register offset
Definition at line 60 of file pca9555.c.
Referenced by IOExpGetBit(), and IOExpRawRead().
#define PCA_POUT 2 |
PCA Output register offset
Definition at line 61 of file pca9555.c.
Referenced by IOExpInit(), IOExpPinConfigSet(), IOExpRawWrite(), IOExpSetBitHigh(), and IOExpSetBitLow().
#define PCA_PINV 4 |
PCA Polarity inversion register offset
Definition at line 62 of file pca9555.c.
Referenced by IOExpInit(), and IOExpPinConfigSet().
#define PCA_CONF 6 |
PCA Configuration register offset
Definition at line 63 of file pca9555.c.
Referenced by IOExpInit(), and IOExpPinConfigSet().
int IOExpInit | ( | void | ) |
int IOExpPinConfigSet | ( | int | bank, | |
int | bit, | |||
uint32_t | flags | |||
) |
Definition at line 102 of file pca9555.c.
References GPIO_CFG_INVERT, GPIO_CFG_NORM, GPIO_CFG_OUTPUT, PCA_CONF, pca_ctrl, PCA_PINV, PCA_POUT, and TwMasterRegWrite().
int IOExpRawWrite | ( | int | bank, | |
int | value | |||
) |
Definition at line 129 of file pca9555.c.
References pca_ctrl, PCA_POUT, and TwMasterRegWrite().
int IOExpRawRead | ( | int | bank, | |
int * | value | |||
) |
int IOExpGetBit | ( | int | bank, | |
int | bit, | |||
int * | value | |||
) |
Definition at line 156 of file pca9555.c.
References PCA_PINP, and TwMasterRegRead().
int IOExpSetBitHigh | ( | int | bank, | |
int | bit | |||
) |
Definition at line 173 of file pca9555.c.
References pca_ctrl, PCA_POUT, and TwMasterRegWrite().
Referenced by InitLED(), and IOExpSetBit().
int IOExpSetBitLow | ( | int | bank, | |
int | bit | |||
) |
Definition at line 187 of file pca9555.c.
References pca_ctrl, PCA_POUT, and TwMasterRegWrite().
Referenced by IOExpSetBit().
int IOExpSetBit | ( | int | bank, | |
int | bit, | |||
int | value | |||
) |
Definition at line 201 of file pca9555.c.
References IOExpSetBitHigh(), and IOExpSetBitLow().
Referenced by NutSetLed().
pca_regs_t* pca_ctrl = NULL |
Definition at line 72 of file pca9555.c.
Referenced by IOExpInit(), IOExpPinConfigSet(), IOExpRawWrite(), IOExpSetBitHigh(), and IOExpSetBitLow().