Hi,
1. use Cube + HAL (best for beginning to do something...)
2. how to use the peripherals , just look in the HAL lib (in your generated project -> /Drivers/STM32xx_HAL_Driver/
then open , what you look for, here ADC : stm32xx_hal_adc.c .
Here you see all "standard" calls for this, e.g. HAL_ADC_Start(..) and short description:
/**
* @brief Enable ADC, start conversion of regular group.
* @note Interruptions enabled in this function: None.
* @note Case of multimode enabled (when multimode feature is available):
* if ADC is Slave, ADC is enabled but conversion is not started,
* if ADC is master, ADC is enabled and multimode conversion is started.
* @PAram hadc ADC handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef *hadc)
{
and also the variants, to use it with INT or DMA .
And you can search on github, many projects there, to get some "inspiration" .
(But dont expect click and ready examples, like on Arduino...)
If you feel a post has answered your question, please click on " Best Answer ".