flash2
2.0.0.0
|
This file contains API for Flash 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | flash2_t |
Click ctx object definition. More... | |
struct | flash2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | flash2_cfg_setup (flash2_cfg_t *cfg) |
Config Object Initialization function. More... | |
FLASH2_RETVAL | flash2_init (flash2_t *ctx, flash2_cfg_t *cfg) |
Initialization function. More... | |
void | flash2_generic_transfer (flash2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
uint8_t | flash2_busy (flash2_t *ctx) |
Flash 2 Busy. More... | |
uint8_t | flash2_get_status_reg (flash2_t *ctx) |
Flash 2 Get Status Register. More... | |
uint8_t | flash2_erase_status (flash2_t *ctx) |
Flash 2 Erase Status. More... | |
uint8_t | flash2_write_status (flash2_t *ctx) |
Flash 2 Write Status. More... | |
uint8_t | flash2_program_status (flash2_t *ctx) |
Flash 2 Program Status. More... | |
uint8_t | flash2_protect_status (flash2_t *ctx) |
Flash 2 Protect Status. More... | |
void | flash2_lock_security_id (flash2_t *ctx) |
flash2_lock_security_id More... | |
uint8_t | flash2_security_status (flash2_t *ctx) |
Flash 2 Security Status. More... | |
void | flash2_write_protect_enable (flash2_t *ctx) |
Flash 2 Write Protect Enable. More... | |
void | flash2_write_protect_disable (flash2_t *ctx) |
Flash 2 Write Protect Disable. More... | |
void | flash2_hold_enable (flash2_t *ctx) |
Flash 2 Hold Enable. More... | |
void | flash2_hold_disable (flash2_t *ctx) |
Flash 2 Hold Disable. More... | |
void | flash2_write_suspend (flash2_t *ctx) |
Flash 2 Write Suspend. More... | |
void | flash2_write_resume (flash2_t *ctx) |
Flash 2 Write Resume. More... | |
void | flash2_spi_get_security_id (flash2_t *ctx, uint8_t *buffer, uint32_t data_count) |
Flash 2 Get Security ID SPI. More... | |
void | flash2_sqi_get_security_id (flash2_t *ctx, uint8_t *buffer, uint32_t data_count) |
Flash 2 Get Security ID SQI. More... | |
void | flash2_set_security_id (flash2_t *ctx, uint8_t *buffer, uint32_t data_count) |
Flash 2 Set Security ID. More... | |
void | flash2_write_disable (flash2_t *ctx) |
Flash 2 Write Disable. More... | |
void | flash2_spi_get_bpr (flash2_t *ctx, uint8_t *buffer, uint32_t data_count) |
Flash 2 Get Block Protection Register SPI. More... | |
void | flash2_sqi_get_bpr (flash2_t *ctx, uint8_t *buffer, uint32_t data_count) |
Flash 2 Get Block Protection Register SQI. More... | |
void | flash2_set_bpr (flash2_t *ctx, uint8_t *buffer) |
Flash 2 Set Block Protection Register. More... | |
void | flash2_lockBpr (flash2_t *ctx) |
Flash 2 Lock Block Protection Register. More... | |
void | flash2_nonvolatile_write_lock (flash2_t *ctx, uint8_t *buffer) |
Flash 2 Non-Volatile Write-Lock. More... | |
void | flash2_global_block_unlock (flash2_t *ctx) |
Flash 2 Global Block Unlock. More... | |
void | flash2_read_generic (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Read. More... | |
void | flash2_highspeedRread (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 High Speed Read. More... | |
void | flash2_quadWrite (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Quad Write. More... | |
void | flash2_write_generic (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Write. More... | |
void | flash2_quad_enable (flash2_t *ctx) |
Flash 2 Quad Enable. More... | |
void | flash2_quad_out_read (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Quad Output Read. More... | |
void | flash2_quad_io_read (flash2_t *ctx, uint32_t address, uint8_t mode, uint8_t *buffer, uint32_t data_count) |
Flash 2 Quad I/O Read. More... | |
void | flash2_quad_reset (flash2_t *ctx) |
Flash 2 Quad Reset. More... | |
void | flash2_set_burst (flash2_t *ctx, uint8_t length) |
Flash 2 Set Burst. More... | |
void | flash2_read_sqi_burst_wrap (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Read Burst with Wrap through SQI. More... | |
void | flash2_read_spi_burst_wrap (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Read Burst with Wrap through SPI. More... | |
void | flash2_read_dual_output (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Read Dual Output. More... | |
void | flash2_read_dual_io (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 Read Dual I/O. More... | |
void | flash2_sector_erase (flash2_t *ctx, uint32_t address) |
Flash 2 Sector Erase. More... | |
void | flash2_block_erase (flash2_t *ctx, uint32_t address) |
Flash 2 Block Erase. More... | |
void | flash2_chip_erase (flash2_t *ctx) |
Flash 2 Chip Erase. More... | |
void | flash2_get_sfdp_params (flash2_t *ctx, uint32_t address, uint8_t *buffer, uint32_t data_count) |
Flash 2 get Serial Flash Discoverable \ Parameters. More... | |
uint8_t | flash2_quad_device_manufac (flash2_t *ctx) |
Flash 2 Quad Device Manufacturer. More... | |
uint8_t | flash2_quad_device_type (flash2_t *ctx) |
Flash 2 Quad Device Type. More... | |
uint8_t | flash2_quad_device_id (flash2_t *ctx) |
Flash 2 Quad Device ID. More... | |
uint8_t | flash2_device_manufac (flash2_t *ctx) |
Flash 2 Device Manufacturer. More... | |
uint8_t | flash2_device_type (flash2_t *ctx) |
Flash 2 Device Type. More... | |
uint8_t | flash2_device_id (flash2_t *ctx) |
Flash 2 Device ID. More... | |
void | flash2_reset (flash2_t *ctx) |
Flash 2 Reset. More... | |
void | flash2_write_status_reg (flash2_t *ctx, uint8_t s_reg) |
Flash 2 Write Status Register. More... | |
uint8_t | flash2_get_config_reg (flash2_t *ctx) |
Flash 2 Get Config Register. More... | |
void | flash2_write_enable (flash2_t *ctx) |
Flash 2 Write Enable. More... | |
This file contains API for Flash 2 Click driver.