flash12 2.1.0.0
|
This file contains API for Flash 12 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 | flash12_t |
Flash 12 Click context object. More... | |
struct | flash12_cfg_t |
Flash 12 Click configuration object. More... | |
Enumerations | |
enum | flash12_return_value_t { FLASH12_OK = 0 , FLASH12_ERROR = -1 } |
Flash 12 Click return value data. More... | |
Functions | |
void | flash12_cfg_setup (flash12_cfg_t *cfg) |
Flash 12 configuration object setup function. | |
err_t | flash12_init (flash12_t *ctx, flash12_cfg_t *cfg) |
Flash 12 initialization function. | |
err_t | flash12_default_cfg (flash12_t *ctx) |
Flash 12 default configuration function. | |
void | flash12_hw_write_enable (flash12_t *ctx) |
Flash 12 hardware write enable function. | |
void | flash12_hw_write_disable (flash12_t *ctx) |
Flash 12 hardware write disable function. | |
void | flash12_hold_disable (flash12_t *ctx) |
Flash 12 hold disable function. | |
void | flash12_hold_enable (flash12_t *ctx) |
Flash 12 hold enable function. | |
err_t | flash12_write_cmd (flash12_t *ctx, uint8_t cmd) |
Flash 12 command writing function. | |
err_t | flash12_write_cmd_data (flash12_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len) |
Flash 12 command data writing function. | |
err_t | flash12_read_cmd_data (flash12_t *ctx, uint8_t cmd, uint8_t *data_out, uint8_t len) |
Flash 12 command data reading function. | |
err_t | flash12_write_cmd_address_data (flash12_t *ctx, uint8_t cmd, uint32_t mem_addr, uint8_t *data_in, uint32_t len) |
Flash 12 command address data writing function. | |
err_t | flash12_read_cmd_address_data (flash12_t *ctx, uint8_t cmd, uint32_t mem_addr, uint8_t *data_out, uint32_t len) |
Flash 12 command address data reading function. | |
err_t | flash12_memory_write (flash12_t *ctx, uint32_t mem_addr, uint8_t *data_in, uint32_t len) |
Flash 12 memory data writing function. | |
err_t | flash12_memory_read (flash12_t *ctx, uint32_t mem_addr, uint8_t *data_out, uint32_t len) |
Flash 12 memory data reading function. | |
err_t | flash12_soft_reset (flash12_t *ctx) |
Flash 12 soft reset function. | |
err_t | flash12_write_disable (flash12_t *ctx) |
Flash 12 write disable function. | |
err_t | flash12_write_enable (flash12_t *ctx) |
Flash 12 write enable function. | |
err_t | flash12_read_status (flash12_t *ctx, uint8_t reg_num, uint8_t *status) |
Flash 12 status reading function. | |
err_t | flash12_write_status (flash12_t *ctx, uint8_t status) |
Flash 12 status writing function. | |
err_t | flash12_erase_memory (flash12_t *ctx, uint8_t erase_cmd, uint32_t mem_addr) |
Flash 12 erase memory function. | |
err_t | flash12_get_device_id (flash12_t *ctx, uint8_t *mfr_id, uint8_t *dev_id) |
Flash 12 device ID reading function. | |
This file contains API for Flash 12 Click Driver.