Various HAL API functions (ADC version)

This post introduces the API functions used to read ADC values at each HAL.

API functions for reading ADC values are classified as follows.

Classification abbreviationSummary
StartAPI function to start AD conversion.
CheckAPI function to check AD conversion status.
ReadAPI function to read AD conversion values.
Start, Check, ReadAPI function that starts AD conversion, waits until AD conversion is completed, and reads the AD conversion value.
Check, TimeoutAPI function that measures timeout and waits for AD conversion to complete.

The HAL we present here is the next HAL.

  • Arduino 1.8.6
  • Debian(Linux) v2022.04
  • ModusToolbox HAL Cat1 2.4.3
  • MCUXpresso SDK iMXRT1051B_1052B ksdk2_0
  • Renesas SSP 2.4.0
  • STM32Cube FW_F4 V1.27.1

HAL API functions have various features, such as easy-to-use functions, real-time functions, and functions with a timeout function to prevent infinite loops due to ADC failure.Please select the HAL that best suits your product.

OSS-ECAL English
error: Content is protected !!