⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 var.c

📁 用51单片机实现IR解码
💻 C
字号:

#include "common.h"

/********Var for Keyboard.c********************************/
EX_DATA U16 Parse_Input_Key_Timer=0;         
EX_DATA U16 Get_Key_Counter=0;	   		//the counter of get key times		
EX_DATA U8 No_Key_Counter=0;			//the counter of miss key times


EX_DATA  U8 Key_Scan_Buffer0=0xff;
EX_DATA U8 Key_Scan_Buffer1=0xff;
EX_DATA U8 Key_Scan_Buffer2=0xff;
EX_DATA U8 Key_Scan_Buffer3=0xff;
EX_DATA U8 Panel_Key_Backup=0xff;
EX_DATA U8 Key_Code=0xff;
EX_DATA U8 Key_Code_Mode=0xff;
EX_DATA U8 Key_Code_Combition=0xff;
BOOL	System_Flag_Power_State;
BOOL Start_Parse_Key_Input;
BOOL  Key_Scan_Step;
BOOL  Enable_Get_Key;
BOOL  Need_Send_Click_key;	
BOOL Flag_Get_Hold_Key;
BOOL Need_Send_Single_Key;




IN_DATA 		U8		System_RTC_Second;
IN_DATA 		U8		System_RTC_Minute;
IN_DATA 		U8		System_RTC_Hour;

BOOL Flag_Need_Show_New_RDS_Mode_Indication;
BOOL Need_Display_FM_Frequence_Before_Display_Station_Name;
BOOL  Need_Display_FM_Frequence_After_RDS_Display_Mode_Change;
BOOL  Enable_Auto_Change_to_RDS_Service_Mode;
BOOL System_Flag_RDS_Get_Hour_Master_Bit;

/********Var for IR input.c *******************************/

DE_DATA U8 Pre_IR_Input_Time=0;   
DE_DATA U8 IR_Bit_Counter=0;
DE_DATA U8 IR_Key_Code=0xff;
DE_DATA U8 IR_Key_Repeat_Counter;
DE_DATA U8 Timer2_Overflow_Times_Counter=0;
DE_DATA U16 IR_Bit_Width;
DE_DATA U16 IR_Input_Bits_Buffer;
BOOL Enable_Repeat_Bit;
BOOL IR_Key_Be_Hold_Key;                     //when we check the IR realse we will set the flag for send out a single key
BOOL Get_Single_Key_Code;
BOOL Enable_Hold_Key_Valid;
DE_DATA  U8 Receive_Buffer;
BOOL System_Flag_Being_Scrolling;            //flag to indicate that allow scrolling
BOOL System_Flag_Flash_Text;
BOOL IR_Get_Start_Begin;
BOOL System_Flag_RTC_Update;		
	/*tuner flag*/
BOOL System_Flag_AutoTuneDownEvent;
BOOL System_Flag_AutoTuneUpEvent;
BOOL System_Flag_DispEvent;
BOOL System_Flag_ChnUpdateEvent;
BOOL System_Flag_RdsSearchEvent;

BOOL System_Flag_AutoUnmute;

BOOL System_Flag_RDS_SEL;

 BOOL System_Flag_RdsValid;
 BOOL System_Flag_FilterTuned;
 BOOL System_Flag_KeepTuneUpEvent;
 BOOL System_Flag_KeepTuneDownEvent;
 BOOL System_Flag_Be_Program;
 BOOL System_Flag_MuteState;
 BOOL System_Flag_Temp_DisplaY;
 BOOL System_Flag_AM_Step;
 BOOL  System_Flag_Need_Store_Current_Frequence;
EX_DATA U8 System_Confirm_Refresh_LCD_Counter;
  
EX_DATA  	U8 			EventAutoUnmute_Timer;	//the timer counter for the delay unmute event		

EX_DATA  U8 Common_Register;
CODE U8 Byte_Set_Bit[8]={0x1,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
CODE U8 Byte_Clear_Bit[8]={0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F};

/*for LCD.c       */
EX_DATA U8 LCD_Display_Ram_Buffer[16];
EX_DATA U8 LCD_Display_Data[16];
EX_DATA U8 LCD_Refresh_Poniter=0;
EX_DATA		U8		  Scroll_Chars_Buffer[60];
EX_DATA	       U8             Scroll_Chars_Pointer;
EX_DATA  U8 Text_Backup[16];


DE_DATA       U8            Timer_for_Tuner;
DE_DATA       U16         Timer_for_Sytem_Display;
DE_DATA        U16          Timer_For_RDS_Display;
IN_DATA       U8        Timer_for_Refresh_LCD_Display;

IN_DATA       ULONG       Monitor;
EX_DATA U8 Common_Delay_Timer;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -