cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_StatusTypeDef

Frank Singleton
Associate II
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

4 REPLIES 4
Khouloud GARSI
Lead II
Posted on June 05, 2017 at 10:37

Hi

b17flyboy

,

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

Khouloud.

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;

Posted on June 05, 2017 at 13:04

Hi Frank, 

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

Khouloud.

Zt Liu
Senior III
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!

🙂