File nut/dev/pca9555.c


Included Files


Preprocessor definitions

#define I2C_SLA_IOEXP 0x23

< PCA Input register offset

#define PCA_PINP 0

< PCA Output register offset

#define PCA_POUT 2

< PCA Polarity inversion register offset

#define PCA_PINV 4

< PCA Configuration register offset

#define PCA_CONF 6


Typedef pca_regs_t

typedef struct {...} pca_regs_t
struct  
   {  
      uint8_t out[2];  
      uint8_t pol[2];  
      uint8_t con[2];  
   }  

Global Variable pca_ctrl

pca_regs_t* pca_ctrl
Visible in:   nut/dev/pca9555.c
Used in: IOExpInit() nut/dev/pca9555.c
  IOExpPinConfigSet() nut/dev/pca9555.c
  IOExpRawWrite() nut/dev/pca9555.c
  IOExpSetBitHigh() nut/dev/pca9555.c
  IOExpSetBitLow() nut/dev/pca9555.c

Global Function IOExpGetBit()

int IOExpGetBit ( int bank, int bit, int* value )
Prototyped in: nut/include/dev/pca9555.h
Calls: NutTwiMasterRegRead()

Global Function IOExpInit()

int IOExpInit ( void )
Prototyped in: nut/include/dev/pca9555.h
Calls: malloc() nut/crt/malloc.c
  memset() nut/c/string/memset.c
  NutTwiMasterRegWrite()
References Variables: pca_ctrl nut/dev/pca9555.c

Global Function IOExpPinConfigSet()

int IOExpPinConfigSet ( int bank, int bit, uint32_t flags )
Prototyped in: nut/include/dev/pca9555.h
Calls: NutTwiMasterRegWrite()
References Variables: pca_ctrl nut/dev/pca9555.c

Global Function IOExpRawRead()

int IOExpRawRead ( int bank, int* value )
Prototyped in: nut/include/dev/pca9555.h
Calls: NutTwiMasterRegRead()

Global Function IOExpRawWrite()

int IOExpRawWrite ( int bank, int value )
Prototyped in: nut/include/dev/pca9555.h
Calls: NutTwiMasterRegWrite()
References Variables: pca_ctrl nut/dev/pca9555.c

Global Function IOExpSetBit()

int IOExpSetBit ( int bank, int bit, int value )
Prototyped in: nut/include/dev/pca9555.h
Calls: IOExpSetBitHigh() nut/dev/pca9555.c
  IOExpSetBitLow() nut/dev/pca9555.c

Global Function IOExpSetBitHigh()

int IOExpSetBitHigh ( int bank, int bit )
Prototyped in: nut/include/dev/pca9555.h
Calls: NutTwiMasterRegWrite()
Called by: IOExpSetBit() nut/dev/pca9555.c
References Variables: pca_ctrl nut/dev/pca9555.c

Global Function IOExpSetBitLow()

int IOExpSetBitLow ( int bank, int bit )
Prototyped in: nut/include/dev/pca9555.h
Calls: NutTwiMasterRegWrite()
Called by: IOExpSetBit() nut/dev/pca9555.c
References Variables: pca_ctrl nut/dev/pca9555.c