i2cisolator3 2.0.0.0
i2cisolator3.h File Reference

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

Macros

#define I2CISOLATOR3_THERMO20_CMD_RESET   0x1E
 I2C Isolator 3 description setting.
 
#define I2CISOLATOR3_THERMO20_CMD_CONVERSION   0x46
 
#define I2CISOLATOR3_THERMO20_CMD_READ_ADC   0x00
 
#define I2CISOLATOR3_READ_WRITE_LEN_ERROR   0x00
 
#define I2CISOLATOR3_READ_WRITE_LEN_MIN   0x01
 
#define I2CISOLATOR3_SET_DEV_ADDR   0x40
 I2C Isolator 3 device address setting.
 
#define I2CISOLATOR3_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  i2cisolator3_return_value_t { I2CISOLATOR3_OK = 0 , I2CISOLATOR3_ERROR = -1 }
 I2C Isolator 3 Click return value data. More...
 

Functions

void i2cisolator3_cfg_setup (i2cisolator3_cfg_t *cfg)
 I2C Isolator 3 configuration object setup function.
 
err_t i2cisolator3_init (i2cisolator3_t *ctx, i2cisolator3_cfg_t *cfg)
 I2C Isolator 3 initialization function.
 
err_t i2cisolator3_generic_write (i2cisolator3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len)
 I2C Isolator 3 I2C writing function.
 
err_t i2cisolator3_generic_read (i2cisolator3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len)
 I2C Isolator 3 I2C reading function.
 
void i2cisolator3_send_cmd (i2cisolator3_t *ctx, uint8_t command)
 I2C Isolator 3 send command function.
 
void i2cisolator3_write_byte (i2cisolator3_t *ctx, uint8_t reg, uint8_t tx_data)
 I2C Isolator 3 write the byte of data function.
 
uint8_t i2cisolator3_read_byte (i2cisolator3_t *ctx, uint8_t reg)
 I2C Isolator 3 read the byte of data function.
 
err_t i2cisolator3_burst_write (i2cisolator3_t *ctx, uint8_t reg, uint8_t *p_tx_data, uint8_t n_bytes)
 I2C Isolator 3 burst write function.
 
err_t i2cisolator3_burst_read (i2cisolator3_t *ctx, uint8_t reg, uint8_t *p_rx_data, uint8_t n_bytes)
 I2C Isolator 3 burst read function.
 
err_t i2cisolator3_adv_write (i2cisolator3_t *ctx, uint8_t *p_reg, uint8_t n_reg_bytes, uint8_t *p_tx_data, uint8_t n_tx_data_bytes)
 I2C Isolator 3 advanced write function.
 
err_t i2cisolator3_adv_read (i2cisolator3_t *ctx, uint8_t *p_reg, uint8_t n_reg_bytes, uint8_t *p_rx_data, uint8_t n_rx_data_bytes)
 I2C Isolator 3 advanced read function.
 

Detailed Description

This file contains API for I2C Isolator 3 Click Driver.

Enumeration Type Documentation

◆ i2cisolator3_return_value_t

I2C Isolator 3 Click return value data.

Predefined enum values for driver return values.

Enumerator
I2CISOLATOR3_OK 
I2CISOLATOR3_ERROR