semperflash2 2.0.0.0
|
This file contains API for Semper Flash 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 | semperflash2_t |
Click ctx object definition. More... | |
struct | semperflash2_cfg_t |
Click configuration structure definition. More... | |
struct | semperflash2_config_t |
Flash configuration structure. More... | |
Functions | |
void | semperflash2_cfg_setup (semperflash2_cfg_t *cfg) |
Config Object Initialization function. | |
SEMPERFLASH2_RETVAL | semperflash2_init (semperflash2_t *ctx, semperflash2_cfg_t *cfg) |
Initialization function. | |
void | semperflash2_default_cfg (semperflash2_t *ctx) |
Click Default Configuration function. | |
void | semperflash2_send_cmd (semperflash2_t *ctx, uint8_t cmd) |
Send command function. | |
void | semperflash2_transfer_data (semperflash2_t *ctx, uint8_t *write_buf, uint16_t wbuf_size, uint8_t *read_buf, uint16_t rbuf_size) |
Transfer data function. | |
void | semperflash2_generic_write (semperflash2_t *ctx, uint8_t *write_buf, uint16_t buf_size) |
Writing data function. | |
void | semperflash2_write_config (semperflash2_t *ctx, semperflash2_config_t *cfg_data) |
Write configuration function. | |
uint8_t | semperflash2_read_memory (semperflash2_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size) |
Read memory function. | |
uint8_t | semperflash2_write_memory (semperflash2_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size) |
Write memory function. | |
void | semperflash2_erase_memory (semperflash2_t *ctx, uint32_t addr) |
Erase memory function. | |
uint8_t | semperflash2_get_device_id (semperflash2_t *ctx, uint8_t *id_buf) |
Get device ID function. | |
uint8_t | semperflash2_check_manufacturer_id (semperflash2_t *ctx) |
Check manufacturer ID function. | |
uint8_t | semperflash2_check_status_reg_1 (semperflash2_t *ctx) |
Check status register function. | |
This file contains API for Semper Flash Click driver.