flash9 2.0.0.0
|
This file contains API for Flash 9 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 | flash9_t |
Flash 9 Click context object. More... | |
struct | flash9_cfg_t |
Flash 9 Click configuration object. More... | |
Enumerations | |
enum | flash9_return_value_t { FLASH9_OK = 0 , FLASH9_ERROR = -1 } |
Flash 9 Click return value data. More... | |
Functions | |
void | flash9_cfg_setup (flash9_cfg_t *cfg) |
Flash 9 configuration object setup function. | |
err_t | flash9_init (flash9_t *ctx, flash9_cfg_t *cfg) |
Flash 9 initialization function. | |
err_t | flash9_default_cfg (flash9_t *ctx) |
Flash 9 default configuration function. | |
err_t | flash9_generic_write (flash9_t *ctx, uint8_t *data_in, uint16_t in_len) |
Flash 9 generic write function. | |
err_t | flash9_generic_read (flash9_t *ctx, uint8_t *data_in, uint8_t in_len, uint8_t *data_out, uint16_t out_len) |
Flash 9 generic read function. | |
err_t | flash9_write_register (flash9_t *ctx, uint8_t reg, uint8_t *data_in, uint16_t in_len) |
Flash 9 write register function. | |
err_t | flash9_read_register (flash9_t *ctx, uint8_t reg, uint8_t *data_out, uint16_t out_len) |
Flash 9 read register function. | |
err_t | flash9_write_command (flash9_t *ctx, uint8_t cmd) |
Flash 9 write command function. | |
void | flash9_set_wp_pin (flash9_t *ctx, uint8_t state) |
Flash 9 set wp pin function. | |
void | flash9_set_hld_pin (flash9_t *ctx, uint8_t state) |
Flash 9 set hld pin function. | |
void | flash9_set_rst_pin (flash9_t *ctx, uint8_t state) |
Flash 9 set rst pin function. | |
err_t | flash9_check_communication (flash9_t *ctx) |
Flash 9 check communication function. | |
err_t | flash9_erase_memory (flash9_t *ctx, uint8_t erase_cmd, uint32_t address) |
Flash 9 erase memory function. | |
err_t | flash9_read_status (flash9_t *ctx, uint8_t status_cmd, uint8_t *status) |
Flash 9 read status function. | |
err_t | flash9_write_status (flash9_t *ctx, uint8_t status_cmd, uint8_t status) |
Flash 9 write status function. | |
err_t | flash9_memory_write (flash9_t *ctx, uint32_t address, uint8_t *data_in, uint16_t len) |
Flash 9 memory write function. | |
err_t | flash9_memory_read (flash9_t *ctx, uint32_t address, uint8_t *data_out, uint16_t len) |
Flash 9 memory read function. | |
err_t | flash9_memory_read_fast (flash9_t *ctx, uint32_t address, uint8_t *data_out, uint16_t len) |
Flash 9 memory read fast function. | |
This file contains API for Flash 9 Click Driver.