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

📄 power_ctrl.i

📁 TFT 17 2523+mtv512显示器源程序
💻 I
📖 第 1 页 / 共 5 页
字号:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               #line 4329 "Header\Font.h" /0  extern unsigned char code Font_East_J[];   extern unsigned char code Font_East_C[];   extern unsigned char code Font_Global[];   extern unsigned char code Font_Icons[];   extern unsigned char code Font_add[];					   #line 11 "Code\Power_Ctrl.c" /0    void PowerDown_ADC(void) { RTDSetByte(0xD6, 0xf2);       RTDSetByte(0xDA, 0x40);       RTDSetByte(0xE6, 0x40);        }  void PowerUp_ADC(void) { RTDSetByte(0xD6, 0xf3);       RTDSetByte(0xDA, 0x41);       RTDSetByte(0xE6, 0x47);          RTDSetByte(0xDD, 0x5f);  }  void PowerDown_TMDS(void) { RTDSetByte(0xa0, 0x0F);     }  void PowerUp_TMDS(void) { RTDSetByte(0xa0, 0x8F); }   void PowerDown_VDC(void) { #line 46 "Code\Power_Ctrl.c" /1        #line 54 "Code\Power_Ctrl.c" /0 }  void PowerUp_VDC(void) { #line 59 "Code\Power_Ctrl.c" /1        #line 67 "Code\Power_Ctrl.c" /0 }  void PowerDown_LVDS(void) {  RTDCodeW(LVDS_POWERDOWN);  }  void PowerUp_LVDS(void) {  RTDCodeW(LVDS_POWERUP);  }  void Set_Panel(unsigned char status) { if (status) { PowerUp_LVDS();   Delay_Xms(10);   RTDSetByte(0x21, 0x00 | 0x00 | 0x00 | 0x00);          RTDSetBit(0x20, 0xfd, 0x01);      Delay_Xms(20); RTDSetBit(0x20, 0xfe, 0x00);      Delay_Xms(20);    M512_Port50  = 0; #line 103 "Code\Power_Ctrl.c" /1  #line 105 "Code\Power_Ctrl.c" /0 bPanel_Status = 1;   Delay_Xms(40);    RTDSetByte(0x21, 0x0C | 0x00 | 0x00 | 0x00);          RTDSetBit(0x20, 0xff, 0x03);       RTDSetBit(0X3A, 0xff, 0x20);    RTDSetBit(0X3A, 0xdf, 0x00);       Load_VLC_Font(Font_Global, 0x00, 0xa1); if( (stGUD1.FUNCTION & 0x07) == 7 ) { Load_VLC_Font(Font_East_J, 0x573, 0x4B); } else { Load_VLC_Font(Font_East_C, 0x5a9, 0x45); } Load_VLC_Font(Font_Icons, 0x828, 0x70); Load_VLC_Font(Font_add, 0x20a, 0x06);				   RTDSetByte(0x01, 0x00);    RTDSetByte(0x1F, 0x00);        M512_Port51  = 0; #line 140 "Code\Power_Ctrl.c" /1  #line 142 "Code\Power_Ctrl.c" /0  } else {   M512_Port51  = 1; #line 149 "Code\Power_Ctrl.c" /1  #line 151 "Code\Power_Ctrl.c" /0  Delay_Xms(120);  RTDOSDW(OSD_Reset);   RTDSetByte(0x21, 0x00 | 0x00 | 0x00 | 0x00);          RTDSetBit(0x20, 0xfd, 0x01);      Delay_Xms(20); RTDSetBit(0x20, 0xfe, 0x00);      Delay_Xms(20);   M512_Port50  = 1; #line 166 "Code\Power_Ctrl.c" /1  #line 168 "Code\Power_Ctrl.c" /0 bPanel_Status = 0; Delay_Xms(40);  PowerDown_LVDS();  } }     bit Power_Control(unsigned char Notify) { if (0 == bPower_Status) {  if (0x80 == Notify) { bPower_Status   = 1;  Power_Up_Init(); ISP_Check_Sum();  bStable     = 0;                      bReload     = 1;                      bFrameSync  = 0;                      ucModeCnt   = 2;        Measure_Mode();                       Set_Task(0);              #line 199 "Code\Power_Ctrl.c" /1    #line 203 "Code\Power_Ctrl.c" /0    stGUD1.FUNCTION &= 0xf7; Save_GUD1(); Delay_Xms(10);  }  bNotify_Timer0_Int  = 0;   return 1; } else if (0x81 == Notify) {   stGUD1.FUNCTION |= 0x08; Save_GUD1(); Delay_Xms(10);  bPower_Status   = 0;  Set_Panel(0);                     SetMute(0);  RTDSetByte(0x02, 0x42);     I2CWrite(V_DISABLE);  PowerDown_ADC(); PowerDown_VDC(); PowerDown_TMDS();   Delay_Xms(250); Delay_Xms(250); Delay_Xms(250); Delay_Xms(250); Delay_Xms(250);  Set_Task(3);         bNotify_Timer0_Int  = 0;   return 1; } return 0; }

⌨️ 快捷键说明

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