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

Go to the source code of this file.

Macros

#define PCA9846_MUTEX_LOCK_MS   1000
 
#define PCA9846_DEFAULT_CHANNEL   0
 

Enumerations

enum  PCA9846_CHANNEL { PCA9846_CHANNEL_0 = BIT(0) , PCA9846_CHANNEL_1 = BIT(1) , PCA9846_CHANNEL_2 = BIT(2) , PCA9846_CHANNEL_3 = BIT(3) }
 
enum  PCA9848_CHANNEL {
  PCA9848_CHANNEL_0 = BIT(0) , PCA9848_CHANNEL_1 = BIT(1) , PCA9848_CHANNEL_2 = BIT(2) , PCA9848_CHANNEL_3 = BIT(3) ,
  PCA9848_CHANNEL_4 = BIT(4) , PCA9848_CHANNEL_5 = BIT(5) , PCA9848_CHANNEL_6 = BIT(6) , PCA9848_CHANNEL_7 = BIT(7)
}
 

Functions

bool set_pca9846_channel_and_transfer (uint8_t bus, uint8_t mux_addr, uint8_t mux_channel, uint8_t tran_type, I2C_MSG *msg)
 

Macro Definition Documentation

◆ PCA9846_DEFAULT_CHANNEL

#define PCA9846_DEFAULT_CHANNEL   0

◆ PCA9846_MUTEX_LOCK_MS

#define PCA9846_MUTEX_LOCK_MS   1000

Enumeration Type Documentation

◆ PCA9846_CHANNEL

Enumerator
PCA9846_CHANNEL_0 
PCA9846_CHANNEL_1 
PCA9846_CHANNEL_2 
PCA9846_CHANNEL_3 

◆ PCA9848_CHANNEL

Enumerator
PCA9848_CHANNEL_0 
PCA9848_CHANNEL_1 
PCA9848_CHANNEL_2 
PCA9848_CHANNEL_3 
PCA9848_CHANNEL_4 
PCA9848_CHANNEL_5 
PCA9848_CHANNEL_6 
PCA9848_CHANNEL_7 

Function Documentation

◆ set_pca9846_channel_and_transfer()

bool set_pca9846_channel_and_transfer ( uint8_t  bus,
uint8_t  mux_addr,
uint8_t  mux_channel,
uint8_t  tran_type,
I2C_MSG msg 
)
Here is the call graph for this function: