|
STM32L4xx_HAL_Driver
1.14.0
|
OSPI Transmit/Receive functions. More...
Functions | |
| void | HAL_OSPI_IRQHandler (OSPI_HandleTypeDef *hospi) |
| Handle OSPI interrupt request. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Command (OSPI_HandleTypeDef *hospi, OSPI_RegularCmdTypeDef *cmd, uint32_t Timeout) |
| Set the command configuration. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Command_IT (OSPI_HandleTypeDef *hospi, OSPI_RegularCmdTypeDef *cmd) |
| Set the command configuration in interrupt mode. More... | |
| HAL_StatusTypeDef | HAL_OSPI_HyperbusCfg (OSPI_HandleTypeDef *hospi, OSPI_HyperbusCfgTypeDef *cfg, uint32_t Timeout) |
| Configure the Hyperbus parameters. More... | |
| HAL_StatusTypeDef | HAL_OSPI_HyperbusCmd (OSPI_HandleTypeDef *hospi, OSPI_HyperbusCmdTypeDef *cmd, uint32_t Timeout) |
| Set the Hyperbus command configuration. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Transmit (OSPI_HandleTypeDef *hospi, uint8_t *pData, uint32_t Timeout) |
| Transmit an amount of data in blocking mode. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Receive (OSPI_HandleTypeDef *hospi, uint8_t *pData, uint32_t Timeout) |
| Receive an amount of data in blocking mode. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Transmit_IT (OSPI_HandleTypeDef *hospi, uint8_t *pData) |
| Send an amount of data in non-blocking mode with interrupt. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Receive_IT (OSPI_HandleTypeDef *hospi, uint8_t *pData) |
| Receive an amount of data in non-blocking mode with interrupt. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Transmit_DMA (OSPI_HandleTypeDef *hospi, uint8_t *pData) |
| Send an amount of data in non-blocking mode with DMA. More... | |
| HAL_StatusTypeDef | HAL_OSPI_Receive_DMA (OSPI_HandleTypeDef *hospi, uint8_t *pData) |
| Receive an amount of data in non-blocking mode with DMA. More... | |
| HAL_StatusTypeDef | HAL_OSPI_AutoPolling (OSPI_HandleTypeDef *hospi, OSPI_AutoPollingTypeDef *cfg, uint32_t Timeout) |
| Configure the OSPI Automatic Polling Mode in blocking mode. More... | |
| HAL_StatusTypeDef | HAL_OSPI_AutoPolling_IT (OSPI_HandleTypeDef *hospi, OSPI_AutoPollingTypeDef *cfg) |
| Configure the OSPI Automatic Polling Mode in non-blocking mode. More... | |
| HAL_StatusTypeDef | HAL_OSPI_MemoryMapped (OSPI_HandleTypeDef *hospi, OSPI_MemoryMappedTypeDef *cfg) |
| Configure the Memory Mapped mode. More... | |
| void | HAL_OSPI_ErrorCallback (OSPI_HandleTypeDef *hospi) |
| Transfer Error callback. More... | |
| void | HAL_OSPI_AbortCpltCallback (OSPI_HandleTypeDef *hospi) |
| Abort completed callback. More... | |
| void | HAL_OSPI_FifoThresholdCallback (OSPI_HandleTypeDef *hospi) |
| FIFO Threshold callback. More... | |
| void | HAL_OSPI_CmdCpltCallback (OSPI_HandleTypeDef *hospi) |
| Command completed callback. More... | |
| void | HAL_OSPI_RxCpltCallback (OSPI_HandleTypeDef *hospi) |
| Rx Transfer completed callback. More... | |
| void | HAL_OSPI_TxCpltCallback (OSPI_HandleTypeDef *hospi) |
| Tx Transfer completed callback. More... | |
| void | HAL_OSPI_RxHalfCpltCallback (OSPI_HandleTypeDef *hospi) |
| Rx Half Transfer completed callback. More... | |
| void | HAL_OSPI_TxHalfCpltCallback (OSPI_HandleTypeDef *hospi) |
| Tx Half Transfer completed callback. More... | |
| void | HAL_OSPI_StatusMatchCallback (OSPI_HandleTypeDef *hospi) |
| Status Match callback. More... | |
| void | HAL_OSPI_TimeOutCallback (OSPI_HandleTypeDef *hospi) |
| Timeout callback. More... | |
| HAL_StatusTypeDef | HAL_OSPI_RegisterCallback (OSPI_HandleTypeDef *hospi, HAL_OSPI_CallbackIDTypeDef CallbackID, pOSPI_CallbackTypeDef pCallback) |
| Register a User OSPI Callback To be used instead of the weak (surcharged) predefined callback. More... | |
| HAL_StatusTypeDef | HAL_OSPI_UnRegisterCallback (OSPI_HandleTypeDef *hospi, HAL_OSPI_CallbackIDTypeDef CallbackID) |
| Unregister a User OSPI Callback OSPI Callback is redirected to the weak (surcharged) predefined callback. More... | |
OSPI Transmit/Receive functions.
===============================================================================
##### IO operation functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to :
(+) Handle the interrupts.
(+) Handle the command sequence (regular and Hyperbus).
(+) Handle the Hyperbus configuration.
(+) Transmit data in blocking, interrupt or DMA mode.
(+) Receive data in blocking, interrupt or DMA mode.
(+) Manage the auto-polling functional mode.
(+) Manage the memory-mapped functional mode. | __weak void HAL_OSPI_AbortCpltCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Abort completed callback.
| hospi | : OSPI handle |
| None |
Definition at line 1849 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_AutoPolling | ( | OSPI_HandleTypeDef * | hospi, |
| OSPI_AutoPollingTypeDef * | cfg, | ||
| uint32_t | Timeout | ||
| ) |
Configure the OSPI Automatic Polling Mode in blocking mode.
| hospi | : OSPI handle |
| cfg | : structure that contains the polling configuration information. |
| Timeout | : Timeout duration |
| HAL | status |
Definition at line 1627 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_AutoPolling_IT | ( | OSPI_HandleTypeDef * | hospi, |
| OSPI_AutoPollingTypeDef * | cfg | ||
| ) |
Configure the OSPI Automatic Polling Mode in non-blocking mode.
| hospi | : OSPI handle |
| cfg | : structure that contains the polling configuration information. |
| HAL | status |
Definition at line 1706 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_CmdCpltCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Command completed callback.
| hospi | : OSPI handle |
| None |
Definition at line 1879 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Command | ( | OSPI_HandleTypeDef * | hospi, |
| OSPI_RegularCmdTypeDef * | cmd, | ||
| uint32_t | Timeout | ||
| ) |
Set the command configuration.
| hospi | : OSPI handle |
| cmd | : structure that contains the command configuration information |
| Timeout | : Timeout duration |
| HAL | status |
Definition at line 750 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Command_IT | ( | OSPI_HandleTypeDef * | hospi, |
| OSPI_RegularCmdTypeDef * | cmd | ||
| ) |
Set the command configuration in interrupt mode.
| hospi | : OSPI handle |
| cmd | : structure that contains the command configuration information |
| HAL | status |
Definition at line 876 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_ErrorCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Transfer Error callback.
| hospi | : OSPI handle |
| None |
Definition at line 1834 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_FifoThresholdCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
FIFO Threshold callback.
| hospi | : OSPI handle |
| None |
Definition at line 1864 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_HyperbusCfg | ( | OSPI_HandleTypeDef * | hospi, |
| OSPI_HyperbusCfgTypeDef * | cfg, | ||
| uint32_t | Timeout | ||
| ) |
Configure the Hyperbus parameters.
| hospi | : OSPI handle |
| cfg | : Structure containing the Hyperbus configuration |
| Timeout | : Timeout duration |
| HAL | status |
Definition at line 966 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_HyperbusCmd | ( | OSPI_HandleTypeDef * | hospi, |
| OSPI_HyperbusCmdTypeDef * | cmd, | ||
| uint32_t | Timeout | ||
| ) |
Set the Hyperbus command configuration.
| hospi | : OSPI handle |
| cmd | : Structure containing the Hyperbus command |
| Timeout | : Timeout duration |
| HAL | status |
Definition at line 1013 of file stm32l4xx_hal_ospi.c.
| void HAL_OSPI_IRQHandler | ( | OSPI_HandleTypeDef * | hospi | ) |
Handle OSPI interrupt request.
| hospi | : OSPI handle |
| None |
Definition at line 519 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_MemoryMapped | ( | OSPI_HandleTypeDef * | hospi, |
| OSPI_MemoryMappedTypeDef * | cfg | ||
| ) |
Configure the Memory Mapped mode.
| hospi | : OSPI handle |
| cfg | : structure that contains the memory mapped configuration information. |
| HAL | status |
Definition at line 1781 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Receive | ( | OSPI_HandleTypeDef * | hospi, |
| uint8_t * | pData, | ||
| uint32_t | Timeout | ||
| ) |
Receive an amount of data in blocking mode.
| hospi | : OSPI handle |
| pData | : pointer to data buffer |
| Timeout | : Timeout duration |
| HAL | status |
Definition at line 1149 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Receive_DMA | ( | OSPI_HandleTypeDef * | hospi, |
| uint8_t * | pData | ||
| ) |
Receive an amount of data in non-blocking mode with DMA.
| hospi | : OSPI handle |
| pData | : pointer to data buffer. |
| HAL | status |
Definition at line 1487 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Receive_IT | ( | OSPI_HandleTypeDef * | hospi, |
| uint8_t * | pData | ||
| ) |
Receive an amount of data in non-blocking mode with interrupt.
| hospi | : OSPI handle |
| pData | : pointer to data buffer |
| HAL | status |
Definition at line 1291 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_RegisterCallback | ( | OSPI_HandleTypeDef * | hospi, |
| HAL_OSPI_CallbackIDTypeDef | CallbackID, | ||
| pOSPI_CallbackTypeDef | pCallback | ||
| ) |
Register a User OSPI Callback To be used instead of the weak (surcharged) predefined callback.
| hospi | : OSPI handle |
| CallbackID | : ID of the callback to be registered This parameter can be one of the following values:
|
| pCallback | : pointer to the Callback function |
| status |
Definition at line 2001 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_RxCpltCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Rx Transfer completed callback.
| hospi | : OSPI handle |
| None |
Definition at line 1894 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_RxHalfCpltCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Rx Half Transfer completed callback.
| hospi | : OSPI handle |
| None |
Definition at line 1924 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_StatusMatchCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Status Match callback.
| hospi | : OSPI handle |
| None |
Definition at line 1954 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_TimeOutCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Timeout callback.
| hospi | : OSPI handle |
| None |
Definition at line 1969 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Transmit | ( | OSPI_HandleTypeDef * | hospi, |
| uint8_t * | pData, | ||
| uint32_t | Timeout | ||
| ) |
Transmit an amount of data in blocking mode.
| hospi | : OSPI handle |
| pData | : pointer to data buffer |
| Timeout | : Timeout duration |
| HAL | status |
Definition at line 1075 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Transmit_DMA | ( | OSPI_HandleTypeDef * | hospi, |
| uint8_t * | pData | ||
| ) |
Send an amount of data in non-blocking mode with DMA.
| hospi | : OSPI handle |
| pData | : pointer to data buffer |
| HAL | status |
Definition at line 1364 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_Transmit_IT | ( | OSPI_HandleTypeDef * | hospi, |
| uint8_t * | pData | ||
| ) |
Send an amount of data in non-blocking mode with interrupt.
| hospi | : OSPI handle |
| pData | : pointer to data buffer |
| HAL | status |
Definition at line 1241 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_TxCpltCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Tx Transfer completed callback.
| hospi | : OSPI handle |
| None |
Definition at line 1909 of file stm32l4xx_hal_ospi.c.
| __weak void HAL_OSPI_TxHalfCpltCallback | ( | OSPI_HandleTypeDef * | hospi | ) |
Tx Half Transfer completed callback.
| hospi | : OSPI handle |
| None |
Definition at line 1939 of file stm32l4xx_hal_ospi.c.
| HAL_StatusTypeDef HAL_OSPI_UnRegisterCallback | ( | OSPI_HandleTypeDef * | hospi, |
| HAL_OSPI_CallbackIDTypeDef | CallbackID | ||
| ) |
Unregister a User OSPI Callback OSPI Callback is redirected to the weak (surcharged) predefined callback.
| hospi | : OSPI handle |
| CallbackID | : ID of the callback to be unregistered This parameter can be one of the following values:
|
| status |
Definition at line 2109 of file stm32l4xx_hal_ospi.c.