flash10 2.1.0.0
|
This file contains API for Flash 10 Click Driver. More...
#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 | flash10_t |
Flash 10 Click context object. More... | |
struct | flash10_cfg_t |
Flash 10 Click configuration object. More... | |
Enumerations | |
enum | flash10_return_value_t { FLASH10_OK = 0 , FLASH10_ERROR = -1 } |
Flash 10 Click return value data. More... | |
Functions | |
void | flash10_cfg_setup (flash10_cfg_t *cfg) |
Flash 10 configuration object setup function. | |
err_t | flash10_init (flash10_t *ctx, flash10_cfg_t *cfg) |
Flash 10 initialization function. | |
err_t | flash10_write_cmd (flash10_t *ctx, uint8_t cmd) |
Flash 10 write cmd function. | |
err_t | flash10_write_cmd_data (flash10_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len) |
Flash 10 write cmd data function. | |
err_t | flash10_read_cmd_data (flash10_t *ctx, uint8_t cmd, uint8_t *data_out, uint8_t len) |
Flash 10 read cmd data function. | |
err_t | flash10_write_cmd_address_data (flash10_t *ctx, uint8_t cmd, uint32_t address, uint8_t *data_in, uint32_t len) |
Flash 10 write cmd address data function. | |
err_t | flash10_read_cmd_address_data (flash10_t *ctx, uint8_t cmd, uint32_t address, uint8_t *data_out, uint32_t len) |
Flash 10 read cmd address data function. | |
err_t | flash10_memory_write (flash10_t *ctx, uint32_t address, uint8_t *data_in, uint32_t len) |
Flash 10 memory write function. | |
err_t | flash10_memory_read (flash10_t *ctx, uint32_t address, uint8_t *data_out, uint32_t len) |
Flash 10 memory read function. | |
err_t | flash10_erase_memory (flash10_t *ctx, uint8_t erase_cmd, uint32_t address) |
Flash 10 erase memory function. | |
err_t | flash10_check_communication (flash10_t *ctx) |
Flash 10 check communication function. | |
err_t | flash10_write_protect (flash10_t *ctx) |
Flash 10 write protect function. | |
err_t | flash10_write_enable (flash10_t *ctx) |
Flash 10 write enable function. | |
err_t | flash10_soft_reset (flash10_t *ctx) |
Flash 10 soft reset function. | |
err_t | flash10_write_status (flash10_t *ctx, uint8_t status_reg_num, uint8_t status) |
Flash 10 write status function. | |
err_t | flash10_read_status (flash10_t *ctx, uint8_t status_reg_num, uint8_t *status) |
Flash 10 read status function. | |
void | flash10_set_wp_pin (flash10_t *ctx, uint8_t state) |
Flash 10 set wp pin function. | |
void | flash10_set_rst_pin (flash10_t *ctx, uint8_t state) |
Flash 10 set rst pin function. | |
This file contains API for Flash 10 Click Driver.