i2cisolator7 2.1.0.0
i2cisolator7.h File Reference

This file contains API for I2C Isolator 7 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  i2cisolator7_t
 I2C Isolator 7 Click context object. More...
 
struct  i2cisolator7_cfg_t
 I2C Isolator 7 Click configuration object. More...
 

Macros

#define I2CISOLATOR7_DEVICE_ADDRESS   0x00
 I2C Isolator 7 device address setting.
 
#define I2CISOLATOR7_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  i2cisolator7_return_value_t { I2CISOLATOR7_OK = 0 , I2CISOLATOR7_ERROR = -1 }
 I2C Isolator 7 Click return value data. More...
 

Functions

void i2cisolator7_cfg_setup (i2cisolator7_cfg_t *cfg)
 I2C Isolator 7 configuration object setup function.
 
err_t i2cisolator7_init (i2cisolator7_t *ctx, i2cisolator7_cfg_t *cfg)
 I2C Isolator 7 initialization function.
 
err_t i2cisolator7_set_slave_address (i2cisolator7_t *ctx, uint8_t slave_address)
 I2C Isolator 7 set I2C Slave address function.
 
err_t i2cisolator7_generic_write (i2cisolator7_t *ctx, uint8_t *data_in, uint8_t len)
 I2C Isolator 7 I2C writing function.
 
err_t i2cisolator7_generic_read (i2cisolator7_t *ctx, uint8_t *data_out, uint8_t len)
 I2C Isolator 7 I2C reading function.
 
err_t i2cisolator7_write_then_read (i2cisolator7_t *ctx, uint8_t *data_in, uint8_t len_write_data, uint8_t *data_out, uint8_t len_read_data)
 I2C Isolator 7 I2C write then read function.
 

Detailed Description

This file contains API for I2C Isolator 7 Click Driver.

Enumeration Type Documentation

◆ i2cisolator7_return_value_t

I2C Isolator 7 Click return value data.

Predefined enum values for driver return values.

Enumerator
I2CISOLATOR7_OK 
I2CISOLATOR7_ERROR