Skip to content

Reference_Generic_ADC

jsnyder edited this page Sep 30, 2010 · 2 revisions

Overview

This module contains functions that access analog to digital converter (ADC) peripherals.

When utilizing this module, acquiring ADC data is a two step process: requesting sample conversions (using adc.sample) and extraction of conversion results from a conversion buffer (using adc.getsample, adc.getsamples or adc.insertsamples). Various configuration parameters are available to set conversion rate, how results are extracted from the buffer and how these results are processed prior to extraction.

This module can be utilized if the device in use has a supported ADC peripheral (see for details) and if ADC functionality is enabled at build time (see ).

Functions

adc.sample( id, count )

Clone this wiki locally