Configuration of ADC, groups regular/injected, channels parameters
1. กำหนดค่า the ADC parameters (resolution, data alignment, ...) and regular group parameters (conversion
trigger, sequencer, ...) โดยใช้ function HAL_ADC_Init().
2. กำหนดค่า the channels สำหรับ regular group parameters (channel number, channel rank ลงใน sequencer, ...,
ลงใน regular group) โดยใช้ function HAL_ADC_ConfigChannel().
3. เป็นทางเลือก, กำหนดค่า the injected group parameters (conversion trigger, sequencer, ..., of injected group) และ
the channels for injected group parameters (channel number, channel rank into sequencer, ..., into injected
group) โดยใช้ function HAL_ADCEx_InjectedConfigChannel().
4. เป็นทางเลือก, กำหนดค่า the analog watchdog parameters (channels monitored, thresholds, ...) โดยใช้ function
HAL_ADC_AnalogWDGConfig().
5. เป็นทางเลือก, สำหรับ devices ที่มีหลาย ADC instances: กำหนดค่า the multimode parameters โดยใช้ function
HAL_ADCEx_MultiModeConfigChannel().