flash4 2.0.0.0
|
This file contains API for Flash 4 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 | flash4_t |
Click ctx object definition. More... | |
struct | flash4_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | flash4_cfg_setup (flash4_cfg_t *cfg) |
Config Object Initialization function. | |
FLASH4_RETVAL | flash4_init (flash4_t *ctx, flash4_cfg_t *cfg) |
Initialization function. *. | |
void | flash4_generic_transfer (flash4_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | flash4_read_manufacturer_id (flash4_t *ctx, uint8_t *device_id) |
Read Manufacturer ID function. | |
void | flash4_read_identification (flash4_t *ctx, uint8_t *out_data, uint8_t n_data) |
Read Identification function. | |
uint8_t | flash4_read_electronic_id (flash4_t *ctx) |
Read Electronic Signature function. | |
void | flash4_read_serial_flash_parameters (flash4_t *ctx, uint8_t *out_params, uint8_t c) |
Read Serial Flash Discoverable Parameters function. | |
uint8_t | flash4_read_byte (flash4_t *ctx, uint8_t reg) |
Read byte from register function. | |
void | flash4_write_byte (flash4_t *ctx, uint8_t reg, uint8_t data_buff) |
Write one byte to register function. | |
void | flash4_write_command (flash4_t *ctx, uint8_t cmd) |
Write command function. | |
void | flash4_write_reg (flash4_t *ctx, uint8_t status, uint8_t config) |
Write data to register function. | |
void | flash4_read_ecc (flash4_t *ctx, uint8_t *out_ecc, uint8_t n_dummy) |
Read ECC Status Register function. | |
void | flash4_read_auto_boot (flash4_t *ctx, uint8_t *out_ab) |
Read AutoBoot Register function. | |
void | flash4_read_flash (flash4_t *ctx, uint8_t *out_data, uint32_t addr, uint8_t n_data) |
Read Flash function. | |
void | flash4_read_flash_4 (flash4_t *ctx, uint8_t *out_data, uint32_t addr, uint8_t n_data) |
Read Flash with 4 byte address function. | |
void | flash4_fast_read_flash (flash4_t *ctx, uint8_t *out_data, uint32_t addr, uint8_t n_data_dummy) |
Fast read Flash function. | |
void | flash4_fast_read_flash_4 (flash4_t *ctx, uint8_t *out_data, uint8_t addr, uint8_t n_data) |
Fast read Flash with 4 byte address function. | |
void | flash4_page_program_4 (flash4_t *ctx, uint8_t *in_data, uint32_t addr, uint8_t n_data) |
Write data to address with 4 byte address function. | |
void | flash4_sector_erase (flash4_t *ctx, uint32_t addr) |
Sector Erase function. | |
void | flash4_sector_erase_4 (flash4_t *ctx, uint32_t addr) |
Sector Erase for 4 bytes address function. | |
uint8_t | flash4_check_wip (flash4_t *ctx) |
Function for wip. | |
uint8_t | flash4_check_wel (flash4_t *ctx) |
Function for wel. | |
uint8_t | flash4_check_ps (flash4_t *ctx) |
Function for ps. | |
uint8_t | flash4_check_es (flash4_t *ctx) |
Function for es. | |
void | flash4_reset (flash4_t *ctx) |
Function for reset. | |
This file contains API for Flash 4 Click driver.