What's handle on HAL (hardware abstraction layer) STM Cube MX ? Handle is often used several times. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

What's handle on HAL (hardware abstraction layer) STM Cube MX ? Handle is often used several times.

I think its like a pointer, a reference to memory. Is that right ?

20th Dec 2018, 11:50 AM
Pedro H.J
Pedro H.J - avatar
3 Answers
+ 9
https://visualgdb.com/tutorials/arm/stm32/adc/ Configuration ADC (analog digital converter): HAL_ADC_Init(&g_AdcHandle);
20th Dec 2018, 11:25 PM
Pedro H.J
Pedro H.J - avatar
+ 1
Can you give some code? It is a word that can be used as a data structure for handle resourcer and used for callbacks of interruptions.
20th Dec 2018, 10:59 PM
Erick Tornero
Erick Tornero - avatar
+ 1
In that case you can notice that definition : ADC_HandleTypeDef g_AdcHandle; That is a data structure for handle the ADC, here you give all configuration parameters of your ADC, this configuration is initialized with HAL_ADC_Init,
20th Dec 2018, 11:43 PM
Erick Tornero
Erick Tornero - avatar