eeprom5
2.0.0.0
|
This file contains API for EEPROM 5 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 | eeprom5_t |
EEPROM 5 Click context object. More... | |
struct | eeprom5_cfg_t |
EEPROM 5 Click configuration object. More... | |
struct | status_data_t |
EEPROM 5 Click status data object. More... | |
Enumerations | |
enum | eeprom5_return_value_t { EEPROM5_OK = 0, EEPROM5_ERROR = -1 } |
EEPROM 5 Click return value data. More... | |
Functions | |
void | eeprom5_cfg_setup (eeprom5_cfg_t *cfg) |
EEPROM 5 configuration object setup function. More... | |
err_t | eeprom5_init (eeprom5_t *ctx, eeprom5_cfg_t *cfg) |
EEPROM 5 initialization function. More... | |
void | eeprom5_generic_write (eeprom5_t *ctx, uint32_t addr, uint8_t tx_data) |
EEPROM 5 data writing function. More... | |
uint8_t | eeprom5_generic_read (eeprom5_t *ctx, uint32_t addr) |
EEPROM 5 data reading function. More... | |
void | eeprom5_set_hold (eeprom5_t *ctx, uint8_t en_hold) |
Enable hold operation function. More... | |
void | eeprom5_set_write_protect (eeprom5_t *ctx, uint8_t en_wr_prot) |
Enable write protect function. More... | |
void | eeprom5_send_cmd (eeprom5_t *ctx, uint8_t cmd) |
Send command function. More... | |
void | eeprom5_enable_memory_write (eeprom5_t *ctx, uint8_t en_wr_mem) |
Enable memory write function. More... | |
void | eeprom5_get_status (eeprom5_t *ctx, status_data_t *stat_data) |
Get status function. More... | |
void | eeprom5_set_status (eeprom5_t *ctx, status_data_t stat_data) |
Set status function. More... | |
void | eeprom5_read_memory (eeprom5_t *ctx, uint32_t addr, uint8_t *p_rx_data, uint8_t n_bytes) |
Read EEPROM memory function. More... | |
void | eeprom5_write_memory (eeprom5_t *ctx, uint32_t addr, uint8_t *p_tx_data, uint8_t n_bytes) |
Write EEPROM memory function. More... | |
uint8_t | eeprom5_read_ident_page (eeprom5_t *ctx, uint16_t addr) |
Read identification page function. More... | |
void | eeprom5_write_ident_page (eeprom5_t *ctx, uint16_t addr, uint8_t ident_data) |
Write dentification page function. More... | |
uint8_t | eeprom5_read_lock_status (eeprom5_t *ctx) |
Reads the identification page lock status function. More... | |
void | eeprom5_lock_id (eeprom5_t *ctx, uint8_t lock_id) |
Lock ID function. More... | |
This file contains API for EEPROM 5 Click Driver.