XQSPI control functions.
More...
XQSPI control functions.
===============================================================================
##### Peripheral State and Errors functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the XQSPI.
(+) hal_xqspi_get_state()API can be helpful to check in run-time the state of the XQSPI peripheral.
(+) hal_xqspi_get_error() check in run-time Errors occurring during communication.
(+) hal_xqspi_set_retry() set the repeat times during internal process.
(+) hal_xqspi_set_tx_fifo_threshold() set the TX FIFO Threshold.
(+) hal_xqspi_set_rx_fifo_threshold() set the RX FIFO Threshold.
(+) hal_xqspi_get_tx_fifo_threshold() get the TX FIFO Threshold.
(+) hal_xqspi_get_rx_fifo_threshold() get the RX FIFO Threshold.
◆ hal_xqspi_get_error()
Return the XQSPI error code.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
- Returns
- XQSPI error code in bitmap format
◆ hal_xqspi_get_rx_fifo_threshold()
Get the RXFIFO threshold.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
- Returns
- RX FIFO threshold
◆ hal_xqspi_get_state()
Return the XQSPI handle state.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
- Return values
-
◆ hal_xqspi_get_tx_fifo_threshold()
Get the TXFIFO threshold.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
- Returns
- TX FIFO threshold
◆ hal_xqspi_set_retry()
Set the XQSPI internal process repeat times value.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
[in] | retry | Internal process repeat times value. |
◆ hal_xqspi_set_rx_fifo_threshold()
Set the RXFIFO threshold.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
[in] | threshold | RX FIFO threshold can be one of the following values:
|
- Return values
-
◆ hal_xqspi_set_tx_fifo_threshold()
Set the TXFIFO threshold.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
[in] | threshold | TX FIFO threshold can be one of the following values:
|
- Return values
-
◆ hal_xqspi_set_xip_present_status()
void hal_xqspi_set_xip_present_status |
( |
xqspi_handle_t * |
p_xqspi, |
|
|
uint32_t |
status |
|
) |
| |
Turn on/off present module, only in XIP mode.
- Parameters
-
[in] | p_xqspi | Pointer to an XQSPI handle which contains the configuration information for the specified XQSPI module. |
[in] | status | Presen status can be one of the following values:
|