STM32G474xx HAL用户手册
宏定义
CORDIC错误码
CORDIC导出常量

宏定义

#define HAL_CORDIC_ERROR_NONE   ((uint32_t)0x00000000U)
#define HAL_CORDIC_ERROR_PARAM   ((uint32_t)0x00000001U)
#define HAL_CORDIC_ERROR_NOT_READY   ((uint32_t)0x00000002U)
#define HAL_CORDIC_ERROR_TIMEOUT   ((uint32_t)0x00000004U)
#define HAL_CORDIC_ERROR_DMA   ((uint32_t)0x00000008U)
#define HAL_CORDIC_ERROR_INVALID_CALLBACK   ((uint32_t)0x00000010U)

宏定义说明

#define HAL_CORDIC_ERROR_DMA   ((uint32_t)0x00000008U)

DMA错误

定义在第164行,文件stm32g4xx_hal_cordic.h中。

CORDIC_DMAError()HAL_CORDIC_Calculate_DMA()引用。

#define HAL_CORDIC_ERROR_INVALID_CALLBACK   ((uint32_t)0x00000010U)

无效回调错误

定义在第166行,文件stm32g4xx_hal_cordic.h中。

HAL_CORDIC_RegisterCallback()HAL_CORDIC_UnRegisterCallback()引用。

#define HAL_CORDIC_ERROR_NONE   ((uint32_t)0x00000000U)
#define HAL_CORDIC_ERROR_NOT_READY   ((uint32_t)0x00000002U)
#define HAL_CORDIC_ERROR_PARAM   ((uint32_t)0x00000001U)
#define HAL_CORDIC_ERROR_TIMEOUT   ((uint32_t)0x00000004U)

超时错误

定义在第163行,文件stm32g4xx_hal_cordic.h中。

HAL_CORDIC_Calculate()HAL_CORDIC_CalculateZO()引用。