Обновление

This commit is contained in:
cfif 2026-02-24 14:54:37 +03:00
parent 3717711037
commit ba8cc5663e
2 changed files with 657 additions and 695 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,33 +6,7 @@
#define HVAC_M7_STATUSDATA_H #define HVAC_M7_STATUSDATA_H
#include "stdint.h" #include "stdint.h"
#include "DataNonVolatile.h"
// BCD в двоичное число
#define bcd_to_binary(bcd) (((bcd >> 4) * 10) + (bcd & 0x0F))
// Двоичное число в BCD
#define binary_to_bcd(binary) (((binary / 10) << 4) | (binary % 10))
typedef struct __attribute__ ((packed)) {
uint8_t year; // BCD: 0x18 = 2018 год
uint8_t month; // BCD: 0x10 = октябрь
uint8_t day; // BCD: 0x16 = 16 число
char tester_serial[9]; // ASCII: "123456789"
} tFingerprint;
// Packet [4] Byte
//Data Objects:
//[0:0] Date year (yy), Unsigned (1Byte)
// - 02 99
//[1:0] Date month (mm), Unsigned (1Byte)
// - 01 12
//[2:0] Date day (dd), Unsigned (1Byte)
// - 01-31
//[3:0] Revision, Unsigned (1Byte)
typedef struct {
uint8_t SW[4];
uint8_t MBD[4];
} tInternal_SW_Version;
typedef enum { typedef enum {
AROMA_NOT_PRESENT = 0, AROMA_NOT_PRESENT = 0,
@ -289,19 +263,7 @@ typedef struct {
tStatus_Duct_Select Status_Duct_Select; tStatus_Duct_Select Status_Duct_Select;
ecu_identification_t ecu;
tInternal_SW_Version Internal_SW_Version;
char Software_classification_identification[15];
tFingerprint Tester_Fingerprint;
tFingerprint Boot_SW_Fingerprint;
tFingerprint Application_SW_Fingerprint;
char Spare_Part_Number[27];
char Serial_Number[26];
char Vehicle_Identification[17];
char ECU_hardware_number_NAMI[13];
char ECU_hardware_number_ECU_supplier[2];
char ECU_software_number_ECU_supplier[2];
char ECU_boot_software_identification_ECU_supplier[2];
} tStatusData; } tStatusData;
@ -332,4 +294,5 @@ extern const eUds_WriteDataByIdentifier_2E_com uds_WriteDataByIdentifier_2E_com_
extern const eUds_IoDataByIdentifier_2F_com uds_IoDataByIdentifier_2F_com_CF[256]; extern const eUds_IoDataByIdentifier_2F_com uds_IoDataByIdentifier_2F_com_CF[256];
extern const eUds_IoDataByIdentifier_2F_com uds_IoDataByIdentifier_2F_com_F1[256]; extern const eUds_IoDataByIdentifier_2F_com uds_IoDataByIdentifier_2F_com_F1[256];
extern tStatusData statusData;
#endif //HVAC_M7_STATUSDATA_H #endif //HVAC_M7_STATUSDATA_H