OpenBIC
OpenSource Bridge-IC
plat_ioexp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PCA6414A_INPUT_PORT_0   0x00
 
#define PCA6414A_INPUT_PORT_1   0x01
 
#define PCA6414A_OUTPUT_PORT_0   0x02
 
#define PCA6414A_OUTPUT_PORT_1   0x03
 
#define PCA6414A_CONFIG_0   0x06
 
#define PCA6414A_CONFIG_1   0x07
 
#define TCA6424A_INPUT_PORT_0   0x00
 
#define TCA6424A_INPUT_PORT_1   0x01
 
#define TCA6424A_INPUT_PORT_2   0x02
 
#define TCA6424A_OUTPUT_PORT_0   0x04
 
#define TCA6424A_OUTPUT_PORT_1   0x05
 
#define TCA6424A_OUTPUT_PORT_2   0x06
 
#define TCA6424A_CONFIG_0   0x0C
 
#define TCA6424A_CONFIG_1   0x0D
 
#define TCA6424A_CONFIG_2   0x0E
 
#define U200052_IO_ADDR   0x3A
 
#define U200070_IO_ADDR   0x3C
 
#define U200052_IO_I2C_BUS   I2C_BUS1
 
#define U200051_IO_I2C_BUS   I2C_BUS1
 
#define U200070_IO_I2C_BUS   I2C_BUS1
 
#define HAMSA_MFIO19   1
 

Functions

bool pca6416a_i2c_read (uint8_t offset, uint8_t *data, uint8_t len)
 
bool pca6416a_i2c_write (uint8_t offset, uint8_t *data, uint8_t len)
 
bool tca6424a_i2c_read (uint8_t offset, uint8_t *data, uint8_t len)
 
bool tca6424a_i2c_write (uint8_t offset, uint8_t *data, uint8_t len)
 
bool tca6424a_i2c_write_bit (uint8_t offset, uint8_t bit, uint8_t val)
 
void ioexp_init (void)
 
void init_U200052_IO ()
 
void set_pca6554apw_ioe_value (uint8_t ioe_bus, uint8_t ioe_addr, uint8_t ioe_reg, uint8_t value)
 
int get_pca6554apw_ioe_value (uint8_t ioe_bus, uint8_t ioe_addr, uint8_t ioe_reg, uint8_t *value)
 

Macro Definition Documentation

◆ HAMSA_MFIO19

#define HAMSA_MFIO19   1

◆ PCA6414A_CONFIG_0

#define PCA6414A_CONFIG_0   0x06

◆ PCA6414A_CONFIG_1

#define PCA6414A_CONFIG_1   0x07

◆ PCA6414A_INPUT_PORT_0

#define PCA6414A_INPUT_PORT_0   0x00

◆ PCA6414A_INPUT_PORT_1

#define PCA6414A_INPUT_PORT_1   0x01

◆ PCA6414A_OUTPUT_PORT_0

#define PCA6414A_OUTPUT_PORT_0   0x02

◆ PCA6414A_OUTPUT_PORT_1

#define PCA6414A_OUTPUT_PORT_1   0x03

◆ TCA6424A_CONFIG_0

#define TCA6424A_CONFIG_0   0x0C

◆ TCA6424A_CONFIG_1

#define TCA6424A_CONFIG_1   0x0D

◆ TCA6424A_CONFIG_2

#define TCA6424A_CONFIG_2   0x0E

◆ TCA6424A_INPUT_PORT_0

#define TCA6424A_INPUT_PORT_0   0x00

◆ TCA6424A_INPUT_PORT_1

#define TCA6424A_INPUT_PORT_1   0x01

◆ TCA6424A_INPUT_PORT_2

#define TCA6424A_INPUT_PORT_2   0x02

◆ TCA6424A_OUTPUT_PORT_0

#define TCA6424A_OUTPUT_PORT_0   0x04

◆ TCA6424A_OUTPUT_PORT_1

#define TCA6424A_OUTPUT_PORT_1   0x05

◆ TCA6424A_OUTPUT_PORT_2

#define TCA6424A_OUTPUT_PORT_2   0x06

◆ U200051_IO_I2C_BUS

#define U200051_IO_I2C_BUS   I2C_BUS1

◆ U200052_IO_ADDR

#define U200052_IO_ADDR   0x3A

◆ U200052_IO_I2C_BUS

#define U200052_IO_I2C_BUS   I2C_BUS1

◆ U200070_IO_ADDR

#define U200070_IO_ADDR   0x3C

◆ U200070_IO_I2C_BUS

#define U200070_IO_I2C_BUS   I2C_BUS1

Function Documentation

◆ get_pca6554apw_ioe_value()

int get_pca6554apw_ioe_value ( uint8_t  ioe_bus,
uint8_t  ioe_addr,
uint8_t  ioe_reg,
uint8_t *  value 
)
Here is the call graph for this function:

◆ init_U200052_IO()

void init_U200052_IO ( )
Here is the call graph for this function:

◆ ioexp_init()

void ioexp_init ( void  )
Here is the call graph for this function:

◆ pca6416a_i2c_read()

bool pca6416a_i2c_read ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ pca6416a_i2c_write()

bool pca6416a_i2c_write ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ set_pca6554apw_ioe_value()

void set_pca6554apw_ioe_value ( uint8_t  ioe_bus,
uint8_t  ioe_addr,
uint8_t  ioe_reg,
uint8_t  value 
)
Here is the call graph for this function:

◆ tca6424a_i2c_read()

bool tca6424a_i2c_read ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ tca6424a_i2c_write()

bool tca6424a_i2c_write ( uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ tca6424a_i2c_write_bit()

bool tca6424a_i2c_write_bit ( uint8_t  offset,
uint8_t  bit,
uint8_t  val 
)
Here is the call graph for this function: