Header file containing functions prototypes of EXFLASH HAL library. More...
Go to the source code of this file.
Classes | |
struct | _exflash_timing_param |
exFlash AC characteristics More... | |
struct | exflash_func_t |
EXFLASH function Structure definition. More... | |
Typedefs | |
typedef struct _exflash_timing_param | exflash_timing_param_t |
exFlash AC characteristics More... | |
typedef ll_xqspi_hp_init_t | exflash_hp_init_t |
HP Mode structure definition. More... | |
Functions | |
uint32_t | hal_exflash_init (exflash_func_t *exflash_func) |
Initialize the exFlash according to the specified parameters in the exflash_init_t and initialize the associated handle. More... | |
void | hal_exflash_deinit (void) |
De-Initialize the exFlash. More... | |
void | hal_exflash_timing_set (exflash_timing_param_t *p_time) |
Configure flash electrical characteristic parameters. More... | |
void | hal_exflash_get_info (uint32_t *id, uint32_t *size) |
Get flash id and size. More... | |
uint32_t | hal_exflash_config (uint32_t configure, uint32_t value) |
flash parameter configuration More... | |
uint32_t | hal_exflash_enable_quad (ll_xqspi_hp_init_t hp_init) |
Enable Quad mode to allow Quad operation. More... | |
uint32_t | hal_exflash_write (uint32_t addr, uint8_t *p_data, uint32_t size) |
Write an amount of data with specified instruction and address to flash. More... | |
uint32_t | hal_exflash_read (uint32_t addr, uint8_t *p_data, uint32_t size) |
Read an amount of data with specified instruction and address from flash. More... | |
uint32_t | hal_exflash_erase (uint32_t erase_type, uint32_t addr, uint32_t size) |
Erase flash region. More... | |
uint32_t | hal_exflash_block_protect (uint32_t cmp, uint32_t bp) |
Lock area of flash to be software protected against Write and Erase operation.. More... | |
uint32_t | hal_exflash_deepsleep (void) |
the exFlash will go to the Deep Power-Down Mode. More... | |
uint32_t | hal_exflash_wakeup (void) |
exFlash will be released from Deep Power-Down Mode. More... | |
uint32_t | hal_exflash_sr_erase (uint32_t addr) |
Erase single flash security register. More... | |
uint32_t | hal_exflash_sr_program (uint32_t addr, uint8_t *p_data, uint32_t size) |
Write an amount of data into flash security register. More... | |
uint32_t | hal_exflash_sr_read (uint32_t addr, uint8_t *p_data, uint32_t size) |
Read an amount of data from flash security register. More... | |
uint32_t | hal_exflash_sr_protect (uint32_t lb) |
This function provide the write protect control and status to the Security Registers. More... | |
hal_status_t | hal_exflash_read_status_reg (uint16_t *p_reg_status) |
This function reads the status register of a flash. More... | |
hal_status_t | hal_exflash_write_status_reg (uint16_t reg_status) |
This function writes the status register of a flash. More... | |
hal_status_t | hal_exflash_read_uid (uint8_t *uid) |
This function serves to read UID of flash. More... | |
hal_status_t | hal_exflash_wait_busy (uint32_t retry) |
This function wait for the flash (in qspi mode) to exit the busy state. More... | |
Header file containing functions prototypes of EXFLASH HAL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file hal_exflash.h.