#ifndef __AD7719_ADC_H #define __AD7719_ADC_H //----------------------------------------------------------------------------- #include "typedefs.h" #include "application.h" #include "num_conversion.h" //----------------------------------------------------------------------------- // Bit Definitions #define ADC_RDY PD6 #define ADC_RST PD7 #define ADC_IS_READY() !(PIND & PD6) // TRUE if PD6=0 AD_RDY is inverted logic. // Port Definitions #define ADC_PRT PORTD #define ADC_DDR DDRD #define ADC_PIN PIND void adc_init(void); void startconv(void); U32 read_adc(void); //----------------------------------------------------------------------------- #endif