Go to the documentation of this file.
64 #ifdef HAL_QSPI_MODULE_ENABLED
70 #define APP_QSPI_PIN_ENABLE 1
71 #define APP_QSPI_PIN_DISABLE 0
388 #ifdef ENV_RTOS_USE_SEMP
439 uint16_t app_qspi_transmit_sem_sync(
app_qspi_id_t id, uint8_t *p_data, uint32_t length);
452 uint16_t app_qspi_receive_sem_sync(
app_qspi_id_t id, uint8_t *p_data, uint32_t length);
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.
qspi_command_t app_qspi_command_t
QSPI command structure definition.
uint16_t size
QSPI transmitted/received counter.
qspi_handle_t * app_qspi_get_handle(app_qspi_id_t id)
Return the QSPI handle.
app_io_pull_t pull
Specifies the Pull-up or Pull-Down activation for the selected pins.
app_qspi_id_t id
specified QSPI module ID.
@ APP_QSPI_ID_1
QSPI module 1.
@ APP_QSPI_TYPE_MAX
Only for check parameter, not used as input parameters.
@ APP_QSPI_TYPE_DMA
DMA operation mode
QSPI operate mode Enumerations definition.
uint16_t app_qspi_command_high_speed_sync(app_qspi_id_t id, app_qspi_command_t *p_cmd)
[High speed] Transmit only instruction in blocking mode.
uint16_t app_qspi_transmit_async(app_qspi_id_t id, uint8_t *p_data, uint32_t length)
Transmit an amount of data in non-blocking mode at standard SPI with Interrupt.
app_qspi_pin_t io_3
Set the configuration of QSPI IO3 pin.
QSPI IO configuration Structures.
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 mo...
app_qspi_type_t
QSPI operating mode Enumerations definition.
@ APP_QSPI_ID_0
QSPI module 0.
uint16_t app_qspi_command_transmit_high_speed_sync(app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data)
[High speed] Receive an amount of data with the specified instruction, address and dummy cycles in bl...
QSPI event structure definition.
app_io_pull_t
GPIO pull Enumerations definition.
app_io_type_t
GPIO type Enumerations definition.
uint16_t app_qspi_deinit(app_qspi_id_t id)
De-initialize the APP QSPI DRIVER peripheral.
uint16_t app_qspi_receive_high_speed_sync(app_qspi_id_t id, uint8_t *p_data, uint32_t length)
[High speed] Receive an amount of data in blocking mode with standard SPI.
QSPI init Structure definition.
@ APP_QSPI_EVT_ERROR
Error reported by UART peripheral.
@ APP_QSPI_TYPE_POLLING
Polling operation mode
app_qspi_pin_t cs
Set the configuration of QSPI CS pin.
uint32_t error_code
QSPI Error code .
QSPI command Structure definition.
app_io_mux_t mux
Specifies the Peripheral to be connected to the selected pins.
@ APP_QSPI_EVT_RX_DATA
Requested RX transfer completed.
app_qspi_id_t
QSPI module Enumerations definition.
Header file containing functions prototypes of GPIO app library.
QSPI configuration Structures.
void(* app_qspi_evt_handler_t)(app_qspi_evt_t *p_evt)
QSPI event callback definition.
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 mo...
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.
uint32_t pin
Specifies the IO pins to be configured.
app_qspi_type_t type
Specifies the operation mode of QSPI.
app_qspi_mode_t use_mode
QSPI operate mode.
uint8_t enable
Enable or disable the pin.
uint16_t app_qspi_receive_sync(app_qspi_id_t id, uint8_t *p_data, uint32_t length, uint32_t timeout)
Receive an amount of data in blocking mode with standard SPI.
app_qspi_pin_t io_1
Set the configuration of QSPI IO1 pin.
@ APP_QSPI_EVT_TX_CPLT
Requested TX transfer completed.
qspi_init_t init
QSPI communication parameters.
app_qspi_pin_cfg_t pin_cfg
the pin configuration information for the specified QSPI module.
This file contains all the functions prototypes for the HAL module driver.
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.
uint16_t app_qspi_receive_async(app_qspi_id_t id, uint8_t *p_data, uint32_t length)
Receive an amount of data in non-blocking mode at standard SPI with Interrupt.
uint16_t app_qspi_transmit_in_qpi_async(app_qspi_id_t id, uint32_t data_width, uint8_t *p_data, uint32_t length)
Transmit an amount of data in QPI mode (Async Mode).
uint16_t app_qspi_command_receive_high_speed_sync(app_qspi_id_t id, app_qspi_command_t *p_cmd, uint8_t *p_data)
[High speed] Receive an amount of data with the specified instruction, address and dummy cycles in bl...
app_qspi_pin_t clk
Set the configuration of QSPI CLK pin.
@ APP_QSPI_ID_MAX
Only for check parameter, not used as input parameters.
app_qspi_evt_type_t
APP QSPI Event Type.
uint16_t app_qspi_transmit_high_speed_sync(app_qspi_id_t id, uint8_t *p_data, uint32_t length)
[High speed] Transmit an amount of data in blocking mode with standard SPI.
app_io_mux_t
GPIO mux Enumerations definition.
app_qspi_evt_type_t type
Type of event.
dma_channel_t dma_channel
Specifies the dma channel of QSPI.
uint16_t app_qspi_transmit_sync(app_qspi_id_t id, uint8_t *p_data, uint32_t length, uint32_t timeout)
Transmit an amount of data in blocking mode with standard SPI.
app_qspi_pin_t io_2
Set the configuration of QSPI IO2 pin.
Header file of app rtos config code.
Header file of app driver error code.
app_io_type_t type
Specifies the type of QSPI IO.
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 handle Structure definition.
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.
QSPI parameters structure definition.
app_qspi_pin_t io_0
Set the configuration of QSPI IO0 pin.
dma_channel_t
HAL DMA Channel Enumerations definition.
@ APP_QSPI_TYPE_INTERRUPT
Interrupt operation mode.