#ifndef IRDECODE_H
#define IRDECODE_H

// <<< Use Configuration Wizard in Context Menu >>>
// <e> IR Enable/Disable
#define IR_Control 0
#if (IR_Control == 1)
	// <o> 	IR Head code TIME set (unit : us)
		#define	ir_header_counter		128
		
	// <o> 	Set IR address1<0x00-0xFF>
		#define	ir_address1				0x00
		
	// <o> 	Set IR address2<0x00-0xFF>
		#define	ir_address2				0xFF
		
	// <h> 	IR data code set
		// <h>  Button speed 1
			// <o> Data code 1<0x00-0xFF>
				#define	IR_DATA_1_1			0xa2
				
			// <o> Data code 2<0x00-0xFF>
				#define IR_DATA_1_2			0x5d
		//</h>
		
		// <h>  Button speed 2
			// <o> Data code 1<0x00-0xFF>
				#define	IR_DATA_2_1			0x62
				
			// <o> Data code 2<0x00-0xFF>
				#define IR_DATA_2_2			0x9d
		//</h>
		
		// <h>  Button speed 3
			// <o> Data code 1<0x00-0xFF>
				#define	IR_DATA_3_1			0xe2
				
			// <o> Data code 2<0x00-0xFF>
				#define IR_DATA_3_2			0x1d
		//</h>
		
		// <h>  Button speed 4
			// <o> Data code 1<0x00-0xFF>
				#define	IR_DATA_4_1			0x22
				
			// <o> Data code 2<0x00-0xFF>
				#define IR_DATA_4_2			0xdd
		//</h>
		
		// <h>  Button speed OFF
			// <o> Data code 1<0x00-0xFF>
				#define	IR_DATA_off_1		0x38
				
			// <o> Data code 2<0x00-0xFF>
				#define IR_DATA_off_2		0xc7
		//</h>
	//</h>	
extern void 	IRDecode_Read (void);

extern	unsigned int ir_read_counter;
extern	unsigned int ir_read_counter_buf;
extern	xdata unsigned char	ir_data_buf[4];

#endif
// <<< end of configuration section >>>
#endif