ADC
9.2
Analog to Digital Conversor library for the Teensy 3.1/3.2 microprocessor
|
Util functions for ino sketches and tests. More...
Functions | |
const char * | getConversionEnumStr (ADC_CONVERSION_SPEED conv_speed) |
Convert the conversion speed code to text. More... | |
const char * | getSamplingEnumStr (ADC_SAMPLING_SPEED samp_speed) |
Convert the sampling speed code to text. More... | |
const char * | getStringADCError (ADC_ERROR fail_flag) |
Converts the error code to text. More... | |
Variables | |
const uint8_t | averages_list [] = {1, 4, 8, 16, 32} |
List of possible averages. More... | |
const uint8_t | resolutions_list [] = {8, 10, 12, 16} |
List of possible resolutions. More... | |
const ADC_CONVERSION_SPEED | conversion_speed_list [] |
List of possible conversion speeds. More... | |
const ADC_SAMPLING_SPEED | sampling_speed_list [] |
List of possible sampling speeds. More... | |
Util functions for ino sketches and tests.
const char* ADC_util::getConversionEnumStr | ( | ADC_CONVERSION_SPEED | conv_speed | ) |
Convert the conversion speed code to text.
conv_speed | The conversion speed enum element |
Definition at line 53 of file ADC_util.h.
const char* ADC_util::getSamplingEnumStr | ( | ADC_SAMPLING_SPEED | samp_speed | ) |
Convert the sampling speed code to text.
samp_speed | The sampling speed enum element |
Definition at line 97 of file ADC_util.h.
const char* ADC_util::getStringADCError | ( | ADC_ERROR | fail_flag | ) |
Converts the error code to text.
fail_flag | The error code |
Definition at line 126 of file ADC_util.h.
const uint8_t ADC_util::averages_list[] = {1, 4, 8, 16, 32} |
List of possible averages.
Definition at line 160 of file ADC_util.h.
const ADC_CONVERSION_SPEED ADC_util::conversion_speed_list[] |
List of possible conversion speeds.
Definition at line 182 of file ADC_util.h.
const uint8_t ADC_util::resolutions_list[] = {8, 10, 12, 16} |
List of possible resolutions.
Definition at line 169 of file ADC_util.h.
const ADC_SAMPLING_SPEED ADC_util::sampling_speed_list[] |
List of possible sampling speeds.
Definition at line 210 of file ADC_util.h.