STM32H735xx HAL User Manual
Functions
Initialization and de-initialization functions
CORDIC Exported Functions

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)

Detailed Description

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

    [..]


Function Documentation

HAL_StatusTypeDef HAL_CORDIC_DeInit ( CORDIC_HandleTypeDef hcordic)
HAL_StatusTypeDef HAL_CORDIC_Init ( CORDIC_HandleTypeDef hcordic)

DeInitialize the CORDIC MSP.

Parameters:
hcordicCORDIC handle
Return values:
None

Definition at line 340 of file stm32h7xx_hal_cordic.c.

Referenced by HAL_CORDIC_DeInit(), and HAL_CORDIC_UnRegisterCallback().

Initialize the CORDIC MSP.

Parameters:
hcordicCORDIC handle
Return values:
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.

Parameters:
hcordicpointer to a CORDIC_HandleTypeDef structure that contains the configuration information for CORDIC module
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values:
HALstatus

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.

Parameters:
hcordicpointer to a CORDIC_HandleTypeDef structure that contains the configuration information for CORDIC module
CallbackIDID of the callback to be unregistered This parameter can be one of the following values:
Return values:
HALstatus

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.