aversive_10-03-12/modules/hardware/adc/adc_archs.h File Reference

#include <autoconf.h>

Go to the source code of this file.

Defines

#define MUX5_MASK_IN_CONFIG   (1<<MUX5)
#define ADLAR_MASK_IN_CONFIG   (1<<ADLAR)
#define ADFR   ADATE
#define ADC_REF_AREF   (0 << REFS0)
#define ADC_REF_AVCC   (1 << REFS0)
#define ADC_REF_VREF2   (2 << REFS0)
#define ADC_REF_VREF   (3 << REFS0)
#define MUX_ADC0   (0 <<MUX0)
#define MUX_ADC1   (1 <<MUX0)
#define MUX_ADC2   (2 <<MUX0)
#define MUX_ADC3   (3 <<MUX0)
#define MUX_ADC4   (4 <<MUX0)
#define MUX_ADC5   (5 <<MUX0)
#define MUX_ADC6   (6 <<MUX0)
#define MUX_ADC7   (7 <<MUX0)
#define MUX_ADC0_ADC0_GAIN10   ((0x8 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC1_ADC0_GAIN10   ((0x9 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC0_ADC0_GAIN200   ((0xA <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC1_ADC0_GAIN200   ((0xB <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC2_ADC2_GAIN10   ((0xC <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC3_ADC2_GAIN10   ((0xD <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC2_ADC2_GAIN200   ((0xE <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC3_ADC2_GAIN200   ((0xF <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC0_ADC1   ((0x10 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC1_ADC1   ((0x11 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC2_ADC1   ((0x12 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC3_ADC1   ((0x13 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC4_ADC1   ((0x14 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC5_ADC1   ((0x15 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC6_ADC1   ((0x16 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC7_ADC1   ((0x17 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC0_ADC2   ((0x18 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC1_ADC2   ((0x19 <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC2_ADC2   ((0x1A <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC3_ADC2   ((0x1B <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC4_ADC2   ((0x1C <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC5_ADC2   ((0x1D <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC6_ADC2   ((0x1E <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_ADC7_ADC2   ((0x1F <<MUX0) | ADC_RESULT_SIGNED )
#define MUX_VBG   (0x1E <<MUX0)
#define MUX_GND   (0x1F <<MUX0)
#define ADC_PRESCALE   0


Define Documentation

#define ADC_PRESCALE   0

Definition at line 389 of file adc_archs.h.

Referenced by adc_init().

#define ADC_REF_AREF   (0 << REFS0)

Definition at line 164 of file adc_archs.h.

#define ADC_REF_AVCC   (1 << REFS0)

Definition at line 165 of file adc_archs.h.

#define ADC_REF_VREF   (3 << REFS0)

Definition at line 167 of file adc_archs.h.

#define ADC_REF_VREF2   (2 << REFS0)

Definition at line 166 of file adc_archs.h.

#define ADFR   ADATE

Definition at line 142 of file adc_archs.h.

Referenced by adc_get_value(), and adc_launch().

#define ADLAR_MASK_IN_CONFIG   (1<<ADLAR)

Definition at line 88 of file adc_archs.h.

#define MUX5_MASK_IN_CONFIG   (1<<MUX5)

this file contains definitions for following configuration constants :

ADC_REF_xxx : selection of a reference source

MUX_xxx : selection options for the analog input multiplexerof the ADC

prescaler : selected automatically with your clock setting.

Definition at line 87 of file adc_archs.h.

Referenced by adc_launch().

#define MUX_ADC0   (0 <<MUX0)

standard MUX table. if variations, please define MUX_NON_STD in your device specificity

Todo:
: finish implmentation fully

Definition at line 306 of file adc_archs.h.

#define MUX_ADC0_ADC0_GAIN10   ((0x8 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 316 of file adc_archs.h.

#define MUX_ADC0_ADC0_GAIN200   ((0xA <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 318 of file adc_archs.h.

#define MUX_ADC0_ADC1   ((0x10 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 328 of file adc_archs.h.

#define MUX_ADC0_ADC2   ((0x18 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 337 of file adc_archs.h.

#define MUX_ADC1   (1 <<MUX0)

Definition at line 307 of file adc_archs.h.

#define MUX_ADC1_ADC0_GAIN10   ((0x9 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 317 of file adc_archs.h.

#define MUX_ADC1_ADC0_GAIN200   ((0xB <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 319 of file adc_archs.h.

#define MUX_ADC1_ADC1   ((0x11 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 329 of file adc_archs.h.

#define MUX_ADC1_ADC2   ((0x19 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 338 of file adc_archs.h.

#define MUX_ADC2   (2 <<MUX0)

Definition at line 308 of file adc_archs.h.

#define MUX_ADC2_ADC1   ((0x12 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 330 of file adc_archs.h.

#define MUX_ADC2_ADC2   ((0x1A <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 339 of file adc_archs.h.

#define MUX_ADC2_ADC2_GAIN10   ((0xC <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 321 of file adc_archs.h.

#define MUX_ADC2_ADC2_GAIN200   ((0xE <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 323 of file adc_archs.h.

#define MUX_ADC3   (3 <<MUX0)

Definition at line 309 of file adc_archs.h.

#define MUX_ADC3_ADC1   ((0x13 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 331 of file adc_archs.h.

#define MUX_ADC3_ADC2   ((0x1B <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 340 of file adc_archs.h.

#define MUX_ADC3_ADC2_GAIN10   ((0xD <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 322 of file adc_archs.h.

#define MUX_ADC3_ADC2_GAIN200   ((0xF <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 324 of file adc_archs.h.

#define MUX_ADC4   (4 <<MUX0)

Definition at line 310 of file adc_archs.h.

#define MUX_ADC4_ADC1   ((0x14 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 332 of file adc_archs.h.

#define MUX_ADC4_ADC2   ((0x1C <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 341 of file adc_archs.h.

#define MUX_ADC5   (5 <<MUX0)

Definition at line 311 of file adc_archs.h.

#define MUX_ADC5_ADC1   ((0x15 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 333 of file adc_archs.h.

#define MUX_ADC5_ADC2   ((0x1D <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 342 of file adc_archs.h.

#define MUX_ADC6   (6 <<MUX0)

Definition at line 312 of file adc_archs.h.

#define MUX_ADC6_ADC1   ((0x16 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 334 of file adc_archs.h.

#define MUX_ADC6_ADC2   ((0x1E <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 343 of file adc_archs.h.

#define MUX_ADC7   (7 <<MUX0)

Definition at line 313 of file adc_archs.h.

#define MUX_ADC7_ADC1   ((0x17 <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 335 of file adc_archs.h.

#define MUX_ADC7_ADC2   ((0x1F <<MUX0) | ADC_RESULT_SIGNED )

Definition at line 344 of file adc_archs.h.

#define MUX_GND   (0x1F <<MUX0)

Definition at line 349 of file adc_archs.h.

#define MUX_VBG   (0x1E <<MUX0)

Definition at line 348 of file adc_archs.h.


Generated on Fri Mar 12 06:32:06 2010 for AVR by  doxygen 1.5.6