source: firmware/FSC/src/ad7719_adc.h@ 10102

Last change on this file since 10102 was 10102, checked in by neise, 12 years ago
- still testing - AD7719 and ATmega ADC work muxers as well output via USB
File size: 685 bytes
Line 
1#ifndef __AD7719_ADC_H
2#define __AD7719_ADC_H
3//-----------------------------------------------------------------------------
4
5#include "typedefs.h"
6#include "application.h"
7#include "num_conversion.h"
8//-----------------------------------------------------------------------------
9// Bit Definitions
10#define ADC_RDY PD6
11#define ADC_RST PD7
12#define ADC_IS_READY() !(PIND & (1<<PD6)) // TRUE if PD6=0 AD_RDY is inverted logic.
13
14// Port Definitions
15#define ADC_PRT PORTD
16#define ADC_DDR DDRD
17#define ADC_PIN PIND
18
19void adc_init(void);
20void startconv(void);
21U32 read_adc(void);
22//-----------------------------------------------------------------------------
23#endif
Note: See TracBrowser for help on using the repository browser.