eeprom2 2.0.0.0
|
This file contains API for EEPROM 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | eeprom2_t |
Click ctx object definition. More... | |
struct | eeprom2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | EEPROM2_MAP_MIKROBUS(cfg, mikrobus) |
#define | EEPROM2_OK 0 |
#define | EEPROM2_ERROR -1 |
Functions | |
void | eeprom2_cfg_setup (eeprom2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | eeprom2_init (eeprom2_t *ctx, eeprom2_cfg_t *cfg) |
Initialization function. | |
void | eeprom2_write (eeprom2_t *ctx, uint32_t memory_address, uint8_t value) |
Generic write function. | |
void | eeprom2_write_bytes (eeprom2_t *ctx, uint32_t memory_address, uint8_t *value, uint8_t count) |
Function to write bytes. | |
uint8_t | eeprom2_read (eeprom2_t *ctx, uint32_t memory_address) |
Generic read function. | |
void | eeprom2_read_bytes (eeprom2_t *ctx, uint32_t memory_address, uint8_t *value, uint8_t count) |
Function to read bytes. | |
void | eeprom2_memory_enable (eeprom2_t *ctx) |
Enable EEPROM memory. | |
void | eeprom2_memory_disable (eeprom2_t *ctx) |
Disable EEPROM memory. | |
This file contains API for EEPROM 2 Click driver.