Name

adc_read16 — reads a 16-bit word from ADC

Synopsis

#include <adc.h>   
uint16_t adc_read16 (channel); 
uint8_t channel;
 

Arguments

channel

ADC channel to read

Description

Reads a 16-bit word from ADC. If the underlying ADC is not 16-bit the sample is scaled to 16-bits.