39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
51#include "drv_i2c_master.h"
81#define I2CISOLATOR4_SET_DEV_ADDR 0x00
99#define I2CISOLATOR4_MAP_MIKROBUS( cfg, mikrobus ) \
100 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
101 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA )
void i2cisolator4_cfg_setup(i2cisolator4_cfg_t *cfg)
I2C Isolator 4 configuration object setup function.
err_t i2cisolator4_set_slave_address(i2cisolator4_t *ctx, uint8_t address)
I2C Isolator 4 set I2C Slave address function.
err_t i2cisolator4_generic_write(i2cisolator4_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len)
I2C Isolator 4 I2C writing function.
err_t i2cisolator4_init(i2cisolator4_t *ctx, i2cisolator4_cfg_t *cfg)
I2C Isolator 4 initialization function.
err_t i2cisolator4_generic_read(i2cisolator4_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len)
I2C Isolator 4 I2C reading function.
i2cisolator4_return_value_t
I2C Isolator 4 Click return value data.
Definition i2cisolator4.h:142
@ I2CISOLATOR4_ERROR
Definition i2cisolator4.h:144
@ I2CISOLATOR4_OK
Definition i2cisolator4.h:143
I2C Isolator 4 Click configuration object.
Definition i2cisolator4.h:127
uint32_t i2c_speed
Definition i2cisolator4.h:132
pin_name_t scl
Definition i2cisolator4.h:128
pin_name_t sda
Definition i2cisolator4.h:129
uint8_t i2c_address
Definition i2cisolator4.h:133
I2C Isolator 4 Click context object.
Definition i2cisolator4.h:111
i2c_master_t i2c
Definition i2cisolator4.h:114
uint8_t slave_address
Definition i2cisolator4.h:118