flash11
2.1.0.0
|
This file contains API for Flash 11 Click Driver. More...
#include "mikrosdk_version.h"
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | flash11_t |
Flash 11 Click context object. More... | |
struct | flash11_cfg_t |
Flash 11 Click configuration object. More... | |
Enumerations | |
enum | flash11_return_value_t { FLASH11_OK = 0, FLASH11_ERROR = -1 } |
Flash 11 Click return value data. More... | |
Functions | |
void | flash11_cfg_setup (flash11_cfg_t *cfg) |
Flash 11 configuration object setup function. More... | |
err_t | flash11_init (flash11_t *ctx, flash11_cfg_t *cfg) |
Flash 11 initialization function. More... | |
err_t | flash11_default_cfg (flash11_t *ctx) |
Flash 11 default configuration function. More... | |
err_t | flash11_generic_write (flash11_t *ctx, uint8_t opcode, uint8_t *data_in, uint8_t len) |
Flash 11 data writing function. More... | |
err_t | flash11_generic_read (flash11_t *ctx, uint8_t opcode, uint8_t *data_out, uint8_t len) |
Flash 11 data reading function. More... | |
err_t | flash11_set_cmd (flash11_t *ctx, uint8_t opcode) |
Flash 11 set the command function. More... | |
err_t | flash11_write_cmd_addr_data (flash11_t *ctx, uint8_t opcode, uint32_t mem_addr, uint8_t *data_in, uint32_t len) |
Flash 11 write command adress data function. More... | |
err_t | flash11_read_cmd_addr_data (flash11_t *ctx, uint8_t opcode, uint32_t mem_addr, uint8_t *data_out, uint32_t len) |
Flash 11 read command adress data function. More... | |
err_t | flash11_sw_reset (flash11_t *ctx) |
Flash 11 sw reset function. More... | |
err_t | flash11_memory_write (flash11_t *ctx, uint32_t mem_addr, uint8_t *data_in, uint32_t len) |
Flash 11 memory write function. More... | |
err_t | flash11_memory_read (flash11_t *ctx, uint32_t mem_addr, uint8_t *data_out, uint32_t len) |
Flash 11 memory read function. More... | |
err_t | flash11_write_enable (flash11_t *ctx) |
Flash 11 write enable function. More... | |
err_t | flash11_write_disable (flash11_t *ctx) |
Flash 11 write disable function. More... | |
err_t | flash11_block_erase (flash11_t *ctx, uint8_t cmd_block_erase, uint32_t mem_addr) |
Flash 11 block erase function. More... | |
err_t | flash11_chip_erase (flash11_t *ctx) |
Flash 11 chip erase function. More... | |
err_t | flash11_set_status (flash11_t *ctx, uint8_t status_reg, uint8_t status) |
Flash 11 set status function. More... | |
err_t | flash11_get_status (flash11_t *ctx, uint8_t status_reg, uint8_t *status) |
Flash 11 gets the status function. More... | |
err_t | flash11_get_device_id (flash11_t *ctx, uint8_t *device_id) |
Flash 11 gets the device ID function. More... | |
void | flash11_hw_write_protect (flash11_t *ctx, uint8_t en_wp) |
Flash 11 hardware write protect function. More... | |
void | flash11_en_hold (flash11_t *ctx, uint8_t en_hold) |
Flash 11 enable hold function. More... | |
This file contains API for Flash 11 Click Driver.