c8pini2c 2.0.0.0
c8pini2c.h File Reference

This file contains API for 8-pin I2C 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  c8pini2c_t
 Click ctx object definition. More...
 
struct  c8pini2c_cfg_t
 Click configuration structure definition. More...
 

Macros

#define C8PINI2C_MAP_MIKROBUS(cfg, mikrobus)
 
#define C8PINI2C_RETVAL   uint8_t
 
#define C8PINI2C_OK   0x00
 
#define C8PINI2C_INIT_ERROR   0xFF
 

Functions

void c8pini2c_cfg_setup (c8pini2c_cfg_t *cfg)
 Config Object Initialization function.
 
C8PINI2C_RETVAL c8pini2c_init (c8pini2c_t *ctx, c8pini2c_cfg_t *cfg)
 Initialization function.
 
void c8pini2c_generic_write (c8pini2c_t *ctx, uint8_t slave_addr, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void c8pini2c_generic_read (c8pini2c_t *ctx, uint8_t slave_addr, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 

Detailed Description

This file contains API for 8-pin I2C Click driver.