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 abbreviation | Summary |
---|---|
Start | API function to start AD conversion. |
Check | API function to check AD conversion status. |
Read | API function to read AD conversion values. |
Start, Check, Read | API function that starts AD conversion, waits until AD conversion is completed, and reads the AD conversion value. |
Check, Timeout | API 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.
