sqiflash 2.0.0.0
|
This file contains API for SQI FLASH 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 | sqiflash_t |
SQI FLASH Click context object. More... | |
struct | sqiflash_cfg_t |
SQI FLASH Click configuration object. More... | |
Enumerations | |
enum | sqiflash_return_value_t { SQIFLASH_OK = 0 , SQIFLASH_ERROR = -1 } |
SQI FLASH Click return value data. More... | |
Functions | |
void | sqiflash_cfg_setup (sqiflash_cfg_t *cfg) |
SQI FLASH configuration object setup function. | |
err_t | sqiflash_init (sqiflash_t *ctx, sqiflash_cfg_t *cfg) |
SQI FLASH initialization function. | |
err_t | sqiflash_generic_write (sqiflash_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
SQI FLASH data writing function. | |
err_t | sqiflash_generic_read (sqiflash_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
SQI FLASH data reading function. | |
uint8_t | sqiflash_busy (sqiflash_t *ctx) |
SQI FLASH Busy. | |
uint8_t | sqiflash_get_status_reg (sqiflash_t *ctx) |
SQI FLASH Get Status Register. | |
uint8_t | sqiflash_erase_status (sqiflash_t *ctx) |
SQI FLASH Erase Status. | |
uint8_t | sqiflash_write_status (sqiflash_t *ctx) |
SQI FLASH Write Status. | |
uint8_t | sqiflash_program_status (sqiflash_t *ctx) |
SQI FLASH Program Status. | |
uint8_t | sqiflash_protect_status (sqiflash_t *ctx) |
SQI FLASH Protect Status. | |
void | sqiflash_lock_security_id (sqiflash_t *ctx) |
SQI FLASH Lock Security Status. | |
uint8_t | sqiflash_security_status (sqiflash_t *ctx) |
SQI FLASH Security Status. | |
void | sqiflash_write_protect_enable (sqiflash_t *ctx) |
SQI FLASH Write Protect Enable . | |
void | sqiflash_write_protect_disable (sqiflash_t *ctx) |
SQI FLASH Write Protect Disable. | |
void | sqiflash_hold_enable (sqiflash_t *ctx) |
SQI FLASH Hold Enable. | |
void | sqiflash_hold_disable (sqiflash_t *ctx) |
SQI FLASH Hold Disable. | |
void | sqiflash_write_suspend (sqiflash_t *ctx) |
SQI FLASH Write Suspend. | |
void | sqiflash_write_resume (sqiflash_t *ctx) |
SQI FLASH Write Resume. | |
void | sqiflash_spi_get_security_id (sqiflash_t *ctx, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Get Security ID SPI. | |
void | sqiflash_sqi_get_security_id (sqiflash_t *ctx, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Get Security ID SQI. | |
void | sqiflash_set_security_id (sqiflash_t *ctx, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Set Security ID. | |
void | sqiflash_write_disable (sqiflash_t *ctx) |
SQI FLASH Write Disable. | |
void | sqiflash_spi_get_bpr (sqiflash_t *ctx, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Get Block Protection Register SPI. | |
void | sqiflash_sqi_get_bpr (sqiflash_t *ctx, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Get Block Protection Register SQI. | |
void | sqiflash_set_bpr (sqiflash_t *ctx, uint8_t *buffer) |
SQI FLASH Set Block Protection Register. | |
void | sqiflash_lock_bpr (sqiflash_t *ctx) |
SQI FLASH Lock Block Protection Register. | |
void | sqiflash_nonvolatile_write_lock (sqiflash_t *ctx, uint8_t *buffer) |
SQI FLASH Non-Volatile Write-Lock. | |
void | sqiflash_global_block_unlock (sqiflash_t *ctx) |
SQI FLASH Global Block Unlock. | |
void | sqiflash_read_generic (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Read. | |
void | sqiflash_highspeed_r_read (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH High Speed Read. | |
void | sqiflash_quad_write (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Quad Write. | |
void | sqiflash_write_generic (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Write. | |
void | sqiflash_quad_enable (sqiflash_t *ctx) |
SQI FLASH Quad Enable. | |
void | sqiflash_quad_out_read (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Quad Output Read. | |
void | sqiflash_quad_io_read (sqiflash_t *ctx, uint32_t address, uint8_t mode, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Quad I/O Read. | |
void | sqiflash_quad_reset (sqiflash_t *ctx) |
SQI FLASH Quad Reset. | |
void | sqiflash_set_burst (sqiflash_t *ctx, uint8_t length) |
SQI FLASH Set Burst. | |
void | sqiflash_read_sqi_burst_wrap (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Read Burst with Wrap through SQI. | |
void | sqiflash_read_spi_burst_wrap (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Read Burst with Wrap through SPI. | |
void | sqiflash_read_dual_output (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Read Dual Output. | |
void | sqiflash_read_dual_io (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH Read Dual I/O. | |
void | sqiflash_sector_erase (sqiflash_t *ctx, uint32_t address) |
SQI FLASH Sector Erase. | |
void | sqiflash_block_erase (sqiflash_t *ctx, uint32_t address) |
SQI FLASH Block Erase. | |
void | sqiflash_chip_erase (sqiflash_t *ctx) |
SQI FLASH Chip Erase. | |
void | sqiflash_get_sfdp_params (sqiflash_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
SQI FLASH get Serial Flash Discoverable. | |
uint8_t | sqiflash_quad_device_manufac (sqiflash_t *ctx) |
SQI FLASH Quad Device Manufacturer. | |
uint8_t | sqiflash_quad_device_type (sqiflash_t *ctx) |
SQI FLASH Quad Device Type. | |
uint8_t | sqiflash_quad_device_id (sqiflash_t *ctx) |
SQI FLASH Quad Device ID. | |
uint8_t | sqiflash_device_manufac (sqiflash_t *ctx) |
SQI FLASH Device Manufacturer. | |
uint8_t | sqiflash_device_type (sqiflash_t *ctx) |
SQI FLASH Device Type. | |
uint8_t | sqiflash_device_id (sqiflash_t *ctx) |
SQI FLASH Device ID. | |
void | sqiflash_reset (sqiflash_t *ctx) |
SQI FLASH Reset. | |
void | sqiflash_write_status_reg (sqiflash_t *ctx, uint8_t s_reg) |
SQI FLASH Write Status Register. | |
uint8_t | sqiflash_get_config_reg (sqiflash_t *ctx) |
SQI FLASH Get Config Register. | |
void | sqiflash_write_enable (sqiflash_t *ctx) |
SQI FLASH Write Enable. | |
This file contains API for SQI FLASH Click Driver.