STM32H735xx HAL User Manual
|
Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_PSSI_Init (PSSI_HandleTypeDef *hpssi) |
Initializes the PSSI according to the specified parameters in the PSSI_InitTypeDef and initialize the associated handle. | |
HAL_StatusTypeDef | HAL_PSSI_DeInit (PSSI_HandleTypeDef *hpssi) |
DeInitialize the PSSI peripheral. | |
__weak void | HAL_PSSI_MspInit (PSSI_HandleTypeDef *hpssi) |
Initialize the PSSI MSP. | |
__weak void | HAL_PSSI_MspDeInit (PSSI_HandleTypeDef *hpssi) |
DeInitialize the PSSI MSP. | |
HAL_StatusTypeDef | HAL_PSSI_RegisterCallback (PSSI_HandleTypeDef *hpssi, HAL_PSSI_CallbackIDTypeDef CallbackID, pPSSI_CallbackTypeDef pCallback) |
Register a User PSSI Callback To be used instead of the weak predefined callback. | |
HAL_StatusTypeDef | HAL_PSSI_UnRegisterCallback (PSSI_HandleTypeDef *hpssi, HAL_PSSI_CallbackIDTypeDef CallbackID) |
Unregister an PSSI Callback PSSI callback is redirected to the weak predefined callback. |
Initialization and Configuration functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to initialize and deinitialize the PSSIx peripheral: (+) User must implement HAL_PSSI_MspInit() function in which he configures all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC ). (+) Call the function HAL_PSSI_Init() to configure the selected device with the selected configuration: (++) Data Width (++) Control Signals (++) Input Clock polarity (++) Output Clock polarity (+) Call the function HAL_PSSI_DeInit() to restore the default configuration of the selected PSSIx peripheral.
HAL_StatusTypeDef HAL_PSSI_DeInit | ( | PSSI_HandleTypeDef * | hpssi | ) |
DeInitialize the PSSI peripheral.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
HAL | status |
Definition at line 299 of file stm32h7xx_hal_pssi.c.
References assert_param, __PSSI_HandleTypeDef::ErrorCode, HAL_PSSI_DISABLE, HAL_PSSI_ERROR_NONE, HAL_PSSI_MspDeInit(), HAL_PSSI_STATE_BUSY, HAL_PSSI_STATE_RESET, __PSSI_HandleTypeDef::Instance, __PSSI_HandleTypeDef::MspDeInitCallback, and __PSSI_HandleTypeDef::State.
HAL_StatusTypeDef HAL_PSSI_Init | ( | PSSI_HandleTypeDef * | hpssi | ) |
Initializes the PSSI according to the specified parameters in the PSSI_InitTypeDef and initialize the associated handle.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
HAL | status |
Definition at line 239 of file stm32h7xx_hal_pssi.c.
References __PSSI_HandleTypeDef::AbortCpltCallback, assert_param, PSSI_InitTypeDef::BusWidth, PSSI_InitTypeDef::ClockPolarity, PSSI_InitTypeDef::ControlSignal, PSSI_InitTypeDef::DataEnablePolarity, __PSSI_HandleTypeDef::ErrorCallback, __PSSI_HandleTypeDef::ErrorCode, HAL_PSSI_AbortCpltCallback(), HAL_PSSI_DISABLE, HAL_PSSI_ERROR_NONE, HAL_PSSI_ErrorCallback(), HAL_PSSI_MspInit(), HAL_PSSI_RxCpltCallback(), HAL_PSSI_STATE_BUSY, HAL_PSSI_STATE_READY, HAL_PSSI_STATE_RESET, HAL_PSSI_TxCpltCallback(), __PSSI_HandleTypeDef::Init, __PSSI_HandleTypeDef::Instance, IS_PSSI_BUSWIDTH, IS_PSSI_CLOCK_POLARITY, IS_PSSI_CONTROL_SIGNAL, IS_PSSI_DE_POLARITY, IS_PSSI_RDY_POLARITY, __PSSI_HandleTypeDef::Lock, __PSSI_HandleTypeDef::MspInitCallback, PSSI_InitTypeDef::ReadyPolarity, __PSSI_HandleTypeDef::RxCpltCallback, __PSSI_HandleTypeDef::State, and __PSSI_HandleTypeDef::TxCpltCallback.
void HAL_PSSI_MspDeInit | ( | PSSI_HandleTypeDef * | hpssi | ) |
DeInitialize the PSSI MSP.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
None |
Definition at line 354 of file stm32h7xx_hal_pssi.c.
Referenced by HAL_PSSI_DeInit(), and HAL_PSSI_UnRegisterCallback().
void HAL_PSSI_MspInit | ( | PSSI_HandleTypeDef * | hpssi | ) |
Initialize the PSSI MSP.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
None |
Definition at line 338 of file stm32h7xx_hal_pssi.c.
Referenced by HAL_PSSI_Init(), and HAL_PSSI_UnRegisterCallback().
HAL_StatusTypeDef HAL_PSSI_RegisterCallback | ( | PSSI_HandleTypeDef * | hpssi, |
HAL_PSSI_CallbackIDTypeDef | CallbackID, | ||
pPSSI_CallbackTypeDef | pCallback | ||
) |
Register a User PSSI Callback To be used instead of the weak predefined callback.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
HAL | status |
Definition at line 380 of file stm32h7xx_hal_pssi.c.
References __PSSI_HandleTypeDef::AbortCpltCallback, __PSSI_HandleTypeDef::ErrorCallback, __PSSI_HandleTypeDef::ErrorCode, HAL_PSSI_ABORT_CB_ID, HAL_PSSI_ERROR_CB_ID, HAL_PSSI_ERROR_INVALID_CALLBACK, HAL_PSSI_MSPDEINIT_CB_ID, HAL_PSSI_MSPINIT_CB_ID, HAL_PSSI_RX_COMPLETE_CB_ID, HAL_PSSI_STATE_READY, HAL_PSSI_STATE_RESET, HAL_PSSI_TX_COMPLETE_CB_ID, __PSSI_HandleTypeDef::MspDeInitCallback, __PSSI_HandleTypeDef::MspInitCallback, __PSSI_HandleTypeDef::RxCpltCallback, __PSSI_HandleTypeDef::State, and __PSSI_HandleTypeDef::TxCpltCallback.
HAL_StatusTypeDef HAL_PSSI_UnRegisterCallback | ( | PSSI_HandleTypeDef * | hpssi, |
HAL_PSSI_CallbackIDTypeDef | CallbackID | ||
) |
Unregister an PSSI Callback PSSI callback is redirected to the weak predefined callback.
hpssi | Pointer to a PSSI_HandleTypeDef structure that contains the configuration information for the specified PSSI. |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
HAL | status |
Definition at line 481 of file stm32h7xx_hal_pssi.c.
References __PSSI_HandleTypeDef::AbortCpltCallback, __PSSI_HandleTypeDef::ErrorCallback, __PSSI_HandleTypeDef::ErrorCode, HAL_PSSI_ABORT_CB_ID, HAL_PSSI_AbortCpltCallback(), HAL_PSSI_ERROR_CB_ID, HAL_PSSI_ERROR_INVALID_CALLBACK, HAL_PSSI_ErrorCallback(), HAL_PSSI_MspDeInit(), HAL_PSSI_MSPDEINIT_CB_ID, HAL_PSSI_MspInit(), HAL_PSSI_MSPINIT_CB_ID, HAL_PSSI_RX_COMPLETE_CB_ID, HAL_PSSI_RxCpltCallback(), HAL_PSSI_STATE_READY, HAL_PSSI_STATE_RESET, HAL_PSSI_TX_COMPLETE_CB_ID, HAL_PSSI_TxCpltCallback(), __PSSI_HandleTypeDef::MspDeInitCallback, __PSSI_HandleTypeDef::MspInitCallback, __PSSI_HandleTypeDef::RxCpltCallback, __PSSI_HandleTypeDef::State, and __PSSI_HandleTypeDef::TxCpltCallback.