flash7 2.0.0.0
|
This file contains API for Flash 7 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 | flash7_t |
Flash 7 Click context object. More... | |
struct | flash7_cfg_t |
Flash 7 Click configuration object. More... | |
Enumerations | |
enum | flash7_return_value_t { FLASH7_OK = 0 , FLASH7_ERROR = -1 } |
Flash 7 Click return value data. More... | |
Functions | |
void | flash7_cfg_setup (flash7_cfg_t *cfg) |
Flash 7 configuration object setup function. | |
err_t | flash7_init (flash7_t *ctx, flash7_cfg_t *cfg) |
Flash 7 initialization function. | |
err_t | flash7_default_cfg (flash7_t *ctx) |
Flash 7 default configuration function. | |
err_t | flash7_generic_write (flash7_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Flash 7 data writing function. | |
err_t | flash7_generic_read (flash7_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Flash 7 data reading function. | |
void | flash7_write_protect (flash7_t *ctx, uint8_t en_write_protect) |
Enable write protect function. | |
void | flash7_hold (flash7_t *ctx, uint8_t en_hold) |
Enable hold operation function. | |
void | flash7_send_command (flash7_t *ctx, uint8_t cmd) |
Send command function. | |
void | flash7_write_enable (flash7_t *ctx) |
Write enable function. | |
void | flash7_write_disable (flash7_t *ctx) |
Write disable function. | |
void | flash7_chip_erase (flash7_t *ctx) |
Chip erase function. | |
uint8_t | flash7_read_status_register (flash7_t *ctx, uint8_t status_byte) |
Read status register function. | |
void | flash7_write_status_register (flash7_t *ctx, uint16_t status_data) |
Write status register function. | |
uint8_t | flash7_page_program (flash7_t *ctx, uint32_t mem_addr, uint8_t *p_tx_data, uint16_t n_bytes) |
Page program function. | |
void | flash7_read_memory (flash7_t *ctx, uint32_t mem_addr, uint8_t *p_rx_data, uint16_t n_bytes) |
Read memory function. | |
void | flash7_fast_read_memory (flash7_t *ctx, uint32_t mem_addr, uint8_t *p_rx_data, uint16_t n_bytes) |
Fast read memory function. | |
uint8_t | flash7_sector_erase (flash7_t *ctx, uint16_t mem_sector) |
Sector erase function. | |
uint8_t | flash7_block_erase (flash7_t *ctx, uint8_t mem_block, uint8_t mem_block_len) |
Block erase function. | |
void | flash7_go_to_sleep (flash7_t *ctx) |
Go to sleep mode function. | |
uint8_t | flash7_wake_up (flash7_t *ctx) |
Wake up function. | |
void | flash7_read_id (flash7_t *ctx, uint8_t *manufacturer_id, uint8_t *device_id) |
Read ID function. | |
void | flash7_get_identification (flash7_t *ctx, uint8_t *manufacturer_id, uint8_t *memory_type_id, uint8_t *capacity_id) |
Get identification function. | |
void | flash7_sw_reset (flash7_t *ctx) |
Soft reset function. | |
This file contains API for Flash 7 Click Driver.