i2cisolator2 2.0.0.0
|
This file contains API for I2C Isolator 2 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 | i2cisolator2_t |
Click ctx object definition. More... | |
struct | i2cisolator2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | I2CISOLATOR2_MAP_MIKROBUS(cfg, mikrobus) |
#define | I2CISOLATOR2_OK 0 |
#define | I2CISOLATOR2_ERROR -1 |
#define | I2CISOLATOR2_POWER_ENABLE 0 |
#define | I2CISOLATOR2_POWER_DISABLE 1 |
Functions | |
void | i2cisolator2_cfg_setup (i2cisolator2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | i2cisolator2_init (i2cisolator2_t *ctx, i2cisolator2_cfg_t *cfg) |
Initialization function. | |
void | i2cisolator2_enable_power (i2cisolator2_t *ctx, uint8_t state) |
This function sets PDIS pin state. | |
err_t | i2cisolator2_write (i2cisolator2_t *ctx, uint8_t *data_in, uint16_t len) |
Generic write function. | |
err_t | i2cisolator2_read (i2cisolator2_t *ctx, uint8_t *data_out, uint16_t len) |
Generic read function. | |
err_t | i2cisolator2_write_then_read (i2cisolator2_t *ctx, uint8_t *data_in, uint16_t in_len, uint8_t *data_out, uint16_t out_len) |
Generic write then read function. | |
err_t | i2cisolator2_set_slave_address (i2cisolator2_t *ctx, uint8_t slave_addr) |
Set slave address function. | |
This file contains API for I2C Isolator 2 Click driver.