#ifndef	COMPARATOR_H
#define COMPARATOR_H

/*_____ D E F I N I T I O N S ______________________________________________*/
#define CH_P20		0x0
#define CH_P21		0x1
#define CH_P22		0x2
#define CH_P23		0x3
#define CH_P24		0x4
#define CH_P25		0x5
#define CH_P26		0x6
#define CH_P27		0x7
#define CH_P28		0x8
#define CH_P29		0x9
#define CH_P210		0xA
#define CH_P211		0xB
#define CH_P212		0xC
#define CH_P213		0xD
#define CH_P214		0xE
#define CH_P215		0xF
#define CH_P30		0x10
#define CH_P31		0x11
#define CH_P32		0x12
#define CH_P33		0x13
#define CH_P34		0x14
#define CH_P35		0x15
#define CH_P36		0x16
#define CH_P37		0x17

//Enable or Disable
#define ENABLE		0x1
#define DISABLE		0x0

#define FALLING	  0x1
#define RISING    0x0

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


/*_____ D E C L A R A T I O N S ____________________________________________*/
void Comparator_Init(void);
void Comparator_Channel(uint16_t channel, uint16_t edge, uint16_t IE);
void Comparator_Enable(uint16_t en);
void Comparator_Output(uint16_t en);
#endif	
