semperflash 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 | semperflash_t |
Click ctx object definition. More... | |
struct | semperflash_cfg_t |
Click configuration structure definition. More... | |
struct | semperflash_config_t |
Flash configuration structure. More... | |
Functions | |
void | semperflash_cfg_setup (semperflash_cfg_t *cfg) |
Config Object Initialization function. | |
SEMPERFLASH_RETVAL | semperflash_init (semperflash_t *ctx, semperflash_cfg_t *cfg) |
Initialization function. | |
void | semperflash_default_cfg (semperflash_t *ctx) |
Click Default Configuration function. | |
void | semperflash_send_cmd (semperflash_t *ctx, uint8_t cmd) |
Send command function. | |
void | semperflash_transfer_data (semperflash_t *ctx, uint8_t *write_buf, uint16_t wbuf_size, uint8_t *read_buf, uint16_t rbuf_size) |
Transfer data function. | |
void | semperflash_generic_write (semperflash_t *ctx, uint8_t *write_buf, uint16_t buf_size) |
Writing data function. | |
void | semperflash_write_config (semperflash_t *ctx, semperflash_config_t *cfg_data) |
Write configuration function. | |
uint8_t | semperflash_read_memory (semperflash_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size) |
Read memory function. | |
uint8_t | semperflash_write_memory (semperflash_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size) |
Write memory function. | |
void | semperflash_erase_memory (semperflash_t *ctx, uint32_t addr) |
Erase memory function. | |
uint8_t | semperflash_get_device_id (semperflash_t *ctx, uint8_t *id_buf) |
Get device ID function. | |
uint8_t | semperflash_check_manufacturer_id (semperflash_t *ctx) |
Check manufacturer ID function. | |
uint8_t | semperflash_check_status_reg_1 (semperflash_t *ctx) |
Check status register function. | |
This file contains API for Semper Flash Click driver.