i2cisolator5 2.1.0.0
i2cisolator5.h File Reference

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

Macros

#define I2CISOLATOR5_PIN_STATE_HIGH   0x01
 I2C Isolator 5 description setting.
 
#define I2CISOLATOR5_PIN_STATE_LOW   0x00
 
#define I2CISOLATOR5_DEVICE_ADDRESS   0x00
 I2C Isolator 5 device address setting.
 
#define I2CISOLATOR5_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  i2cisolator5_return_value_t { I2CISOLATOR5_OK = 0 , I2CISOLATOR5_ERROR = -1 }
 I2C Isolator 5 Click return value data. More...
 

Functions

void i2cisolator5_cfg_setup (i2cisolator5_cfg_t *cfg)
 I2C Isolator 5 configuration object setup function.
 
err_t i2cisolator5_init (i2cisolator5_t *ctx, i2cisolator5_cfg_t *cfg)
 I2C Isolator 5 initialization function.
 
err_t i2cisolator5_default_cfg (i2cisolator5_t *ctx)
 I2C Isolator 5 default configuration function.
 
err_t i2cisolator5_write (i2cisolator5_t *ctx, uint8_t *data_in, uint8_t len)
 I2C Isolator 5 I2C writing function.
 
err_t i2cisolator5_read (i2cisolator5_t *ctx, uint8_t *data_out, uint8_t len)
 I2C Isolator 5 I2C reading function.
 
err_t i2cisolator5_write_then_read (i2cisolator5_t *ctx, uint8_t *data_in, uint8_t data_in_len, uint8_t *data_out, uint8_t data_out_len)
 I2C Isolator 5 I2C write then read function.
 
err_t i2cisolator5_set_slave_address (i2cisolator5_t *ctx, uint8_t address)
 I2C Isolator 5 set I2C Slave address function.
 
void i2cisolator5_set_outa_state (i2cisolator5_t *ctx, uint8_t outa_state)
 I2C Isolator 5 set output A state function.
 
void i2cisolator5_set_outb_state (i2cisolator5_t *ctx, uint8_t outb_state)
 I2C Isolator 5 set output B state function.
 
uint8_t i2cisolator5_get_ina_state (i2cisolator5_t *ctx)
 I2C Isolator 5 get input A state function.
 

Detailed Description

This file contains API for I2C Isolator 5 Click Driver.

Enumeration Type Documentation

◆ i2cisolator5_return_value_t

I2C Isolator 5 Click return value data.

Predefined enum values for driver return values.

Enumerator
I2CISOLATOR5_OK 
I2CISOLATOR5_ERROR