ADC
8.0
Analog to Digital Conversor library for the Teensy 3.0 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. | |
const uint8_t | resolutions_list [] = {8, 10, 12, 16} |
List of possible resolutions. | |
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.
Convert the conversion speed code to text
conv_speed | The conversion speed code |
const char* ADC_util::getSamplingEnumStr | ( | ADC_SAMPLING_SPEED | samp_speed | ) |
Convert the sampling speed code to text.
Convert the sampling speed code to text
samp_speed | The sampling speed code |
const char* ADC_util::getStringADCError | ( | ADC_ERROR | fail_flag | ) |
Converts the error code to text.
Converts the error code to text.
fail_flag | The error code |
const ADC_CONVERSION_SPEED ADC_util::conversion_speed_list[] |
List of possible conversion speeds.
const ADC_SAMPLING_SPEED ADC_util::sampling_speed_list[] |
List of possible sampling speeds.