Functions

bool app_qspi_dma_mmap_read_block (app_qspi_id_t id, uint32_t address, uint8_t *buffer, uint32_t length)
 Read data block in Memory mapped Mode(XIP Mode), The Data is ordered by the order in flash/psram device. More...
 
bool app_qspi_async_draw_screen (app_qspi_id_t screen_id, app_qspi_id_t storage_id, const app_qspi_screen_command_t *const p_screen_cmd, const app_qspi_screen_info_t *const p_screen_info, app_qspi_screen_scroll_t *p_scroll_config, bool is_first_call)
 Special Async API to write QuadSPI Screen from memory mapped device(flash or psram) Must enable the two micro-defines to enable this API: QSPI_ASYNC_SCROLL_DRAW_SCREEN_SUPPORT. More...
 
bool app_qspi_async_veri_draw_screen (app_qspi_id_t screen_id, app_qspi_id_t storage_id, const app_qspi_screen_command_t *const p_screen_cmd, const app_qspi_screen_info_t *const p_screen_info, app_qspi_screen_veri_link_scroll_t *p_link_scroll, bool is_first_call)
 Special Async API to write Screen in vertical direction, and veritical lines are organized in linked list. Must enable the two micro-defines to enable this API: QSPI_ASYNC_VERI_LINK_DRAW_SCREEN_SUPPORT. More...
 
bool app_qspi_async_llp_draw_block (app_qspi_id_t screen_id, app_qspi_id_t storage_id, const app_qspi_screen_command_t *const p_screen_cmd, const app_qspi_screen_info_t *const p_screen_info, app_qspi_screen_block_t *p_block_info, bool is_first_call)
 Special Async API to write one block of the Screen by DMA-LLP, every line of the block is organized in linked list. Must enable the micro-defines to enable this API: QSPI_ASYNC_VERI_LINK_DRAW_SCREEN_SUPPORT. More...
 
bool app_qspi_mmap_blit_image (app_qspi_id_t storage_id, blit_image_config_t *p_blit_config, blit_xfer_type_e xfer_type)
 Special API to Blit Image from memory mapped device to RAM Buffer Must enable the two micro-defines to enable this API: QSPI_BLIT_RECT_IMAGE_SUPPORT. More...
 

Detailed Description

Function Documentation

◆ app_qspi_async_draw_screen()

bool app_qspi_async_draw_screen ( app_qspi_id_t  screen_id,
app_qspi_id_t  storage_id,
const app_qspi_screen_command_t *const  p_screen_cmd,
const app_qspi_screen_info_t *const  p_screen_info,
app_qspi_screen_scroll_t p_scroll_config,
bool  is_first_call 
)

Special Async API to write QuadSPI Screen from memory mapped device(flash or psram) Must enable the two micro-defines to enable this API: QSPI_ASYNC_SCROLL_DRAW_SCREEN_SUPPORT.

Parameters
[in]screen_idQSPI module ID for screen, MUST config screen qspi to register mode.
[in]storage_idQSPI module ID for storage, MUST config storage qspi to mmap(xip) mode.
[in]p_screen_cmdpointer to the screen control command
[in]p_screen_infopointer to the screen information
[in]p_scroll_configpointer to the scrolling-config
[in]is_first_callWhen called in foreground task, please set true
Returns
true/false

◆ app_qspi_async_llp_draw_block()

bool app_qspi_async_llp_draw_block ( app_qspi_id_t  screen_id,
app_qspi_id_t  storage_id,
const app_qspi_screen_command_t *const  p_screen_cmd,
const app_qspi_screen_info_t *const  p_screen_info,
app_qspi_screen_block_t p_block_info,
bool  is_first_call 
)

Special Async API to write one block of the Screen by DMA-LLP, every line of the block is organized in linked list. Must enable the micro-defines to enable this API: QSPI_ASYNC_VERI_LINK_DRAW_SCREEN_SUPPORT.

Parameters
[in]screen_idQSPI module ID for screen, MUST config screen qspi to register mode.
[in]storage_idQSPI module ID for storage, MUST config storage qspi to mmap(xip) mode.
[in]p_screen_cmdpointer to the screen control command
[in]p_screen_infopointer to the screen information
[in]p_block_infopointer to the block information structure
[in]is_first_callWhen first call, please set true(used this flag to decide whether send cmd or not)
Returns
true/false @NOTE You need to control the CS outsize if (is_one_take_cs) is set true @NOTE It will generate APP_QSPI_EVT_TX_CPLT event when finish transmission.

◆ app_qspi_async_veri_draw_screen()

bool app_qspi_async_veri_draw_screen ( app_qspi_id_t  screen_id,
app_qspi_id_t  storage_id,
const app_qspi_screen_command_t *const  p_screen_cmd,
const app_qspi_screen_info_t *const  p_screen_info,
app_qspi_screen_veri_link_scroll_t p_link_scroll,
bool  is_first_call 
)

Special Async API to write Screen in vertical direction, and veritical lines are organized in linked list. Must enable the two micro-defines to enable this API: QSPI_ASYNC_VERI_LINK_DRAW_SCREEN_SUPPORT.

Parameters
[in]screen_idQSPI module ID for screen, MUST config screen qspi to register mode.
[in]storage_idQSPI module ID for storage, MUST config storage qspi to mmap(xip) mode.
[in]p_screen_cmdpointer to the screen control command
[in]p_screen_infopointer to the screen information
[in]p_link_scrollpointer to the linked list structure
[in]is_first_callWhen called in foreground task, please set true
Returns
true/false

◆ app_qspi_dma_mmap_read_block()

bool app_qspi_dma_mmap_read_block ( app_qspi_id_t  id,
uint32_t  address,
uint8_t *  buffer,
uint32_t  length 
)

Read data block in Memory mapped Mode(XIP Mode), The Data is ordered by the order in flash/psram device.

Parameters
[in]id: QSPI module ID.
[in]address: the address of device connected to QSPI, start from 0x000000
[in]buffer: memory pointer to save the read data
[in]length: the read length in byte
Returns
true/false

◆ app_qspi_mmap_blit_image()

bool app_qspi_mmap_blit_image ( app_qspi_id_t  storage_id,
blit_image_config_t p_blit_config,
blit_xfer_type_e  xfer_type 
)

Special API to Blit Image from memory mapped device to RAM Buffer Must enable the two micro-defines to enable this API: QSPI_BLIT_RECT_IMAGE_SUPPORT.

Parameters
[in]storage_id: QSPI module ID for storage, MUST config storage qspi to mmap(xip) mode.
[in]p_blit_config: pointer to blit config
[in]xfer_type: pointer to the scrolling-config
Returns
true/false