Functions | |
uint16_t | app_qspi_init (app_qspi_params_t *p_params, app_qspi_evt_handler_t evt_handler) |
Initialize the APP QSPI DRIVER according to the specified parameters in the app_qspi_params_t and app_qspi_evt_handler_t. More... | |
uint16_t | app_qspi_deinit (app_qspi_id_t id) |
De-initialize the APP QSPI DRIVER peripheral. More... | |
uint16_t | app_qspi_abort (app_qspi_id_t id) |
Abort qspi communication with Interrupt. More... | |
bool | app_qspi_config_memory_mappped (app_qspi_id_t id, app_qspi_mmap_device_t dev) |
Config the memory mapped mode (also called XIP mode) and Active the mode. More... | |
bool | app_qspi_active_memory_mappped (app_qspi_id_t id, bool is_active) |
Active or Deactive memory mapped mode (also called XIP mode) More... | |
uint16_t | app_qspi_command_receive_sync (app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data, uint32_t timeout) |
Receive an amount of data with the specified instruction, address and dummy cycles in blocking mode. More... | |
uint16_t | app_qspi_command_receive_async (app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt. More... | |
uint16_t | app_qspi_command_transmit_sync (app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data, uint32_t timeout) |
Receive an amount of data with the specified instruction, address and dummy cycles in blocking mode. More... | |
uint16_t | app_qspi_command_transmit_async (app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt. More... | |
uint16_t | app_qspi_command_sync (app_qspi_id_t id, app_qspi_command_t *p_cmd, uint32_t timeout) |
Transmit only instruction in blocking mode. More... | |
uint16_t | app_qspi_command_async (app_qspi_id_t id, app_qspi_command_t *p_cmd) |
Transmit instruction in non-blocking mode with Interrupt. More... | |
uint16_t | app_qspi_transmit_sync_ex (app_qspi_id_t id, uint32_t qspi_mode, uint32_t data_width, uint8_t *p_data, uint32_t length, uint32_t timeout) |
Transmit data without command, support std/dual/quad mode. More... | |
uint16_t | app_qspi_transmit_async_ex (app_qspi_id_t id, uint32_t qspi_mode, uint32_t data_width, uint8_t *p_data, uint32_t length) |
Transmit data without command, support std/dual/quad mode. More... | |
uint16_t | app_qspi_receive_sync_ex (app_qspi_id_t id, uint32_t qspi_mode, uint32_t data_width, uint8_t *p_data, uint32_t length, uint32_t timeout) |
Receive data without command, support std/dual/quad mode. More... | |
uint16_t | app_qspi_receive_async_ex (app_qspi_id_t id, uint32_t qspi_mode, uint32_t data_width, uint8_t *p_data, uint32_t length) |
Receive data without command, support std/dual/quad mode. More... | |
bool | app_qspi_mmap_set_endian_mode (app_qspi_id_t id, app_qspi_mmap_endian_mode_e mode) |
Set Data Endian Mode to Read in Memory mapped Mode(XIP Mode) More... | |
uint8_t | app_qspi_mmap_read_u8 (app_qspi_id_t id, uint32_t address) |
Read U8 Data in Memory mapped Mode(XIP Mode), can be used in flash/psram device. More... | |
uint16_t | app_qspi_mmap_read_u16 (app_qspi_id_t id, uint32_t address) |
Read U16 Data in Memory mapped Mode(XIP Mode), The Data is ordered by the order in flash/psram device. More... | |
uint32_t | app_qspi_mmap_read_u32 (app_qspi_id_t id, uint32_t address) |
Read U32 Data in Memory mapped Mode(XIP Mode), The Data is ordered by the order in flash/psram device. More... | |
bool | app_qspi_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... | |
uint32_t | app_qspi_get_xip_base_address (app_qspi_id_t id) |
Return the XIP Base Address of QSPI Instance. More... | |
qspi_handle_t * | app_qspi_get_handle (app_qspi_id_t id) |
Return the QSPI handle. More... | |
uint16_t | app_qspi_dma_init (app_qspi_params_t *p_params) |
Initialize the APP QSPI DRIVER according to the specified parameters in the app_qspi_params_t and app_qspi_evt_handler_t. More... | |
uint16_t | app_qspi_dma_deinit (app_qspi_id_t id) |
De-initialize the APP QSPI DRIVER peripheral. More... | |
uint16_t | app_qspi_dma_command_receive_async (app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt. More... | |
uint16_t | app_qspi_dma_command_transmit_async (app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt. More... | |
uint16_t | app_qspi_dma_command_async (app_qspi_id_t id, app_qspi_command_t *p_cmd) |
Transmit instruction in non-blocking mode with Interrupt. More... | |
uint16_t | app_qspi_dma_transmit_async_ex (app_qspi_id_t id, uint32_t qspi_mode, uint32_t data_width, uint8_t *p_data, uint32_t length) |
Transmit data without command, support std/dual/quad mode. More... | |
uint16_t | app_qspi_dma_receive_async_ex (app_qspi_id_t id, uint32_t qspi_mode, uint32_t data_width, uint8_t *p_data, uint32_t length) |
Receive data without command, support std/dual/quad mode. More... | |
uint16_t app_qspi_abort | ( | app_qspi_id_t | id | ) |
Abort qspi communication with Interrupt.
[in] | id | QSPI module ID. |
bool app_qspi_active_memory_mappped | ( | app_qspi_id_t | id, |
bool | is_active | ||
) |
Active or Deactive memory mapped mode (also called XIP mode)
[in] | id | : QSPI module ID. |
[in] | is_active | true - Active the mode; false - Deactive the mode |
uint16_t app_qspi_command_async | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd | ||
) |
Transmit instruction in non-blocking mode with Interrupt.
[in] | id | which QSPI module want to transmit command. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
uint16_t app_qspi_command_receive_async | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd, | ||
uint8_t * | p_data | ||
) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt.
[in] | id | which QSPI module want to receive. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
[out] | p_data | Pointer to data buffer |
uint16_t app_qspi_command_receive_sync | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd, | ||
uint8_t * | p_data, | ||
uint32_t | timeout | ||
) |
Receive an amount of data with the specified instruction, address and dummy cycles in blocking mode.
[in] | id | which QSPI module want to receive. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
[out] | p_data | Pointer to data buffer |
[in] | timeout | Timeout duration |
uint16_t app_qspi_command_sync | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd, | ||
uint32_t | timeout | ||
) |
Transmit only instruction in blocking mode.
[in] | id | which QSPI module want to transmit command. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
[in] | timeout | Timeout duration |
uint16_t app_qspi_command_transmit_async | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd, | ||
uint8_t * | p_data | ||
) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt.
[in] | id | which QSPI module want to transmit. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
[out] | p_data | Pointer to data buffer |
uint16_t app_qspi_command_transmit_sync | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd, | ||
uint8_t * | p_data, | ||
uint32_t | timeout | ||
) |
Receive an amount of data with the specified instruction, address and dummy cycles in blocking mode.
[in] | id | which QSPI module want to transmit. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
[out] | p_data | Pointer to data buffer |
[in] | timeout | Timeout duration |
bool app_qspi_config_memory_mappped | ( | app_qspi_id_t | id, |
app_qspi_mmap_device_t | dev | ||
) |
Config the memory mapped mode (also called XIP mode) and Active the mode.
[in] | id | : QSPI module ID. |
[in] | dev | device config for mmaped mode |
uint16_t app_qspi_deinit | ( | app_qspi_id_t | id | ) |
De-initialize the APP QSPI DRIVER peripheral.
[in] | id | De-initialize for a specific ID. |
uint16_t app_qspi_dma_command_async | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd | ||
) |
Transmit instruction in non-blocking mode with Interrupt.
[in] | id | which QSPI module want to transmit command. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
uint16_t app_qspi_dma_command_receive_async | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd, | ||
uint8_t * | p_data | ||
) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt.
[in] | id | which QSPI module want to receive. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
[out] | p_data | Pointer to data buffer |
uint16_t app_qspi_dma_command_transmit_async | ( | app_qspi_id_t | id, |
app_qspi_command_t * | p_cmd, | ||
uint8_t * | p_data | ||
) |
Receive an amount of data with the specified instruction, address and dummy cycles in non-blocking mode with Interrupt.
[in] | id | which QSPI module want to transmit. |
[in] | p_cmd | Pointer to a app_qspi_command_t structure that contains the instruction and address for data transfer. |
[out] | p_data | Pointer to data buffer |
uint16_t app_qspi_dma_deinit | ( | app_qspi_id_t | id | ) |
De-initialize the APP QSPI DRIVER peripheral.
[in] | id | De-initialize for a specific ID. |
uint16_t app_qspi_dma_init | ( | app_qspi_params_t * | p_params | ) |
Initialize the APP QSPI DRIVER according to the specified parameters in the app_qspi_params_t and app_qspi_evt_handler_t.
[in] | p_params | Pointer to app_qspi_params_t parameter which contains the configuration information for the specified QSPI module. |
uint16_t app_qspi_dma_receive_async_ex | ( | app_qspi_id_t | id, |
uint32_t | qspi_mode, | ||
uint32_t | data_width, | ||
uint8_t * | p_data, | ||
uint32_t | length | ||
) |
Receive data without command, support std/dual/quad mode.
[in] | id | : QSPI module ID. |
[in] | qspi_mode | : QSPI_DATA_MODE_SPI QSPI_DATA_MODE_DUALSPI QSPI_DATA_MODE_QUADSPI |
[in] | data_width | :QSPI_DATASIZE_08_BITS QSPI_DATASIZE_16_BITS QSPI_DATASIZE_32_BITS |
[in] | p_data | : data Pointer to transmit |
[in] | length | : byte length of data |
uint16_t app_qspi_dma_transmit_async_ex | ( | app_qspi_id_t | id, |
uint32_t | qspi_mode, | ||
uint32_t | data_width, | ||
uint8_t * | p_data, | ||
uint32_t | length | ||
) |
Transmit data without command, support std/dual/quad mode.
[in] | id | : QSPI module ID. |
[in] | qspi_mode | : QSPI_DATA_MODE_SPI QSPI_DATA_MODE_DUALSPI QSPI_DATA_MODE_QUADSPI |
[in] | data_width | :QSPI_DATASIZE_08_BITS QSPI_DATASIZE_16_BITS QSPI_DATASIZE_32_BITS |
[in] | p_data | : data Pointer to transmit |
[in] | length | : byte length of data |
qspi_handle_t* app_qspi_get_handle | ( | app_qspi_id_t | id | ) |
Return the QSPI handle.
[in] | id | QSPI module ID. |
uint32_t app_qspi_get_xip_base_address | ( | app_qspi_id_t | id | ) |
Return the XIP Base Address of QSPI Instance.
[in] | id | QSPI module ID. |
uint16_t app_qspi_init | ( | app_qspi_params_t * | p_params, |
app_qspi_evt_handler_t | evt_handler | ||
) |
Initialize the APP QSPI DRIVER according to the specified parameters in the app_qspi_params_t and app_qspi_evt_handler_t.
[in] | p_params | Pointer to app_qspi_params_t parameter which contains the configuration information for the specified QSPI module. |
[in] | evt_handler | QSPI user callback function. |
bool app_qspi_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.
[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 |
uint16_t app_qspi_mmap_read_u16 | ( | app_qspi_id_t | id, |
uint32_t | address | ||
) |
Read U16 Data in Memory mapped Mode(XIP Mode), The Data is ordered by the order in flash/psram device.
[in] | id | : QSPI module ID. |
[in] | address | : the address of device connected to QSPI, start from 0x000000 |
uint32_t app_qspi_mmap_read_u32 | ( | app_qspi_id_t | id, |
uint32_t | address | ||
) |
Read U32 Data in Memory mapped Mode(XIP Mode), The Data is ordered by the order in flash/psram device.
[in] | id | : QSPI module ID. |
[in] | address | : the address of device connected to QSPI, start from 0x000000 |
uint8_t app_qspi_mmap_read_u8 | ( | app_qspi_id_t | id, |
uint32_t | address | ||
) |
Read U8 Data in Memory mapped Mode(XIP Mode), can be used in flash/psram device.
[in] | id | : QSPI module ID. |
[in] | address | : the address of device connected to QSPI, start from 0x000000 |
bool app_qspi_mmap_set_endian_mode | ( | app_qspi_id_t | id, |
app_qspi_mmap_endian_mode_e | mode | ||
) |
Set Data Endian Mode to Read in Memory mapped Mode(XIP Mode)
[in] | id | : QSPI module ID. |
[in] | mode | : endian mode |
uint16_t app_qspi_receive_async_ex | ( | app_qspi_id_t | id, |
uint32_t | qspi_mode, | ||
uint32_t | data_width, | ||
uint8_t * | p_data, | ||
uint32_t | length | ||
) |
Receive data without command, support std/dual/quad mode.
[in] | id | : QSPI module ID. |
[in] | qspi_mode | : QSPI_DATA_MODE_SPI QSPI_DATA_MODE_DUALSPI QSPI_DATA_MODE_QUADSPI |
[in] | data_width | :QSPI_DATASIZE_08_BITS QSPI_DATASIZE_16_BITS QSPI_DATASIZE_32_BITS |
[in] | p_data | : data Pointer to transmit |
[in] | length | : byte length of data |
uint16_t app_qspi_receive_sync_ex | ( | app_qspi_id_t | id, |
uint32_t | qspi_mode, | ||
uint32_t | data_width, | ||
uint8_t * | p_data, | ||
uint32_t | length, | ||
uint32_t | timeout | ||
) |
Receive data without command, support std/dual/quad mode.
[in] | id | : QSPI module ID. |
[in] | qspi_mode | : QSPI_DATA_MODE_SPI QSPI_DATA_MODE_DUALSPI QSPI_DATA_MODE_QUADSPI |
[in] | data_width | :QSPI_DATASIZE_08_BITS QSPI_DATASIZE_16_BITS QSPI_DATASIZE_32_BITS |
[in] | p_data | : data Pointer to transmit |
[in] | length | : byte length of data |
[in] | timeout | Timeout duration |
uint16_t app_qspi_transmit_async_ex | ( | app_qspi_id_t | id, |
uint32_t | qspi_mode, | ||
uint32_t | data_width, | ||
uint8_t * | p_data, | ||
uint32_t | length | ||
) |
Transmit data without command, support std/dual/quad mode.
[in] | id | : QSPI module ID. |
[in] | qspi_mode | : QSPI_DATA_MODE_SPI QSPI_DATA_MODE_DUALSPI QSPI_DATA_MODE_QUADSPI |
[in] | data_width | :QSPI_DATASIZE_08_BITS QSPI_DATASIZE_16_BITS QSPI_DATASIZE_32_BITS |
[in] | p_data | : data Pointer to transmit |
[in] | length | : byte length of data |
uint16_t app_qspi_transmit_sync_ex | ( | app_qspi_id_t | id, |
uint32_t | qspi_mode, | ||
uint32_t | data_width, | ||
uint8_t * | p_data, | ||
uint32_t | length, | ||
uint32_t | timeout | ||
) |
Transmit data without command, support std/dual/quad mode.
[in] | id | : QSPI module ID. |
[in] | qspi_mode | : QSPI_DATA_MODE_SPI QSPI_DATA_MODE_DUALSPI QSPI_DATA_MODE_QUADSPI |
[in] | data_width | :QSPI_DATASIZE_08_BITS QSPI_DATASIZE_16_BITS QSPI_DATASIZE_32_BITS |
[in] | p_data | : data Pointer to transmit |
[in] | length | : byte length of data |
[in] | timeout | Timeout duration |