Ref::ADC

Leo Selavo edited this page Jan 14, 2016 · 3 revisions

Analog to Digital Converter (ADC) allows reading an analog, for example, sensor signal or battery voltage and converting it to a digital form.

Location

Functions

  • Turn ADC on
void adcOn(void)
  • Turn ADC off
void adcOff(void)
  • Read a specific ADC channel
uint16_t adcRead(uint8_t channel)
  • Set a specifc ADC channel as the currently active
void adcSetChannel(uint8_t channel)
  • Read the currently active ADC channel (must be selected with adcSetChannel()!)
uint16_t adcReadFast(void)
  • Get the number of total ADC channels
uint_t adcGetChannelCount(void)
  • Init the ADC (done by the kernel)
void adcInit(void)

Example

An example is the PrintADC demo application: MasnOS/apps/demo/PrintADC

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.