STM32H735xx HAL User Manual
|
Data transfers functions. More...
Functions | |
HAL_StatusTypeDef | HAL_PSSI_Transmit (PSSI_HandleTypeDef *hpssi, uint8_t *pData, uint32_t Size, uint32_t Timeout) |
Transmits in master mode an amount of data in blocking mode. | |
HAL_StatusTypeDef | HAL_PSSI_Receive (PSSI_HandleTypeDef *hpssi, uint8_t *pData, uint32_t Size, uint32_t Timeout) |
Receives an amount of data in blocking mode. | |
HAL_StatusTypeDef | HAL_PSSI_Transmit_DMA (PSSI_HandleTypeDef *hpssi, uint32_t *pData, uint32_t Size) |
Transmit an amount of data in non-blocking mode with DMA. | |
HAL_StatusTypeDef | HAL_PSSI_Receive_DMA (PSSI_HandleTypeDef *hpssi, uint32_t *pData, uint32_t Size) |
Receive an amount of data in non-blocking mode with DMA. | |
HAL_StatusTypeDef | HAL_PSSI_Abort_DMA (PSSI_HandleTypeDef *hpssi) |
Abort a DMA process communication with Interrupt. | |
void | HAL_PSSI_IRQHandler (PSSI_HandleTypeDef *hpssi) |
This function handles PSSI event interrupt request. |
Data transfers functions.
=============================================================================== ##### IO operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the PSSI data transfers. (#) There are two modes of transfer: (++) Blocking mode : The communication is performed in the polling mode. The status of all data processing is returned by the same function after finishing transfer. (++) No-Blocking mode : The communication is performed using DMA. These functions return the status of the transfer startup. The end of the data processing will be indicated through the dedicated the DMA IRQ . (#) Blocking mode functions are : (++) HAL_PSSI_Transmit() (++) HAL_PSSI_Receive() (#) No-Blocking mode functions with DMA are : (++) HAL_PSSI_Transmit_DMA() (++) HAL_PSSI_Receive_DMA() (#) A set of Transfer Complete Callbacks are provided in non Blocking mode: (++) HAL_PSSI_TxCpltCallback() (++) HAL_PSSI_RxCpltCallback() (++) HAL_PSSI_ErrorCallback() (++) HAL_PSSI_AbortCpltCallback()
HAL_StatusTypeDef HAL_PSSI_Abort_DMA | ( | PSSI_HandleTypeDef * | hpssi | ) |
Abort a DMA process communication with Interrupt.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
HAL | status |
Definition at line 1194 of file stm32h7xx_hal_pssi.c.
References __PSSI_HandleTypeDef::ErrorCallback, HAL_DMA_Abort_IT(), HAL_PSSI_DISABLE_IT, HAL_PSSI_ENABLE_IT, HAL_PSSI_STATE_ABORT, HAL_PSSI_STATE_BUSY_RX, HAL_PSSI_STATE_BUSY_TX, __PSSI_HandleTypeDef::hdmarx, __PSSI_HandleTypeDef::hdmatx, __PSSI_HandleTypeDef::Instance, PSSI_DMAAbort(), PSSI_FLAG_OVR_RIS, __PSSI_HandleTypeDef::State, and __DMA_HandleTypeDef::XferAbortCallback.
void HAL_PSSI_IRQHandler | ( | PSSI_HandleTypeDef * | hpssi | ) |
This function handles PSSI event interrupt request.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
None |
Definition at line 1283 of file stm32h7xx_hal_pssi.c.
References __PSSI_HandleTypeDef::AbortCpltCallback, __PSSI_HandleTypeDef::ErrorCallback, __PSSI_HandleTypeDef::ErrorCode, HAL_DMA_Abort_IT(), HAL_PSSI_DISABLE_IT, HAL_PSSI_ERROR_OVER_RUN, HAL_PSSI_ERROR_UNDER_RUN, HAL_PSSI_GET_FLAG, HAL_PSSI_STATE_ABORT, HAL_PSSI_STATE_BUSY_RX, HAL_PSSI_STATE_BUSY_TX, HAL_PSSI_STATE_READY, __PSSI_HandleTypeDef::hdmarx, __PSSI_HandleTypeDef::hdmatx, __PSSI_HandleTypeDef::Instance, PSSI_DMAAbort(), PSSI_FLAG_OVR_MIS, PSSI_FLAG_OVR_RIS, __PSSI_HandleTypeDef::State, __DMA_HandleTypeDef::XferAbortCallback, and __PSSI_HandleTypeDef::XferCount.
HAL_StatusTypeDef HAL_PSSI_Receive | ( | PSSI_HandleTypeDef * | hpssi, |
uint8_t * | pData, | ||
uint32_t | Size, | ||
uint32_t | Timeout | ||
) |
Receives an amount of data in blocking mode.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
pData | Pointer to data buffer |
Size | Amount of data to be received (in bytes) |
Timeout | Timeout duration |
HAL | status |
Definition at line 771 of file stm32h7xx_hal_pssi.c.
References PSSI_InitTypeDef::BusWidth, PSSI_InitTypeDef::ClockPolarity, PSSI_InitTypeDef::DataWidth, __PSSI_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_PSSI_16BITS, HAL_PSSI_32BITS, HAL_PSSI_8BITS, HAL_PSSI_8LINES, HAL_PSSI_CLEAR_FLAG, HAL_PSSI_DISABLE, HAL_PSSI_ENABLE, HAL_PSSI_ERROR_NONE, HAL_PSSI_ERROR_NOT_SUPPORTED, HAL_PSSI_ERROR_OVER_RUN, HAL_PSSI_ERROR_TIMEOUT, HAL_PSSI_FALLING_EDGE, HAL_PSSI_GET_FLAG, HAL_PSSI_STATE_BUSY, HAL_PSSI_STATE_READY, __PSSI_HandleTypeDef::Init, __PSSI_HandleTypeDef::Instance, __PCD_HandleTypeDef::pData, PSSI_CR_DMA_DISABLE, PSSI_CR_OUTEN_INPUT, PSSI_FLAG_OVR_RIS, PSSI_FLAG_RTT1B, PSSI_FLAG_RTT4B, PSSI_WaitOnStatusUntilTimeout(), and __PSSI_HandleTypeDef::State.
HAL_StatusTypeDef HAL_PSSI_Receive_DMA | ( | PSSI_HandleTypeDef * | hpssi, |
uint32_t * | pData, | ||
uint32_t | Size | ||
) |
Receive an amount of data in non-blocking mode with DMA.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
pData | Pointer to data buffer |
Size | Amount of data to be received (in bytes) |
HAL | status |
Definition at line 1062 of file stm32h7xx_hal_pssi.c.
References PSSI_InitTypeDef::BusWidth, PSSI_InitTypeDef::ClockPolarity, DMA_PDATAALIGN_BYTE, __PSSI_HandleTypeDef::ErrorCode, HAL_DMA_Start_IT(), HAL_PSSI_DISABLE, HAL_PSSI_ENABLE, HAL_PSSI_ENABLE_IT, HAL_PSSI_ERROR_DMA, HAL_PSSI_ERROR_NONE, HAL_PSSI_RISING_EDGE, HAL_PSSI_STATE_BUSY_RX, HAL_PSSI_STATE_READY, __PSSI_HandleTypeDef::hdmarx, __PSSI_HandleTypeDef::hdmatx, __PSSI_HandleTypeDef::Init, __DMA_HandleTypeDef::Init, __PSSI_HandleTypeDef::Instance, __PSSI_HandleTypeDef::pBuffPtr, __PCD_HandleTypeDef::pData, DMA_InitTypeDef::PeriphDataAlignment, PSSI_CR_DMA_ENABLE, PSSI_DMAError(), PSSI_DMAReceiveCplt(), PSSI_FLAG_OVR_RIS, PSSI_MAX_NBYTE_SIZE, __PSSI_HandleTypeDef::State, __DMA_HandleTypeDef::XferAbortCallback, __PSSI_HandleTypeDef::XferCount, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, __DMA_HandleTypeDef::XferHalfCpltCallback, and __PSSI_HandleTypeDef::XferSize.
HAL_StatusTypeDef HAL_PSSI_Transmit | ( | PSSI_HandleTypeDef * | hpssi, |
uint8_t * | pData, | ||
uint32_t | Size, | ||
uint32_t | Timeout | ||
) |
Transmits in master mode an amount of data in blocking mode.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
pData | Pointer to data buffer |
Size | Amount of data to be sent (in bytes) |
Timeout | Timeout duration |
HAL | status |
Definition at line 612 of file stm32h7xx_hal_pssi.c.
References PSSI_InitTypeDef::BusWidth, PSSI_InitTypeDef::ClockPolarity, PSSI_InitTypeDef::DataWidth, __PSSI_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_PSSI_16BITS, HAL_PSSI_32BITS, HAL_PSSI_8BITS, HAL_PSSI_8LINES, HAL_PSSI_CLEAR_FLAG, HAL_PSSI_DISABLE, HAL_PSSI_ENABLE, HAL_PSSI_ERROR_NONE, HAL_PSSI_ERROR_NOT_SUPPORTED, HAL_PSSI_ERROR_TIMEOUT, HAL_PSSI_ERROR_UNDER_RUN, HAL_PSSI_GET_FLAG, HAL_PSSI_RISING_EDGE, HAL_PSSI_STATE_BUSY, HAL_PSSI_STATE_READY, __PSSI_HandleTypeDef::Init, __PSSI_HandleTypeDef::Instance, __PCD_HandleTypeDef::pData, PSSI_CR_DMA_DISABLE, PSSI_CR_OUTEN_OUTPUT, PSSI_FLAG_OVR_RIS, PSSI_FLAG_RTT1B, PSSI_FLAG_RTT4B, PSSI_WaitOnStatusUntilTimeout(), and __PSSI_HandleTypeDef::State.
HAL_StatusTypeDef HAL_PSSI_Transmit_DMA | ( | PSSI_HandleTypeDef * | hpssi, |
uint32_t * | pData, | ||
uint32_t | Size | ||
) |
Transmit an amount of data in non-blocking mode with DMA.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
pData | Pointer to data buffer |
Size | Amount of data to be sent (in bytes) |
HAL | status |
Definition at line 924 of file stm32h7xx_hal_pssi.c.
References PSSI_InitTypeDef::BusWidth, PSSI_InitTypeDef::ClockPolarity, DMA_PDATAALIGN_BYTE, __PSSI_HandleTypeDef::ErrorCode, HAL_DMA_Start_IT(), HAL_PSSI_DISABLE, HAL_PSSI_ENABLE, HAL_PSSI_ENABLE_IT, HAL_PSSI_ERROR_DMA, HAL_PSSI_ERROR_NONE, HAL_PSSI_RISING_EDGE, HAL_PSSI_STATE_BUSY_TX, HAL_PSSI_STATE_READY, __PSSI_HandleTypeDef::hdmatx, __PSSI_HandleTypeDef::Init, __DMA_HandleTypeDef::Init, __PSSI_HandleTypeDef::Instance, __PSSI_HandleTypeDef::pBuffPtr, __PCD_HandleTypeDef::pData, DMA_InitTypeDef::PeriphDataAlignment, PSSI_CR_DMA_ENABLE, PSSI_CR_OUTEN_OUTPUT, PSSI_DMAError(), PSSI_DMATransmitCplt(), PSSI_FLAG_OVR_RIS, PSSI_MAX_NBYTE_SIZE, __PSSI_HandleTypeDef::State, __DMA_HandleTypeDef::XferAbortCallback, __PSSI_HandleTypeDef::XferCount, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, __DMA_HandleTypeDef::XferHalfCpltCallback, and __PSSI_HandleTypeDef::XferSize.