flash5 2.0.0.0
|
This file contains API for Flash 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 | flash5_t |
Click ctx object definition. More... | |
struct | flash5_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | flash5_cfg_setup (flash5_cfg_t *cfg) |
Config Object Initialization function. | |
FLASH5_RETVAL | flash5_init (flash5_t *ctx, flash5_cfg_t *cfg) |
Initialization function. | |
void | flash5_generic_transfer (flash5_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | flash5_read_data (flash5_t *ctx, uint8_t reg_addr, uint8_t *data_buf, uint16_t n_buf_size) |
Generic funcion for reading. | |
void | flash5_write_data (flash5_t *ctx, uint8_t reg_addr, uint8_t *data_buf, uint16_t n_buf_size) |
Generic funcion for writing. | |
void | flash5_send_cmd (flash5_t *ctx, uint8_t cmd_data) |
Function for sending one Byte od data. | |
uint8_t | flash5_set_wp_pin (flash5_t *ctx, uint8_t status) |
Sets wp pin to one state. | |
uint8_t | flash5_set_hold_pin (flash5_t *ctx, uint8_t status) |
Sets hold pin to one state. | |
uint8_t | flash5_device_id_check (flash5_t *ctx) |
Funcion for checking device id. | |
void | flash5_page_read (flash5_t *ctx, uint16_t page_num) |
Function for setting page read. | |
void | flash5_execute_load (flash5_t *ctx, uint16_t page_num) |
Function for executing page load. | |
void | flash5_page_read_memory (flash5_t *ctx, uint16_t column_addr, uint8_t *data_buf, uint16_t buf_size) |
Function for reading one page. | |
void | flash5_continous_read_memory (flash5_t *ctx, uint8_t *data_buf, uint16_t buf_size) |
Function for continous reading. | |
void | flash5_page_load_memory (flash5_t *ctx, uint16_t column_addr, uint8_t *data_buf, uint16_t buf_size) |
Function for loading one page. | |
uint8_t | flash5_read_status_data (flash5_t *ctx, uint8_t status_cmd, uint8_t status_addr) |
Function for reading status data. | |
void | flash5_write_status_data (flash5_t *ctx, uint8_t status_cmd, uint8_t status_addr, uint8_t status_data) |
Function for writing status data. | |
void | flash5_software_reset (flash5_t *ctx) |
Function for reseting device. | |
void | flash5_erase_page_data (flash5_t *ctx, uint16_t page_addr) |
Function for eraseing one page. | |
This file contains API for Flash 5 Click driver.