00001 /*@{*//*@}*/ 00009 00010 #ifndef ADC_H 00011 #define ADC_H 00012 00013 #ifdef EXPORT 00014 #define EXTERN 00015 #else 00016 #define EXTERN extern 00017 #endif 00018 00019 /******************************************************************************/ 00020 /* Constants (#define) *//*@{*/ 00021 00023 #define ADC0 0 00024 00026 #define ADC1 1 00027 00029 #define ADC2 2 00030 00032 #define ADC3 3 00033 00035 #define ADC4 4 00036 00038 #define ADC5 5 00039 00041 #define ADC6 6 00042 00044 #define ADC7 7 00045 00046 /* End: define Constants *//*@}*/ 00047 /******************************************************************************/ 00048 00049 /******************************************************************************/ 00050 /* Macro definitions (#define) *//*@{*/ 00051 /* End: Macro definitions (#define) *//*@}*/ 00052 /******************************************************************************/ 00053 00054 /******************************************************************************/ 00055 /* Basic types (typedef) *//*@{*/ 00056 /* End: Basic types (typedef) *//*@}*/ 00057 /******************************************************************************/ 00058 00059 /******************************************************************************/ 00060 /* Global variables/constan. *//*@{*/ 00061 /* End: Global variables *//*@}*/ 00062 /******************************************************************************/ 00063 00064 /******************************************************************************/ 00065 /* Prototype declarations */ 00066 00067 EXTERN void adc_Init (void); 00068 EXTERN UINT16 adc_Read (UINT8 u8Channel); 00069 00070 /* End: Prototype declarations */ 00071 /******************************************************************************/ 00072 00073 #undef EXTERN 00074 #endif /* ADC_H */ 00075 00076 /**** Last line of code ****/