Contiki 2.6

adc.c File Reference

Functions to control the ADC of the MCU. More...

#include "adc.h"

Go to the source code of this file.

Functions

int adc_init (adc_chan_t chan, adc_trig_t trig, adc_ref_t ref, adc_ps_t prescale)
 This function will init the ADC with the following parameters.
void adc_deinit (void)
 This will disable the adc.
int adc_conversion_start (void)
 This will start an ADC conversion.
int16_t adc_result_get (adc_adj_t adjust)
 This will read the ADC result during the ADC conversion and return the raw ADC conversion result.

Detailed Description

Functions to control the ADC of the MCU.

This is used to read the joystick.

Author:
Mike Vidales mavida404@gmail.com

Definition in file adc.c.