www.pudn.com > EFA.rar > Global.c


#include "define.h" 
 
unsigned char   LED1,LED2,LED3,         // ORC,AIR,N2O 
                Display_Counter,        // 显示计数器 
                Display_LED_En,         // 显示使能 
                Status_Check_En,        // 状态检测使能                       
                Array_No,               // 数据缓冲区序号 
                AD_Sampling_Counter,    // AD采样计数器 
                Value_Change_En,        // 数据转换使能                
                Send_Uart_En,           // 串口通讯使能 
                Display_Column_En,      // 光柱显示使能 
                key;                    // 键值 
                 
unsigned char   Buffer[14] = {  0x81,0x00,0x00, 
                                0x83,0x00,0x00,0x00, 
                                0x85,0x00,0x00, 
                                0x87,0x00,0x00,0x00};       // 待发送的数据 
                                 
unsigned char   str[12] = {     SA+SB+SC+SD+SE+SF,          // 0 
                                SB+SC,                      // 1 
                                SA+SB+SD+SE+SG,             // 2 
                                SA+SB+SC+SD+SG,             // 3 
                                SB+SC+SF+SG,                // 4 
                                SA+SC+SD+SF+SG,             // 5 
                                SA+SC+SD+SE+SF+SG,          // 6 
                                SA+SB+SC,                   // 7 
                                SA+SB+SC+SD+SE+SF+SG,       // 8 
                                SA+SB+SC+SD+SF+SG,          // 9 
                                0x0,                        // 空 
                                0xFF                        // 全显示 
                            }; 
                             
unsigned char   column[9] = {   0,                        // 0 
                                1,                        // 1 
                                3,                        // 2 
                                7,                        // 3 
                                15,                       // 4 
                                31,                       // 5 
                                63,                       // 6 
                                127,                      // 7 
                                255                       // 8 
                             }; 
                 
unsigned int    Value_O2_Cur1[24],              // O2采集数组 
                Value_N2O_Air_Cur1[24],         // N2O,Air采集数组 
                Value_O2_Cur2,                  // O2显示值                 
                Value_O2_Pre2, 
                Value_N2O_Air_Cur2,             // N2O,Air显示值 
                Value_N2O_Air_Pre2,                       
                O2_Column_Cur,                  // O2光柱显示值 
                O2_Column_Pre, 
                N2O_Air_Column_Cur,             // N2O,Air光柱显示值                
                N2O_Air_Column_Pre, 
                Qfg_Flow_Cur,                   // Qfg流量显示值 
                Qfg_Flow_Pre,  
                FiO2_Cur,                       // FiO2显示值 
                FiO2_Pre;