UDS_10Service_Internal.c 1.07 KB
Newer Older
时昊's avatar
时昊 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
#include "UDS_10Service_Internal.h"
#include "Telltales_user.h"
#include "Telltales_Lib.h"

/**
  *10服务重置27服务标志位
  */
void UDS_10Service_S27Init(void)
{
    Ser27_ChangeSessionHandle();
}

/**
  *10服务重置28服务标志位
  */
void UDS_10Service_S28Init(void)
{
    ControlMessageCommunication(networkManagementMsgAndnormalMsg, enableRxAndTx);
}

/**
  *10服务重置2F服务标志位
  */
void UDS_10Service_S2FInit(void)
{
  Set_DIAG_Soundsts(0);
  Set_DIAG_TelltalesCtrlsts(0);
  Set_DIAG_Vehicle_Speedsts(0);
  Set_DIAG_LCDsts(0);
  Set_DIAG_Engine_Speedsts(0);
  Set_DIAG_BACKLIGHTsts(0);
  
}
/**
  *10服务重置31服务标志位
  */
void UDS_10Service_S31Init(void)
{
    S31DID0203RequestFlag = 0;
  
}

/**
  *10服务重置85服务标志位
  */
void UDS_10Service_S85Init(void)
{
    OpenDTCTest();
}

/**
  *写入跳转标志位
  *@param Flag 跳转标志
  */
void WriteJumpBootStatusToDFlash(uint32_t Flag)
{
    DiagFlag.JumpToBootFlag = Flag;
    DFlash_WriteData(WriteProgramValidFlagAddr, (uint32_t *)&DiagFlag.Flag, sizeof(DiagFlag) , WriteFDL);
}