i2cmux6 2.0.0.0
i2cmux6.h File Reference

This file contains API for I2C MUX 6 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  i2cmux6_t
 I2C MUX 6 Click context object. More...
 
struct  i2cmux6_cfg_t
 I2C MUX 6 Click configuration object. More...
 

Macros

#define I2CMUX6_CHANNEL_DISABLE   0x00
 I2C MUX 6 channel selection values.
 
#define I2CMUX6_CHANNEL_1   0x01
 
#define I2CMUX6_CHANNEL_2   0x02
 
#define I2CMUX6_CHANNEL_3   0x04
 
#define I2CMUX6_CHANNEL_4   0x08
 
#define I2CMUX6_CHANNEL_ALL   0x0F
 
#define I2CMUX6_DEVICE_ADDRESS   0x00
 I2C MUX 6 device address setting.
 
#define I2CMUX6_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  i2cmux6_return_value_t { I2CMUX6_OK = 0 , I2CMUX6_ERROR = -1 }
 I2C MUX 6 Click return value data. More...
 

Functions

void i2cmux6_cfg_setup (i2cmux6_cfg_t *cfg)
 I2C MUX 6 configuration object setup function.
 
err_t i2cmux6_init (i2cmux6_t *ctx, i2cmux6_cfg_t *cfg)
 I2C MUX 6 initialization function.
 
err_t i2cmux6_generic_write (i2cmux6_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len)
 I2C MUX 6 I2C writing function.
 
err_t i2cmux6_generic_read (i2cmux6_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len)
 I2C MUX 6 I2C reading function.
 
err_t i2cmux6_set_channel (i2cmux6_t *ctx, uint8_t ch_sel, uint8_t ch_slave_addr)
 I2C MUX 6 set channel function.
 

Detailed Description

This file contains API for I2C MUX 6 Click Driver.

Enumeration Type Documentation

◆ i2cmux6_return_value_t

I2C MUX 6 Click return value data.

Predefined enum values for driver return values.

Enumerator
I2CMUX6_OK 
I2CMUX6_ERROR