Обновление
This commit is contained in:
parent
5a2cc92c41
commit
c9db613d73
|
|
@ -91,11 +91,31 @@ static uint32_t diagnostic_UDS_ReadDTCInformation_19_dtc(tDiagnostic *env, void
|
|||
return size;
|
||||
}
|
||||
|
||||
|
||||
static uint32_t diagnostic_UDS_ReadDTCSupportDTC_19_dtc(tDiagnostic *env, void *extEnv) {
|
||||
|
||||
tDiagnosticDTC *diagnosticDTC = (tDiagnosticDTC *) extEnv;
|
||||
|
||||
uint32_t size = 0;
|
||||
|
||||
for (uint8_t i = 0; i < COUNT_DTC_CODE_ERROR; ++i) {
|
||||
|
||||
diagnosticDTC->dataResponse[size] = dtc_codes[i].DTCHighByte;
|
||||
diagnosticDTC->dataResponse[size + 1] = dtc_codes[i].DTCMiddleByte;
|
||||
diagnosticDTC->dataResponse[size + 2] = dtc_codes[i].DTCLowByte;
|
||||
diagnosticDTC->dataResponse[size + 3] = 0;
|
||||
size += 4;
|
||||
}
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
const eDiagnosticState diagnostic_com[] = {
|
||||
{diagnostic_ClearDiagnosticInformation_14, "diagnostic_ClearDiagnosticInformation_14"},
|
||||
{diagnostic_UDS_ReadDTCInformation_19_count, "diagnostic_UDS_ReadDTCInformation_19_count"},
|
||||
{diagnostic_UDS_ReadDTCInformation_19_dtc, "diagnostic_UDS_ReadDTCInformation_19_dtc"},
|
||||
{NULL, ""},
|
||||
{diagnostic_UDS_ReadDTCSupportDTC_19_dtc, "diagnostic_UDS_ReadDTCSupportDTC_19_dtc"},
|
||||
{NULL, ""},
|
||||
{NULL, ""},
|
||||
{NULL, ""},
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@
|
|||
typedef enum {
|
||||
DIAGNOSTIC_UDS_ClearDiagnosticInformation_14 = 0x00,
|
||||
DIAGNOSTIC_UDS_ReadDTCInformation_19_1 = 0x01,
|
||||
DIAGNOSTIC_UDS_ReadDTCInformation_19_2 = 0x2
|
||||
DIAGNOSTIC_UDS_ReadDTCInformation_19_2 = 0x02,
|
||||
DIAGNOSTIC_UDS_ReadDTCInformation_19_A = 0x03
|
||||
} eDiagnosticType;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue