Commit 863aed76 authored by hu's avatar hu

增加经销商模式DTC相关功能

parent 657a4e22
......@@ -9192,6 +9192,678 @@ void GUI_BG_DeaMenu6_Display(uint8_t Mode)
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCMenu_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCMenu_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
/*显示*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_01_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER); /*长度条*/
if (bCurMenuIDX <= _DEA_DSP_LEVEL1_1MENU_4)
{
if (bCurMenuIDX != _DEA_DSP_LEVEL1_1MENU_1)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_13white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
}
if (bCurMenuIDX != _DEA_DSP_LEVEL1_1MENU_2)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_14white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
}
if (bCurMenuIDX != _DEA_DSP_LEVEL1_1MENU_3)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_15white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
if (bCurMenuIDX != _DEA_DSP_LEVEL1_1MENU_4)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_16white, 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
}
else if (bCurMenuIDX == _DEA_DSP_LEVEL1_1MENU_5)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_14white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_15white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_16white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
else if (bCurMenuIDX == _DEA_DSP_LEVEL1_1MENU_6)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_15white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_16white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_17white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCMenu1_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCMenu1_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_13black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaTCMenu2_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCMenu2_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_14black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCMenu3_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCMenu3_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_15black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCMenu4_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCMenu4_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_16black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCMenu5_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCMenu5_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_17black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCMenu6_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCMenu6_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_18black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClear_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClear_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
/*显示*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_wenzi, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_gundongtiao, GUI_BLENDMODE_SRC_OVER); /*长度条*/
if (bCurMenuIDX <= _DEA_DSP_LEVEL1_2MENU_4)
{
if (bCurMenuIDX != _DEA_DSP_LEVEL1_2MENU_1)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_07white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
}
if (bCurMenuIDX != _DEA_DSP_LEVEL1_2MENU_2)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_08white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
}
if (bCurMenuIDX != _DEA_DSP_LEVEL1_2MENU_3)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_09white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
if (bCurMenuIDX != _DEA_DSP_LEVEL1_2MENU_4)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_10white, 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
}
else if (bCurMenuIDX == _DEA_DSP_LEVEL1_2MENU_5)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_08white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_09white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_10white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
else if (bCurMenuIDX == _DEA_DSP_LEVEL1_2MENU_6)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_09white, 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_10white, 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_11white, 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearA_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearA_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_07black + Flag), 225u, GUI_DISP_MENU_Y[0u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearB_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearB_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_08black + Flag), 225u, GUI_DISP_MENU_Y[1u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearC_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearC_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_09black + Flag), 225u, GUI_DISP_MENU_Y[2u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearD_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearD_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_10black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearE_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearE_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_11black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearF_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearF_Display(uint8_t Mode)
{
uint8_t Flag = 0;
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, (CN_User_Menu1_12black + Flag), 225u, GUI_DISP_MENU_Y[3u], GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearEngine_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearEngine_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_07white, 300u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearBrake_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearBrake_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_08white, 316u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearAMT_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearAMT_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_09white, 300u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearRadar_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearRadar_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_10white, 316u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearCamer_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearCamer_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_11white, 300u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearRetarder_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearRetarder_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_12white, 268u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_white_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearEngine1_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearEngine1_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_07white, 300u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_3, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearBrake1_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearBrake1_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_08white, 316u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_3, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearAMT1_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearAMT1_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_09white, 300u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_3, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearRadar1_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearRadar1_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_10white, 316u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_3, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearCamer1_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearCamer1_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_11white, 300u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_3, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClearRetarder1_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void GUI_BG_DeaDTCClearRetarder1_Display(uint8_t Mode)
{
if (Mode == GUI_DISP_MODE_NORMAL)
{
GUI_Translate_Display(MENU_Sprite, CN_User_Menu1_12white, 268u, 97u, GUI_BLENDMODE_SRC_OVER); /*menu*/
GUI_General_Display(MENU_Sprite, CN_fengexian, GUI_BLENDMODE_SRC_OVER); /*line*/
GUI_General_Display(MENU_Sprite, CN_Fty_Menu2_02_3, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_yes, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MENU_Sprite, CN_grey_no, GUI_BLENDMODE_SRC_OVER);
}
else
{
GUI_General_Display(MENU_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaDTCClear1_Display
* Description :
......
......@@ -482,8 +482,6 @@ void GUI_BG_FacDTCClearAMT1_Display(uint8_t Mode); /**/
void GUI_BG_FacDTCClearRadar1_Display(uint8_t Mode); /**/
void GUI_BG_FacDTCClearCamer1_Display(uint8_t Mode); /**/
void GUI_BG_FacDTCClearRetarder1_Display(uint8_t Mode); /**/
void GUI_BG_FacDTCClear1_Display(uint8_t Mode); /*工厂模式清除DTC1*/
void GUI_BG_FacDTCClear2_Display(uint8_t Mode); /*工厂模式清除DTC2*/
void GUI_BG_FacDTCClear3_Display(uint8_t Mode); /*工厂模式清除DTC2*/
......@@ -500,6 +498,32 @@ void GUI_BG_DeaMenu3_Display(uint8_t Mode); /**/
void GUI_BG_DeaMenu4_Display(uint8_t Mode); /**/
void GUI_BG_DeaMenu5_Display(uint8_t Mode); /**/
void GUI_BG_DeaMenu6_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCMenu_Display(uint8_t Mode); /*经销商DTC显示*/
void GUI_BG_DeaDTCMenu1_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCMenu2_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCMenu3_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCMenu4_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCMenu5_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCMenu6_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClear_Display(uint8_t Mode); /*经销商DTC清除*/
void GUI_BG_DeaDTCClearA_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearB_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearC_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearD_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearE_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearF_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearEngine_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearBrake_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearAMT_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearRadar_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearCamer_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearRetarder_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearEngine1_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearBrake1_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearAMT1_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearRadar1_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearCamer1_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClearRetarder1_Display(uint8_t Mode); /**/
void GUI_BG_DeaDTCClear1_Display(uint8_t Mode); /*经销商模式清除DTC1*/
void GUI_BG_DeaDTCClear2_Display(uint8_t Mode); /*经销商模式清除DTC2*/
void GUI_BG_DeaDTCClear3_Display(uint8_t Mode); /*经销商模式清除DTC3*/
......
......@@ -3263,90 +3263,148 @@ void LevelD1Menu_6Do(void)
void LevelD1Menu_6Exit(void)
{}
/*----经销商模式----DTC显示----*/
/*----经销商模式----发动机故障----*/
void LevelD1_1Menu_1Enter(void)
{
}
void LevelD1_1Menu_1Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCMenu_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCMenu1_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_1Menu_1Exit(void)
{}
/*----经销商模式----刹车故障----*/
void LevelD1_1Menu_2Enter(void)
{}
void LevelD1_1Menu_2Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCMenu_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCMenu2_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_1Menu_2Exit(void)
{}
/*----经销商模式----变速箱故障----*/
void LevelD1_1Menu_3Enter(void)
{}
void LevelD1_1Menu_3Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCMenu_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCMenu3_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_1Menu_3Exit(void)
{}
/*----经销商模式----雷达故障----*/
void LevelD1_1Menu_4Enter(void)
{}
void LevelD1_1Menu_4Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCMenu_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCMenu4_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_1Menu_4Exit(void)
{}
/*----经销商模式----摄像头故障----*/
void LevelD1_1Menu_5Enter(void)
{}
void LevelD1_1Menu_5Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCMenu_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCMenu5_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_1Menu_5Exit(void)
{}
/*----经销商模式----缓速器故障----*/
void LevelD1_1Menu_6Enter(void)
{}
void LevelD1_1Menu_6Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCMenu_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCMenu6_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_1Menu_6Exit(void)
{}
/*----经销商模式----清除发动机故障----*/
void LevelD1_2Menu_1Enter(void)
{}
void LevelD1_2Menu_1Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCClearA_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_2Menu_1Exit(void)
{}
/*----经销商模式----清除刹车故障----*/
void LevelD1_2Menu_2Enter(void)
{}
void LevelD1_2Menu_2Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCClearB_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_2Menu_2Exit(void)
{}
/*----经销商模式----清除变速箱故障----*/
void LevelD1_2Menu_3Enter(void)
{}
void LevelD1_2Menu_3Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCClearC_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_2Menu_3Exit(void)
{}
/*----经销商模式----清除雷达故障----*/
void LevelD1_2Menu_4Enter(void)
{}
void LevelD1_2Menu_4Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCClearD_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_2Menu_4Exit(void)
{}
/*----经销商模式----清除摄像头故障----*/
void LevelD1_2Menu_5Enter(void)
{}
void LevelD1_2Menu_5Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCClearE_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_2Menu_5Exit(void)
{}
/*----经销商模式----清除缓速器故障----*/
void LevelD1_2Menu_6Enter(void)
{}
void LevelD1_2Menu_6Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear_Display(GUI_DISP_MODE_NORMAL);
GUI_BG_DeaDTCClearF_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD1_2Menu_6Exit(void)
{}
......@@ -3405,170 +3463,724 @@ void LevelD2_5Menu_1Do(void)
void LevelD2_5Menu_1Exit(void)
{}
/*----经销商模式----发动机----*/
void LevelD2_1Menu_1Enter(void)
{}
void LevelD2_1Menu_1Do(void)
{}
void LevelD2_1Menu_1Exit(void)
{}
{
//03 19 02 0C 55 55 55 55
_CAN_Msg canMag;
void LevelD2_1Menu_2Enter(void)
{}
void LevelD2_1Menu_2Do(void)
{}
void LevelD2_1Menu_2Exit(void)
{}
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 1u;//0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
void LevelD2_1Menu_3Enter(void)
{}
void LevelD2_1Menu_3Do(void)
{}
void LevelD2_1Menu_3Exit(void)
{}
canMag.Msg[0u] = 0x03u;
canMag.Msg[1u] = 0x19u;
canMag.Msg[2u] = 0x02u;
canMag.Msg[3u] = 0x0Cu;
canMag.Msg[4u] = 0x00u;
canMag.Msg[5u] = 0x00u;
canMag.Msg[6u] = 0x00u;
canMag.Msg[7u] = 0x00u;
void LevelD2_1Menu_4Enter(void)
{}
void LevelD2_1Menu_4Do(void)
{}
void LevelD2_1Menu_4Exit(void)
{}
Can_Write(&canMag);
void LevelD2_1Menu_5Enter(void)
{}
void LevelD2_1Menu_5Do(void)
{}
void LevelD2_1Menu_5Exit(void)
{}
Menu_DTC_DisTime = 50u;
}
void LevelD2_1Menu_1Do(void)
{
uint8_t DTCNumDis = 0x00u;
void LevelD2_1Menu_6Enter(void)
{}
void LevelD2_1Menu_6Do(void)
{}
void LevelD2_1Menu_6Exit(void)
{}
if (Menu_DTC_DisTime != 0x00u)
{
Menu_DTC_DisTime--;
}
void LevelD2_2Menu_1Enter(void)
{}
void LevelD2_2Menu_1Do(void)
{}
void LevelD2_2Menu_1Exit(void)
{}
if (Menu_DTC_DisTime == 0u)
{
DTCNumDis = 1u;
}
else
{
DTCNumDis = 0u;
}
void LevelD2_2Menu_2Enter(void)
{}
void LevelD2_2Menu_2Do(void)
{}
void LevelD2_2Menu_2Exit(void)
{}
GUI_OftenShow_Display();
void LevelD2_2Menu_3Enter(void)
{}
void LevelD2_2Menu_3Do(void)
{}
void LevelD2_2Menu_3Exit(void)
if (DTCNumDis == 1u) /*计时*/
{
//GUI_Display_DTC_Server();
GUI_BG_DTCEngine_Display(GUI_DISP_MODE_NORMAL);
}
else /*故障码读取中*/
{
GUI_BG_DTCReading_Display(GUI_DISP_MODE_NORMAL);
}
}
void LevelD2_1Menu_1Exit(void)
{}
void LevelD2_2Menu_4Enter(void)
{}
void LevelD2_2Menu_4Do(void)
{}
void LevelD2_2Menu_4Exit(void)
{}
/*----经销商模式----刹车----*/
void LevelD2_1Menu_2Enter(void)
{
//03 19 02 0C 55 55 55 55
_CAN_Msg canMag;
void LevelD2_2Menu_5Enter(void)
{}
void LevelD2_2Menu_5Do(void)
{}
void LevelD2_2Menu_5Exit(void)
{}
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 1u;//0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
void LevelD2_2Menu_6Enter(void)
{}
void LevelD2_2Menu_6Do(void)
{}
void LevelD2_2Menu_6Exit(void)
{}
canMag.Msg[0u] = 0x03u;
canMag.Msg[1u] = 0x19u;
canMag.Msg[2u] = 0x02u;
canMag.Msg[3u] = 0x0Cu;
canMag.Msg[4u] = 0x00u;
canMag.Msg[5u] = 0x00u;
canMag.Msg[6u] = 0x00u;
canMag.Msg[7u] = 0x00u;
void LevelD3_2Menu_1Enter(void)
{}
void LevelD3_2Menu_1Do(void)
{}
void LevelD3_2Menu_1Exit(void)
{}
Can_Write(&canMag);
void LevelD3_2Menu_2Enter(void)
{}
void LevelD3_2Menu_2Do(void)
{}
void LevelD3_2Menu_2Exit(void)
{}
Menu_DTC_DisTime = 50u;
}
void LevelD2_1Menu_2Do(void)
{
uint8_t DTCNumDis = 0x00u;
void LevelD3_2Menu_3Enter(void)
{}
void LevelD3_2Menu_3Do(void)
{}
void LevelD3_2Menu_3Exit(void)
{}
if (Menu_DTC_DisTime != 0x00u)
{
Menu_DTC_DisTime--;
}
void LevelD3_2Menu_4Enter(void)
{}
void LevelD3_2Menu_4Do(void)
{}
void LevelD3_2Menu_4Exit(void)
{}
if (Menu_DTC_DisTime == 0u)
{
DTCNumDis = 1u;
}
else
{
DTCNumDis = 0u;
}
void LevelD3_2Menu_5Enter(void)
{}
void LevelD3_2Menu_5Do(void)
{}
void LevelD3_2Menu_5Exit(void)
{}
GUI_OftenShow_Display();
void LevelD3_2Menu_6Enter(void)
{}
void LevelD3_2Menu_6Do(void)
{}
void LevelD3_2Menu_6Exit(void)
if (DTCNumDis == 1u) /*计时*/
{
GUI_BG_DTCBrake_Display(GUI_DISP_MODE_NORMAL);
}
else /*故障码读取中*/
{
GUI_BG_DTCReading_Display(GUI_DISP_MODE_NORMAL);
}
}
void LevelD2_1Menu_2Exit(void)
{}
void LevelD4_2Menu_1Enter(void)
{}
void LevelD4_2Menu_1Do(void)
{}
void LevelD4_2Menu_1Exit(void)
{}
/*----经销商模式----变速箱----*/
void LevelD2_1Menu_3Enter(void)
{
//03 19 02 0C 55 55 55 55
_CAN_Msg canMag;
void LevelD4_2Menu_2Enter(void)
{}
void LevelD4_2Menu_2Do(void)
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 1u;//0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x03u;
canMag.Msg[1u] = 0x19u;
canMag.Msg[2u] = 0x02u;
canMag.Msg[3u] = 0x0Cu;
canMag.Msg[4u] = 0x00u;
canMag.Msg[5u] = 0x00u;
canMag.Msg[6u] = 0x00u;
canMag.Msg[7u] = 0x00u;
Can_Write(&canMag);
Menu_DTC_DisTime = 50u;
}
void LevelD2_1Menu_3Do(void)
{
uint8_t DTCNumDis = 0x00u;
if (Menu_DTC_DisTime != 0x00u)
{
Menu_DTC_DisTime--;
}
if (Menu_DTC_DisTime == 0u)
{
DTCNumDis = 1u;
}
else
{
DTCNumDis = 0u;
}
GUI_OftenShow_Display();
if (DTCNumDis == 1u) /*计时*/
{
GUI_BG_DTCAMT_Display(GUI_DISP_MODE_NORMAL);
}
else /*故障码读取中*/
{
GUI_BG_DTCReading_Display(GUI_DISP_MODE_NORMAL);
}
}
void LevelD2_1Menu_3Exit(void)
{}
/*----经销商模式----雷达----*/
void LevelD2_1Menu_4Enter(void)
{
//03 19 02 0C 55 55 55 55
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 1u;//0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x03u;
canMag.Msg[1u] = 0x19u;
canMag.Msg[2u] = 0x02u;
canMag.Msg[3u] = 0x0Cu;
canMag.Msg[4u] = 0x00u;
canMag.Msg[5u] = 0x00u;
canMag.Msg[6u] = 0x00u;
canMag.Msg[7u] = 0x00u;
Can_Write(&canMag);
Menu_DTC_DisTime = 50u;
}
void LevelD2_1Menu_4Do(void)
{
uint8_t DTCNumDis = 0x00u;
if (Menu_DTC_DisTime != 0x00u)
{
Menu_DTC_DisTime--;
}
if (Menu_DTC_DisTime == 0u)
{
DTCNumDis = 1u;
}
else
{
DTCNumDis = 0u;
}
GUI_OftenShow_Display();
if (DTCNumDis == 1u) /*计时*/
{
GUI_BG_DTCRadar_Display(GUI_DISP_MODE_NORMAL);
}
else /*故障码读取中*/
{
GUI_BG_DTCReading_Display(GUI_DISP_MODE_NORMAL);
}
}
void LevelD2_1Menu_4Exit(void)
{}
/*----经销商模式----摄像头----*/
void LevelD2_1Menu_5Enter(void)
{
//03 19 02 0C 55 55 55 55
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 1u;//0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x03u;
canMag.Msg[1u] = 0x19u;
canMag.Msg[2u] = 0x02u;
canMag.Msg[3u] = 0x0Cu;
canMag.Msg[4u] = 0x00u;
canMag.Msg[5u] = 0x00u;
canMag.Msg[6u] = 0x00u;
canMag.Msg[7u] = 0x00u;
Can_Write(&canMag);
Menu_DTC_DisTime = 50u;
}
void LevelD2_1Menu_5Do(void)
{
uint8_t DTCNumDis = 0x00u;
if (Menu_DTC_DisTime != 0x00u)
{
Menu_DTC_DisTime--;
}
if (Menu_DTC_DisTime == 0u)
{
DTCNumDis = 1u;
}
else
{
DTCNumDis = 0u;
}
GUI_OftenShow_Display();
if (DTCNumDis == 1u) /*计时*/
{
GUI_BG_DTCCamera_Display(GUI_DISP_MODE_NORMAL);
}
else /*故障码读取中*/
{
GUI_BG_DTCReading_Display(GUI_DISP_MODE_NORMAL);
}
}
void LevelD2_1Menu_5Exit(void)
{}
/*----经销商模式----液缓----*/
void LevelD2_1Menu_6Enter(void)
{
//03 19 02 0C 55 55 55 55
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 1u;//0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x03u;
canMag.Msg[1u] = 0x19u;
canMag.Msg[2u] = 0x02u;
canMag.Msg[3u] = 0x0Cu;
canMag.Msg[4u] = 0x00u;
canMag.Msg[5u] = 0x00u;
canMag.Msg[6u] = 0x00u;
canMag.Msg[7u] = 0x00u;
Can_Write(&canMag);
Menu_DTC_DisTime = 50u;
}
void LevelD2_1Menu_6Do(void)
{
uint8_t DTCNumDis = 0x00u;
if (Menu_DTC_DisTime != 0x00u)
{
Menu_DTC_DisTime--;
}
if (Menu_DTC_DisTime == 0u)
{
DTCNumDis = 1u;
}
else
{
DTCNumDis = 0u;
}
GUI_OftenShow_Display();
if (DTCNumDis == 1u) /*计时*/
{
GUI_BG_DTCRetarder_Display(GUI_DISP_MODE_NORMAL);
}
else /*故障码读取中*/
{
GUI_BG_DTCReading_Display(GUI_DISP_MODE_NORMAL);
}
}
void LevelD2_1Menu_6Exit(void)
{}
/*----经销商模式----清除发动机----*/
void LevelD2_2Menu_1Enter(void)
{}
void LevelD2_2Menu_1Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClearEngine_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD2_2Menu_1Exit(void)
{}
/*----经销商模式----清除刹车----*/
void LevelD2_2Menu_2Enter(void)
{}
void LevelD2_2Menu_2Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClearBrake_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD2_2Menu_2Exit(void)
{}
/*----经销商模式----清除变速箱----*/
void LevelD2_2Menu_3Enter(void)
{}
void LevelD2_2Menu_3Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClearAMT_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD2_2Menu_3Exit(void)
{}
/*----经销商模式----清除雷达----*/
void LevelD2_2Menu_4Enter(void)
{}
void LevelD2_2Menu_4Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClearRadar_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD2_2Menu_4Exit(void)
{}
/*----经销商模式----清除摄像头---*/
void LevelD2_2Menu_5Enter(void)
{}
void LevelD2_2Menu_5Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClearCamer_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD2_2Menu_5Exit(void)
{}
/*----经销商模式----清除缓速器----*/
void LevelD2_2Menu_6Enter(void)
{}
void LevelD2_2Menu_6Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClearRetarder_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD2_2Menu_6Exit(void)
{}
/*----经销商模式----清除发动机----*/
void LevelD3_2Menu_1Enter(void)
{
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x04u;
canMag.Msg[1u] = 0x14u;
canMag.Msg[2u] = 0xFFu;
canMag.Msg[3u] = 0xFFu;
canMag.Msg[4u] = 0xFFu;
canMag.Msg[5u] = 0x55u;
canMag.Msg[6u] = 0x55u;
canMag.Msg[7u] = 0x55u;
Can_Write(&canMag);
Common_Set_LDWS_Flag_Sta(7);
}
void LevelD3_2Menu_1Do(void)
{
GUI_OftenShow_Display();
if (Common_Get_Menu_FacDea_Time_Sta() < 1500u)
{
GUI_BG_DeaDTCClearEngine1_Display(GUI_DISP_MODE_NORMAL);
}
else
{
Common_Set_Menu_FacDea_Time_Sta(0u);
NextMenu(_DEA_DSP_LEVEL4_2MENU_1);
bCurMenuIDX = _DEA_DSP_LEVEL4_2MENU_1;
}
}
void LevelD3_2Menu_1Exit(void)
{}
/*----经销商模式----清除刹车----*/
void LevelD3_2Menu_2Enter(void)
{
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x04u;
canMag.Msg[1u] = 0x14u;
canMag.Msg[2u] = 0xFFu;
canMag.Msg[3u] = 0xFFu;
canMag.Msg[4u] = 0xFFu;
canMag.Msg[5u] = 0x55u;
canMag.Msg[6u] = 0x55u;
canMag.Msg[7u] = 0x55u;
Can_Write(&canMag);
Common_Set_LDWS_Flag_Sta(7);
}
void LevelD3_2Menu_2Do(void)
{
GUI_OftenShow_Display();
if (Common_Get_Menu_FacDea_Time_Sta() < 1500u)
{
GUI_BG_DeaDTCClearBrake1_Display(GUI_DISP_MODE_NORMAL);
}
else
{
Common_Set_Menu_FacDea_Time_Sta(0u);
NextMenu(_DEA_DSP_LEVEL4_2MENU_2);
bCurMenuIDX = _DEA_DSP_LEVEL4_2MENU_2;
}
}
void LevelD3_2Menu_2Exit(void)
{}
/*----经销商模式----清除变速箱----*/
void LevelD3_2Menu_3Enter(void)
{
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x04u;
canMag.Msg[1u] = 0x14u;
canMag.Msg[2u] = 0xFFu;
canMag.Msg[3u] = 0xFFu;
canMag.Msg[4u] = 0xFFu;
canMag.Msg[5u] = 0x55u;
canMag.Msg[6u] = 0x55u;
canMag.Msg[7u] = 0x55u;
Can_Write(&canMag);
Common_Set_LDWS_Flag_Sta(7);
}
void LevelD3_2Menu_3Do(void)
{
GUI_OftenShow_Display();
if (Common_Get_Menu_FacDea_Time_Sta() < 1500u)
{
GUI_BG_DeaDTCClearAMT1_Display(GUI_DISP_MODE_NORMAL);
}
else
{
Common_Set_Menu_FacDea_Time_Sta(0u);
NextMenu(_DEA_DSP_LEVEL4_2MENU_3);
bCurMenuIDX = _DEA_DSP_LEVEL4_2MENU_3;
}
}
void LevelD3_2Menu_3Exit(void)
{}
/*----经销商模式----清除雷达----*/
void LevelD3_2Menu_4Enter(void)
{
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x04u;
canMag.Msg[1u] = 0x14u;
canMag.Msg[2u] = 0xFFu;
canMag.Msg[3u] = 0xFFu;
canMag.Msg[4u] = 0xFFu;
canMag.Msg[5u] = 0x55u;
canMag.Msg[6u] = 0x55u;
canMag.Msg[7u] = 0x55u;
Can_Write(&canMag);
Common_Set_LDWS_Flag_Sta(7);
}
void LevelD3_2Menu_4Do(void)
{
GUI_OftenShow_Display();
if (Common_Get_Menu_FacDea_Time_Sta() < 1500u)
{
GUI_BG_DeaDTCClearRadar1_Display(GUI_DISP_MODE_NORMAL);
}
else
{
Common_Set_Menu_FacDea_Time_Sta(0u);
NextMenu(_DEA_DSP_LEVEL4_2MENU_4);
bCurMenuIDX = _DEA_DSP_LEVEL4_2MENU_4;
}
}
void LevelD3_2Menu_4Exit(void)
{}
/*----经销商模式----清除摄像头----*/
void LevelD3_2Menu_5Enter(void)
{
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x04u;
canMag.Msg[1u] = 0x14u;
canMag.Msg[2u] = 0xFFu;
canMag.Msg[3u] = 0xFFu;
canMag.Msg[4u] = 0xFFu;
canMag.Msg[5u] = 0x55u;
canMag.Msg[6u] = 0x55u;
canMag.Msg[7u] = 0x55u;
Can_Write(&canMag);
Common_Set_LDWS_Flag_Sta(7);
}
void LevelD3_2Menu_5Do(void)
{
GUI_OftenShow_Display();
if (Common_Get_Menu_FacDea_Time_Sta() < 1500u)
{
GUI_BG_DeaDTCClearCamer1_Display(GUI_DISP_MODE_NORMAL);
}
else
{
Common_Set_Menu_FacDea_Time_Sta(0u);
NextMenu(_DEA_DSP_LEVEL4_2MENU_5);
bCurMenuIDX = _DEA_DSP_LEVEL4_2MENU_5;
}
}
void LevelD3_2Menu_5Exit(void)
{}
/*----经销商模式----清除缓速器----*/
void LevelD3_2Menu_6Enter(void)
{
_CAN_Msg canMag;
canMag.MsgID = 0x7E0u;
canMag.MsgDLC = 8u;
canMag.MsgPro = 0u;
canMag.MsgStd = 0u;
canMag.MsgRTR = 0u;
canMag.Msg[0u] = 0x04u;
canMag.Msg[1u] = 0x14u;
canMag.Msg[2u] = 0xFFu;
canMag.Msg[3u] = 0xFFu;
canMag.Msg[4u] = 0xFFu;
canMag.Msg[5u] = 0x55u;
canMag.Msg[6u] = 0x55u;
canMag.Msg[7u] = 0x55u;
Can_Write(&canMag);
Common_Set_LDWS_Flag_Sta(7);
}
void LevelD3_2Menu_6Do(void)
{
GUI_OftenShow_Display();
if (Common_Get_Menu_FacDea_Time_Sta() < 1500u)
{
GUI_BG_DeaDTCClearRetarder1_Display(GUI_DISP_MODE_NORMAL);
}
else
{
Common_Set_Menu_FacDea_Time_Sta(0u);
NextMenu(_DEA_DSP_LEVEL4_2MENU_6);
bCurMenuIDX = _DEA_DSP_LEVEL4_2MENU_6;
}
}
void LevelD3_2Menu_6Exit(void)
{}
/*----经销商模式----清除发动机成功----*/
void LevelD4_2Menu_1Enter(void)
{}
void LevelD4_2Menu_1Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear4_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD4_2Menu_1Exit(void)
{}
void LevelD4_2Menu_2Enter(void)
{}
void LevelD4_2Menu_2Do(void)
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear4_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD4_2Menu_2Exit(void)
{}
void LevelD4_2Menu_3Enter(void)
{}
void LevelD4_2Menu_3Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear4_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD4_2Menu_3Exit(void)
{}
void LevelD4_2Menu_4Enter(void)
{}
void LevelD4_2Menu_4Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear4_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD4_2Menu_4Exit(void)
{}
void LevelD4_2Menu_5Enter(void)
{}
void LevelD4_2Menu_5Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear4_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD4_2Menu_5Exit(void)
{}
void LevelD4_2Menu_6Enter(void)
{}
void LevelD4_2Menu_6Do(void)
{}
{
GUI_OftenShow_Display();
GUI_BG_DeaDTCClear4_Display(GUI_DISP_MODE_NORMAL);
}
void LevelD4_2Menu_6Exit(void)
{}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment