eeprom10 2.1.0.0
eeprom10.h File Reference

This file contains API for EEPROM 10 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  eeprom10_t
 EEPROM 10 Click context object. More...
 
struct  eeprom10_cfg_t
 EEPROM 10 Click configuration object. More...
 

Macros

#define EEPROM10_NBYTES_PAGE   32
 EEPROM 10 description setting.
 
#define EEPROM10_BLOCK_ADDR_START   0x0000
 EEPROM 10 memory address range.
 
#define EEPROM10_BLOCK_ADDR_END   0x0FFFu
 
#define EEPROM10_DEVICE_ADDRESS_0   0x50
 EEPROM 10 device address setting.
 
#define EEPROM10_DEVICE_ADDRESS_1   0x51
 
#define EEPROM10_DEVICE_ADDRESS_2   0x52
 
#define EEPROM10_DEVICE_ADDRESS_3   0x53
 
#define EEPROM10_DEVICE_ADDRESS_4   0x54
 
#define EEPROM10_DEVICE_ADDRESS_5   0x55
 
#define EEPROM10_DEVICE_ADDRESS_6   0x56
 
#define EEPROM10_DEVICE_ADDRESS_7   0x57
 
#define EEPROM10_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  eeprom10_return_value_t { EEPROM10_OK = 0 , EEPROM10_ERROR = -1 }
 EEPROM 10 Click return value data. More...
 

Functions

void eeprom10_cfg_setup (eeprom10_cfg_t *cfg)
 EEPROM 10 configuration object setup function.
 
err_t eeprom10_init (eeprom10_t *ctx, eeprom10_cfg_t *cfg)
 EEPROM 10 initialization function.
 
void eeprom10_write_enable (eeprom10_t *ctx)
 EEPROM 10 write enable function.
 
void eeprom10_write_protect (eeprom10_t *ctx)
 EEPROM 10 write protection enable function.
 
err_t eeprom10_write_byte (eeprom10_t *ctx, uint16_t address, uint8_t data_in)
 EEPROM 10 write byte function.
 
err_t eeprom10_write_page (eeprom10_t *ctx, uint8_t address, uint8_t *data_in)
 EEPROM 10 write page function.
 
err_t eeprom10_write_n_byte (eeprom10_t *ctx, uint16_t address, uint8_t *data_in, uint8_t len)
 EEPROM 10 write desired number of data function.
 
err_t eeprom10_read_byte (eeprom10_t *ctx, uint16_t address, uint8_t *data_out)
 EEPROM 10 read byte of data function.
 
err_t eeprom10_read_page (eeprom10_t *ctx, uint8_t address, uint8_t *data_out)
 EEPROM 10 read page of data function.
 
err_t eeprom10_read_n_byte (eeprom10_t *ctx, uint16_t address, uint8_t *data_out, uint8_t len)
 EEPROM 10 read desired number of data function.
 

Detailed Description

This file contains API for EEPROM 10 Click Driver.

Enumeration Type Documentation

◆ eeprom10_return_value_t

EEPROM 10 Click return value data.

Predefined enum values for driver return values.

Enumerator
EEPROM10_OK 
EEPROM10_ERROR