40#ifdef PREINIT_SUPPORTED
44#ifdef MikroCCoreVersion
45 #if MikroCCoreVersion >= 1
50#include "drv_digital_out.h"
51#include "drv_digital_in.h"
52#include "drv_i2c_master.h"
74#define EERAM3V3_ADDRESS_SRAM 0x50
75#define EERAM3V3_ADDRESS_CONTROL 0x18
76#define EERAM3V3_CMD_STORE 0x33
77#define EERAM3V3_CMD_RECALL 0xDD
95#define EERAM3V3_MAP_MIKROBUS( cfg, mikrobus ) \
96 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
97 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA ); \
98 cfg.hs = MIKROBUS( mikrobus, MIKROBUS_INT )
eeram3v3_return_value_t
EERAM 3v3 Click return value data.
Definition eeram3v3.h:143
@ EERAM3V3_ERROR
Definition eeram3v3.h:145
@ EERAM3V3_OK
Definition eeram3v3.h:144
void eeram3v3_generic_write(eeram3v3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len)
EERAM 3v3 I2C writing function.
err_t eeram3v3_init(eeram3v3_t *ctx, eeram3v3_cfg_t *cfg)
EERAM 3v3 initialization function.
void eeram3v3_status_write(eeram3v3_t *ctx, uint8_t command)
EERAM 3v3 Click Status Write.
void eeram3v3_cfg_setup(eeram3v3_cfg_t *cfg)
EERAM 3v3 configuration object setup function.
void eeram3v3_generic_read(eeram3v3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len)
EERAM 3v3 I2C reading function.
void eeram3v3_write(eeram3v3_t *ctx, uint16_t address, uint8_t *data_in, uint8_t count_in)
EERAM Click SRAM Write.
void eeram3v3_read(eeram3v3_t *ctx, uint16_t address, uint8_t *data_out, uint8_t count_out)
EERAM Click SRAM Read.
uint8_t eeram3v3_status_read(eeram3v3_t *ctx)
EERAM Click Status Read.
EERAM 3v3 Click configuration object.
Definition eeram3v3.h:127
pin_name_t hs
Definition eeram3v3.h:131
uint32_t i2c_speed
Definition eeram3v3.h:133
pin_name_t scl
Definition eeram3v3.h:128
pin_name_t sda
Definition eeram3v3.h:129
uint8_t i2c_address
Definition eeram3v3.h:134
EERAM 3v3 Click context object.
Definition eeram3v3.h:108
i2c_master_t i2c
Definition eeram3v3.h:114
digital_out_t hs
Definition eeram3v3.h:110
uint8_t slave_address
Definition eeram3v3.h:118