#ifndef __ADC_H__
#define __ADC_H__
/*_____ I N C L U D E S _________________________________*/

/*_____ F U N C T I O N S _______________________________*/

/*_____ D E F I N I T I O N S ___________________________*/
#define	mskADM_ADC_ENALBE				(0x01U<<7)
#define mskADM_ADC_START				(0x01U<<6)
#define	mskADM_ADC_CHANNLE_AIN0	(0x00U<<0)
#define	mskADM_ADC_CHANNLE_AIN1	(0x01U<<0)
#define	mskADM_ADC_CHANNLE_AIN2	(0x02U<<0)
#define	mskADM_ADC_CHANNLE_AIN3	(0x03U<<0)
#define	mskADM_ADC_CHANNLE_AIN4	(0x04U<<0)
#define	mskADM_ADC_CHANNLE_AIN5	(0x05U<<0)
#define	mskADM_ADC_CHANNLE_AIN6	(0x06U<<0)
#define	mskADM_ADC_CHANNLE_AIN7	(0x07U<<0)
#define	mskADM_ADC_CHANNLE_AIN8	(0x08U<<0)
#define	mskADM_ADC_CHANNLE_AIN9	(0x09U<<0)
#define	mskADM_ADC_CHANNLE_AIN10	(0x0AU<<0)
#define	mskADM_ADC_CHANNLE_AIN11	(0x0BU<<0)
#define	mskADM_ADC_CHANNLE_AIN12	(0x0CU<<0)

#define mskADR_ADC_CLOCK_FHOSC	(0x00U<<7)
#define mskADR_ADC_CLOCK_FLOSC	(0x01U<<7)
#define mskADR_ADC_GLOBALCHS		(0x01U<<6)

#define	mskADR_ADC_CONVERT_64US	(0x00U<<4)
#define	mskADR_ADC_CONVERT_32US	(0x01U<<4)
#define	mskADR_ADC_CONVERT_4US	(0x02U<<4)
#define	mskADR_ADC_CONVERT_16US	(0x03U<<4)

#define	mskIEN2_INT_ADC					(0x01U<<0)
#define ADCInRefVDD  (1 << 2)  //internal reference from VDD
#define ADCExHighRef (1 << 7) //high reference from AVREFH


#define	mskADR_ADC            	(0x02U<<1)
#define ADCCal                  (1 << 7) //ADC calibration starts
#define ADCCovAddCal            (1 << 6) //ADC conversion with calibration value

/*_____ D E C L A R A T I O N S _________________________*/

/*_____ M A C R O S _____________________________________*/


#endif  /*	__ADC_H__	*/