Skip to main content
Frank Singleton
Associate
June 5, 2017
Question

HAL_StatusTypeDef

  • June 5, 2017
  • 2 replies
  • 11582 views
Posted on June 05, 2017 at 10:04

Hi,

Hopefully a simple question :)

Developing code on STM32F429. I have Cube installed on my Mac, running demo programs without issue.

I am after the definition of HAL_StatusTypeDef . Where is it defined (what file?).

I see it used in the APIs, but I cannot see it defined anywhere.

Example usage.

HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel)

Thanks / Frank

    This topic has been closed for replies.

    2 replies

    Khouloud GARSI
    Technical Moderator
    June 5, 2017
    Posted on June 05, 2017 at 10:37

    Hi

    b17flyboy

    ,

    The 'HAL_StatusTypeDef' is defined in 'stm32f4xx_hal_def.h' file.

    Khouloud.

    Frank Singleton
    Associate
    June 5, 2017
    Posted on June 05, 2017 at 12:26

    Ok, got it.

    /* Exported types ------------------------------------------------------------*/

    /**

      * @brief  HAL Status structures definition

      */

    typedef enum

    {

      HAL_OK       = 0x00U,

      HAL_ERROR    = 0x01U,

      HAL_BUSY     = 0x02U,

      HAL_TIMEOUT  = 0x03U

    } HAL_StatusTypeDef;

    Khouloud GARSI
    Technical Moderator
    June 5, 2017
    Posted on June 05, 2017 at 13:04

    Hi Frank, 

    https://community.st.com/0D50X00009bMM5DSAW

    Khouloud.

    Zt Liu
    Senior III
    June 5, 2017
    Posted on June 05, 2017 at 16:10

    if you are using ide like Keil MDK, 

    you can right click on some type or struct XXX that you're interested, 

    and click Go to definition of 'xxx',

    then you will jump to the definition.

    0690X00000602SuQAI.bmp

    you can find similar function in your ide.

    Good Luck!

    :)