AnsweredAssumed Answered

unknown type name 'ADC_HandleTypeDef'

Question asked by Alexander Hoffman on Sep 20, 2017
Latest reply on Sep 21, 2017 by Alexander Hoffman

Hi,

 

I am trying to add the ADC handles into a struct that is in a seperate header file. For some reason I cannot get the ADC handles' typedef to be located after including  stm32f4xx_hal.h.

 

My struct looks is as follows 

 

typedef struct mouse_device{
   const ADC_HandleTypeDef* adc_x;
   const ADC_HandleTypeDef* adc_y;

   signed long x_cal;
   signed long y_cal;

   mouse_buf_t mouse_buf;
} mouse_device_t;

 

And at the top of the header I have only one include and that is #include "stm32f4xx_hal.h"

 

I am a little confused as to why it does not work as after tracing though the headers the stm32f4xx_hal leads to the adc header which contains the typedef.

Cheers

Outcomes