eeram3v3 2.0.0.0
eeram3v3.h File Reference

This file contains API for EERAM 3v3 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  eeram3v3_t
 EERAM 3v3 Click context object. More...
 
struct  eeram3v3_cfg_t
 EERAM 3v3 Click configuration object. More...
 

Macros

#define EERAM3V3_ADDRESS_SRAM   0x50
 EERAM 3v3 constants.
 
#define EERAM3V3_ADDRESS_CONTROL   0x18
 
#define EERAM3V3_CMD_STORE   0x33
 
#define EERAM3V3_CMD_RECALL   0xDD
 
#define EERAM3V3_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  eeram3v3_return_value_t { EERAM3V3_OK = 0 , EERAM3V3_ERROR = -1 }
 EERAM 3v3 Click return value data. More...
 

Functions

void eeram3v3_cfg_setup (eeram3v3_cfg_t *cfg)
 EERAM 3v3 configuration object setup function.
 
err_t eeram3v3_init (eeram3v3_t *ctx, eeram3v3_cfg_t *cfg)
 EERAM 3v3 initialization function.
 
void eeram3v3_generic_write (eeram3v3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len)
 EERAM 3v3 I2C writing 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_status_write (eeram3v3_t *ctx, uint8_t command)
 EERAM 3v3 Click Status Write.
 
uint8_t eeram3v3_status_read (eeram3v3_t *ctx)
 EERAM Click Status Read.
 
void eeram3v3_read (eeram3v3_t *ctx, uint16_t address, uint8_t *data_out, uint8_t count_out)
 EERAM Click SRAM Read.
 
void eeram3v3_write (eeram3v3_t *ctx, uint16_t address, uint8_t *data_in, uint8_t count_in)
 EERAM Click SRAM Write.
 

Detailed Description

This file contains API for EERAM 3v3 Click Driver.

Enumeration Type Documentation

◆ eeram3v3_return_value_t

EERAM 3v3 Click return value data.

Predefined enum values for driver return values.

Enumerator
EERAM3V3_OK 
EERAM3V3_ERROR