STM32H735xx HAL User Manual
|
Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_CORDIC_Init (CORDIC_HandleTypeDef *hcordic) |
Initialize the CORDIC peripheral and the associated handle. | |
HAL_StatusTypeDef | HAL_CORDIC_DeInit (CORDIC_HandleTypeDef *hcordic) |
DeInitialize the CORDIC peripheral. | |
__weak void | HAL_CORDIC_MspInit (CORDIC_HandleTypeDef *hcordic) |
Initialize the CORDIC MSP. | |
__weak void | HAL_CORDIC_MspDeInit (CORDIC_HandleTypeDef *hcordic) |
DeInitialize the CORDIC MSP. | |
HAL_StatusTypeDef | HAL_CORDIC_RegisterCallback (CORDIC_HandleTypeDef *hcordic, HAL_CORDIC_CallbackIDTypeDef CallbackID, void(*pCallback)(CORDIC_HandleTypeDef *_hcordic)) |
Register a CORDIC CallBack. | |
HAL_StatusTypeDef | HAL_CORDIC_UnRegisterCallback (CORDIC_HandleTypeDef *hcordic, HAL_CORDIC_CallbackIDTypeDef CallbackID) |
Unregister a CORDIC CallBack. | |
HAL_StatusTypeDef | HAL_CORDIC_RegisterCallback (CORDIC_HandleTypeDef *hcordic, HAL_CORDIC_CallbackIDTypeDef CallbackID, pCORDIC_CallbackTypeDef pCallback) |
Initialization and Configuration functions.
============================================================================== ##### Initialization and de-initialization functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize the CORDIC peripheral and the associated handle (+) DeInitialize the CORDIC peripheral (+) Initialize the CORDIC MSP (MCU Specific Package) (+) De-Initialize the CORDIC MSP [..]
HAL_StatusTypeDef HAL_CORDIC_DeInit | ( | CORDIC_HandleTypeDef * | hcordic | ) |
DeInitialize the CORDIC peripheral.
hcordic | pointer to a CORDIC_HandleTypeDef structure. |
HAL | status |
Definition at line 268 of file stm32h7xx_hal_cordic.c.
References assert_param, CORDIC_DMA_DIR_NONE, __CORDIC_HandleTypeDef::DMADirection, __CORDIC_HandleTypeDef::ErrorCode, HAL_CORDIC_ERROR_NONE, HAL_CORDIC_MspDeInit(), HAL_CORDIC_STATE_BUSY, HAL_CORDIC_STATE_RESET, __CORDIC_HandleTypeDef::Instance, __CORDIC_HandleTypeDef::Lock, __CORDIC_HandleTypeDef::MspDeInitCallback, __CORDIC_HandleTypeDef::NbCalcToGet, __CORDIC_HandleTypeDef::NbCalcToOrder, __CORDIC_HandleTypeDef::pInBuff, __CORDIC_HandleTypeDef::pOutBuff, and __CORDIC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CORDIC_Init | ( | CORDIC_HandleTypeDef * | hcordic | ) |
Initialize the CORDIC peripheral and the associated handle.
hcordic | pointer to a CORDIC_HandleTypeDef structure. |
HAL | status |
Definition at line 201 of file stm32h7xx_hal_cordic.c.
References assert_param, __CORDIC_HandleTypeDef::CalculateCpltCallback, CORDIC_DMA_DIR_NONE, __CORDIC_HandleTypeDef::DMADirection, __CORDIC_HandleTypeDef::ErrorCallback, __CORDIC_HandleTypeDef::ErrorCode, HAL_CORDIC_CalculateCpltCallback(), HAL_CORDIC_ERROR_NONE, HAL_CORDIC_ErrorCallback(), HAL_CORDIC_MspInit(), HAL_CORDIC_STATE_READY, HAL_CORDIC_STATE_RESET, __CORDIC_HandleTypeDef::Instance, __CORDIC_HandleTypeDef::Lock, __CORDIC_HandleTypeDef::MspInitCallback, __CORDIC_HandleTypeDef::NbCalcToGet, __CORDIC_HandleTypeDef::NbCalcToOrder, __CORDIC_HandleTypeDef::pInBuff, __CORDIC_HandleTypeDef::pOutBuff, and __CORDIC_HandleTypeDef::State.
void HAL_CORDIC_MspDeInit | ( | CORDIC_HandleTypeDef * | hcordic | ) |
DeInitialize the CORDIC MSP.
hcordic | CORDIC handle |
None |
Definition at line 340 of file stm32h7xx_hal_cordic.c.
Referenced by HAL_CORDIC_DeInit(), and HAL_CORDIC_UnRegisterCallback().
void HAL_CORDIC_MspInit | ( | CORDIC_HandleTypeDef * | hcordic | ) |
Initialize the CORDIC MSP.
hcordic | CORDIC handle |
None |
Definition at line 325 of file stm32h7xx_hal_cordic.c.
Referenced by HAL_CORDIC_Init(), and HAL_CORDIC_UnRegisterCallback().
HAL_StatusTypeDef HAL_CORDIC_RegisterCallback | ( | CORDIC_HandleTypeDef * | hcordic, |
HAL_CORDIC_CallbackIDTypeDef | CallbackID, | ||
void(*)(CORDIC_HandleTypeDef *_hcordic) | pCallback | ||
) |
Register a CORDIC CallBack.
To be used instead of the weak predefined callback.
hcordic | pointer to a CORDIC_HandleTypeDef structure that contains the configuration information for CORDIC module |
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 365 of file stm32h7xx_hal_cordic.c.
References __CORDIC_HandleTypeDef::CalculateCpltCallback, __CORDIC_HandleTypeDef::ErrorCallback, __CORDIC_HandleTypeDef::ErrorCode, HAL_CORDIC_CALCULATE_CPLT_CB_ID, HAL_CORDIC_ERROR_CB_ID, HAL_CORDIC_ERROR_INVALID_CALLBACK, HAL_CORDIC_MSPDEINIT_CB_ID, HAL_CORDIC_MSPINIT_CB_ID, HAL_CORDIC_STATE_READY, HAL_CORDIC_STATE_RESET, __CORDIC_HandleTypeDef::MspDeInitCallback, __CORDIC_HandleTypeDef::MspInitCallback, and __CORDIC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CORDIC_RegisterCallback | ( | CORDIC_HandleTypeDef * | hcordic, |
HAL_CORDIC_CallbackIDTypeDef | CallbackID, | ||
pCORDIC_CallbackTypeDef | pCallback | ||
) |
HAL_StatusTypeDef HAL_CORDIC_UnRegisterCallback | ( | CORDIC_HandleTypeDef * | hcordic, |
HAL_CORDIC_CallbackIDTypeDef | CallbackID | ||
) |
Unregister a CORDIC CallBack.
CORDIC callback is redirected to the weak predefined callback.
hcordic | pointer to a CORDIC_HandleTypeDef structure that contains the configuration information for CORDIC module |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
HAL | status |
Definition at line 456 of file stm32h7xx_hal_cordic.c.
References __CORDIC_HandleTypeDef::CalculateCpltCallback, __CORDIC_HandleTypeDef::ErrorCallback, __CORDIC_HandleTypeDef::ErrorCode, HAL_CORDIC_CALCULATE_CPLT_CB_ID, HAL_CORDIC_CalculateCpltCallback(), HAL_CORDIC_ERROR_CB_ID, HAL_CORDIC_ERROR_INVALID_CALLBACK, HAL_CORDIC_ErrorCallback(), HAL_CORDIC_MspDeInit(), HAL_CORDIC_MSPDEINIT_CB_ID, HAL_CORDIC_MspInit(), HAL_CORDIC_MSPINIT_CB_ID, HAL_CORDIC_STATE_READY, HAL_CORDIC_STATE_RESET, __CORDIC_HandleTypeDef::MspDeInitCallback, __CORDIC_HandleTypeDef::MspInitCallback, and __CORDIC_HandleTypeDef::State.