42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
54#include "drv_i2c_master.h"
66#define LLCI2C_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
68 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA )
75#define LLCI2C_RETVAL uint8_t
78#define LLCI2C_INIT_ERROR 0xFF
85#define I2CLLC_END_MODE_RESTART 0
86#define I2CLLC_END_MODE_STOP 1
#define LLCI2C_RETVAL
Definition llci2c.h:75
void llci2c_cfg_setup(llci2c_cfg_t *cfg)
Config Object Initialization function.
void llci2c_generic_write(llci2c_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
Generic write function.
void llci2c_generic_read(llci2c_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
Generic read function.
LLCI2C_RETVAL llci2c_init(llci2c_t *ctx, llci2c_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition llci2c.h:115
uint32_t i2c_speed
Definition llci2c.h:123
pin_name_t scl
Definition llci2c.h:118
pin_name_t sda
Definition llci2c.h:119
uint8_t i2c_address
Definition llci2c.h:124
Click ctx object definition.
Definition llci2c.h:100
i2c_master_t i2c
Definition llci2c.h:103
uint8_t slave_address
Definition llci2c.h:107