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 EEPROM3_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
68 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA )
77#define EEPROM3_ERROR -1
void eeprom3_write_byte(eeprom3_t *ctx, uint16_t reg_address, uint8_t data_in)
Generic write function.
void eeprom3_read(eeprom3_t *ctx, uint16_t reg_address, uint8_t *data_out, uint16_t count)
Generic read function.
void eeprom3_cfg_setup(eeprom3_cfg_t *cfg)
Config Object Initialization function.
err_t eeprom3_init(eeprom3_t *ctx, eeprom3_cfg_t *cfg)
Initialization function.
void eeprom3_write_page(eeprom3_t *ctx, uint16_t reg_address, uint8_t *data_in, uint8_t count)
Generic write page function.
Click configuration structure definition.
Definition eeprom3.h:104
uint32_t i2c_speed
Definition eeprom3.h:110
pin_name_t scl
Definition eeprom3.h:106
pin_name_t sda
Definition eeprom3.h:107
uint8_t i2c_address
Definition eeprom3.h:111
Click ctx object definition.
Definition eeprom3.h:91
i2c_master_t i2c
Definition eeprom3.h:93
uint8_t slave_address
Definition eeprom3.h:96