eeram5v 2.0.0.0
eeram5v.h File Reference

This file contains API for EERAM 5V 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  eeram5v_t
 EERAM 5V Click context object. More...
 
struct  eeram5v_cfg_t
 EERAM 5V Click configuration object. More...
 

Macros

#define EERAM5V_ADDRESS_SRAM   0x50
 EERAM 5V constants.
 
#define EERAM5V_ADDRESS_CONTROL   0x18
 
#define EERAM5V_CMD_STORE   0x33
 
#define EERAM5V_CMD_RECALL   0xDD
 
#define EERAM5V_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  eeram5v_return_value_t { EERAM5V_OK = 0 , EERAM5V_ERROR = -1 }
 EERAM 5V Click return value data. More...
 

Functions

void eeram5v_cfg_setup (eeram5v_cfg_t *cfg)
 EERAM 5V configuration object setup function.
 
err_t eeram5v_init (eeram5v_t *ctx, eeram5v_cfg_t *cfg)
 EERAM 5V initialization function.
 
void eeram5v_generic_write (eeram5v_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len)
 EERAM 5V I2C writing function.
 
void eeram5v_generic_read (eeram5v_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len)
 EERAM 5V I2C reading function.
 
void eeram5v_status_write (eeram5v_t *ctx, uint8_t command)
 EERAM 5V Click Status Write.
 
uint8_t eeram5v_status_read (eeram5v_t *ctx)
 EERAM 5V Click Status Read.
 
void eeram5v_read (eeram5v_t *ctx, uint16_t address, uint8_t *data_out, uint8_t count_out)
 EERAM 5V Click SRAM Read.
 
void eeram5v_write (eeram5v_t *ctx, uint16_t address, uint8_t *data_in, uint8_t count_in)
 EERAM 5V Click SRAM Write.
 

Detailed Description

This file contains API for EERAM 5V Click Driver.

Enumeration Type Documentation

◆ eeram5v_return_value_t

EERAM 5V Click return value data.

Predefined enum values for driver return values.

Enumerator
EERAM5V_OK 
EERAM5V_ERROR