KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pca9548.h File Reference

PCA9548 I2C mux driver. More...

#include <assert.h>
#include "drv/wb/i2c.h"

Go to the source code of this file.

Functions

static bool pca9548_select (I2C_Device *dev, int addr, int ch)
 Select a specific channel on the PCA9548. More...
 

Detailed Description

PCA9548 I2C mux driver.

Definition in file pca9548.h.

Function Documentation

static bool pca9548_select ( I2C_Device dev,
int  addr,
int  ch 
)
inlinestatic

Select a specific channel on the PCA9548.

Parameters
addrThe I2C address of the PCA9548
chThe channel 0-7, or -1 to disable.
Returns
true if succesful, false if an error

Definition at line 40 of file pca9548.h.