eeprom11 2.1.0.0
eeprom11.h File Reference

This file contains API for EEPROM 11 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  eeprom11_t
 EEPROM 11 Click context object. More...
 
struct  eeprom11_cfg_t
 EEPROM 11 Click configuration object. More...
 

Macros

#define EEPROM11_SET_WP_BLOCK0   0x31
 EEPROM 11 description register.
 
#define EEPROM11_SET_WP_BLOCK1   0x34
 
#define EEPROM11_SET_WP_BLOCK2   0x35
 
#define EEPROM11_SET_WP_BLOCK3   0x30
 
#define EEPROM11_CLEAR_ALL_WP   0x33
 
#define EEPROM11_READ_SWP0   0x31
 
#define EEPROM11_READ_SWP1   0x34
 
#define EEPROM11_READ_SWP2   0x35
 
#define EEPROM11_READ_SWP3   0x30
 
#define EEPROM11_SET_PAGE_ADDR_0   0x36
 
#define EEPROM11_SET_PAGE_ADDR_1   0x37
 
#define EEPROM11_READ_PAGE_ADDR   0x36
 
#define EEPROM11_DEVICE_ADDRESS_0   0x50
 EEPROM 11 device address setting.
 
#define EEPROM11_DEVICE_ADDRESS_1   0x51
 
#define EEPROM11_DEVICE_ADDRESS_2   0x52
 
#define EEPROM11_DEVICE_ADDRESS_3   0x53
 
#define EEPROM11_DEVICE_ADDRESS_4   0x54
 
#define EEPROM11_DEVICE_ADDRESS_5   0x55
 
#define EEPROM11_DEVICE_ADDRESS_6   0x56
 
#define EEPROM11_DEVICE_ADDRESS_7   0x57
 
#define EEPROM11_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  eeprom11_return_value_t { EEPROM11_OK = 0 , EEPROM11_ERROR = -1 }
 EEPROM 11 Click return value data. More...
 

Functions

void eeprom11_cfg_setup (eeprom11_cfg_t *cfg)
 EEPROM 11 configuration object setup function.
 
err_t eeprom11_init (eeprom11_t *ctx, eeprom11_cfg_t *cfg)
 EEPROM 11 initialization function.
 
err_t eeprom11_default_cfg (eeprom11_t *ctx)
 EEPROM 11 default configuration function.
 
err_t eeprom11_generic_write (eeprom11_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len)
 EEPROM 11 I2C writing function.
 
err_t eeprom11_generic_read (eeprom11_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len)
 EEPROM 11 I2C reading function.
 
err_t eeprom11_page_write (eeprom11_t *ctx, uint8_t address, uint8_t *data_in)
 EEPROM 11 page write function.
 
err_t eeprom11_clear_page (eeprom11_t *ctx, uint8_t address)
 EEPROM 11 page clear function.
 
err_t eeprom11_set_wp (eeprom11_t *ctx, uint8_t block_addr)
 EEPROM 11 set write protection function.
 
err_t eeprom11_clear_wp (eeprom11_t *ctx)
 EEPROM 11 clear write protection function.
 
err_t eeprom11_set_page_addr (eeprom11_t *ctx, uint8_t page_addr)
 EEPROM 11 set page address function.
 

Detailed Description

This file contains API for EEPROM 11 Click Driver.

Enumeration Type Documentation

◆ eeprom11_return_value_t

EEPROM 11 Click return value data.

Predefined enum values for driver return values.

Enumerator
EEPROM11_OK 
EEPROM11_ERROR