Header file containing functions prototypes of OSPI app library. More...
#include "gr55xx.h"
#include "gr55xx_ll_ospi_x.h"
#include "stdbool.h"
#include "app_drv_error.h"
#include "app_drv_config.h"
Go to the source code of this file.
Classes | |
struct | app_graphics_ospi_params_t |
Define init params for OSPI. More... | |
Macros | |
#define | OSPI_PSRAM_DEVICE_ID 0x13 |
#define | OSPI_PSRAM_MIN_XIP_ADDRESS OSPI0_XIP_BASE |
#define | OSPI_PSRAM_MAX_XIP_ADDRESS (OSPI0_XIP_BASE + 0x7FFFFF) |
#define | OSPI_PSRAM_BYTE_SIZE (0x800000) |
#define | PSRAM_INIT_PARAMS_Default |
PSRAM init parameter definition. More... | |
Typedefs | |
typedef void(* | ospi_irq_handler) (void) |
Define IRQ handler for OSPI. More... | |
typedef void(* | psram_reload_func_t) (void) |
Define PSRAM reload function for OSPI. More... | |
Functions | |
uint16_t | app_graphics_ospi_init (app_graphics_ospi_params_t *p_params) |
Initialize the APP OSPI DRIVER according to the specified parameters. More... | |
void | app_graphics_ospi_deinit (void) |
De-Initialize the APP OSPI DRIVER . More... | |
void | app_graphics_ospi_reset (void) |
Reset the OSPI Controller. More... | |
void | app_graphics_ospi_register_psram_reload_func (psram_reload_func_t psram_reload_func) |
Register the OSPI reload function for PSRAM recovery after deep sleep. More... | |
void | app_graphics_ospi_set_sleep_state (app_ospi_work_state_e state) |
Set the OSPI low power state for system sleep. More... | |
app_ospi_work_state_e | app_graphics_ospi_get_sleep_state (void) |
Get the OSPI low power state for system sleep. More... | |
uint32_t | app_graphics_ospi_get_base_address (void) |
Get the OSPI.PSRAM Base Address. More... | |
void | app_graphics_ospi_set_pasr (app_ospi_pasr_e area) |
Set Partial Refresh Array for OSPI PSRAM. More... | |
void | app_graphics_ospi_pasr_update (uint32_t psram_addr) |
Set Partial Refresh Array for OSPI PSRAM with PSRAM used address. More... | |
__STATIC_INLINE bool | app_graphics_is_ospi_address (uint32_t address) |
Check address is located at ospi.psram or not. More... | |
__STATIC_INLINE void | app_graphics_ospi_set_read_prefetch (bool enable) |
Enable/Disable read prefetch of OSPI PSRAM. More... | |
__STATIC_INLINE bool | app_graphics_ospi_get_read_prefetch (void) |
Get read prefetch state of OSPI PSRAM. More... | |
uint32_t | app_graphics_ospi_get_byte_size (void) |
Get the OSPI.PSRAM Size in Bytes. More... | |
void | app_graphics_ospi_set_power_state (app_ospi_work_state_e state) |
Set the OSPI work state. More... | |
Header file containing functions prototypes of OSPI app 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 app_graphics_ospi.h.