From d812c56b447c80d61477ead368a956e81de5b4e1 Mon Sep 17 00:00:00 2001 From: cfif Date: Fri, 5 Dec 2025 10:47:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StatusData.h | 164 +++++++++++++-------------------------------------- 1 file changed, 41 insertions(+), 123 deletions(-) diff --git a/StatusData.h b/StatusData.h index bb3a1e7..5cf2c25 100644 --- a/StatusData.h +++ b/StatusData.h @@ -128,7 +128,7 @@ typedef struct { typedef struct { uint16_t Pwm_Front; uint16_t Pwm_Rear; -} tStatus_Pwm1; +} tStatus_Pwm; typedef struct { // 0 = Off!0 = On @@ -144,7 +144,7 @@ typedef struct { //[0x00] Off //[0x01..0xFF] On; Inverse value: 0x01 uint8_t LowTempValve; -} tStatus_Pwm2; +} tStatus_eComp; // 2 Byte; Float; 1 significant digits; HighLow (Motorola) //[0x00..0x03E8] ; y = (1/10)x %; Lower limit (phys): 0 %; Upper limit (phys): 100 %; @@ -172,102 +172,41 @@ typedef struct { eAromatizationIntensivity AromatizationIntensivity; } tStatus_Ionizer_Aroma; +// 1 Byte [0x00] Central [0x01..0xFF] Side; Inverse value: 0x01 +typedef struct { + uint8_t Duct_FL; + uint8_t Duct_FR; + uint8_t Duct_RL; + uint8_t Duct_RR; +} tStatus_Duct_Select; typedef struct { - uint16_t Motor_Def; -} tStatus_Motor_Def; + // 2 Byte; HighLow (Motorola) + uint16_t Calibration_Num; + // 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) + uint8_t Internal_Cal_Ver[4]; +} tStatus_Activated_Cal_Num; +// 1 Byte +//[0x01] defaultSession +//[0x02] programmingSession +//[0x03] extendedDiagnosticSession +//Invalid values: +//[0x00] No signal (Not supported) +//[0x04..0x80] No signal (Not supported) +//[0x81..0x83] Undefined +//[0x84..0xFF] No signal (Not supported) typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_SFL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_CFL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Foot_1FL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Foot_2FL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_CFR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_SFR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Foot_1FR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Foot_2FR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_SRL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_CRL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Foot_RL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_CRR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Vent_SRR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Foot_RR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Temp1_FL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Temp2_FL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Temp1_FR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Temp2_FR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Temp_RL; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_Temp_RR; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_REC; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_OSA; - -typedef struct { - uint16_t Percentage; -} tStatus_Motor_SealingValve; + uint16_t Active_Diagnostic_Session; +} tStatus_Active_Diagnostic_Session; typedef struct { tStatus_CCU_Configuration Status_CCU_Configuration; @@ -275,39 +214,18 @@ typedef struct { tStatus_Actuator Status_Actuator_FB; tStatus_Duct_Tgt Status_Duct_Tgt; tStatus_Eva_Tgt Status_Eva_Tgt; + + tStatus_Activated_Cal_Num Status_Activated_Cal_Num; + tStatus_Active_Diagnostic_Session Status_Active_Diagnostic_Session; + tStatus_IO Status_IO; - tStatus_Pwm1 Status_Pwm1; - tStatus_Pwm2 Status_Pwm2; + tStatus_Pwm Status_Pwm; + tStatus_eComp Status_eComp; tStatus_External Status_External; + tStatus_EMS Status_EMS; tStatus_Ionizer_Aroma Status_Ionizer_Aroma; - tStatus_Motor_Def Status_Motor_Def; - tStatus_Motor_Vent_SFL Status_Motor_Vent_SFL; - tStatus_Motor_Vent_CFL Status_Motor_Vent_CFL; - tStatus_Motor_Foot_1FL Status_Motor_Foot_1FL; - tStatus_Motor_Foot_2FL Status_Motor_Foot_2FL; - tStatus_Motor_Vent_CFR Status_Motor_Vent_CFR; - tStatus_Motor_Vent_SFR Status_Motor_Vent_SFR; - tStatus_Motor_Foot_1FR Status_Motor_Foot_1FR; - tStatus_Motor_Foot_2FR Status_Motor_Foot_2FR; - tStatus_Motor_Vent_SRL Status_Motor_Vent_SRL; - tStatus_Motor_Vent_CRL Status_Motor_Vent_CRL; - tStatus_Motor_Foot_RL Status_Motor_Foot_RL; - tStatus_Motor_Vent_CRR Status_Motor_Vent_CRR; - tStatus_Motor_Vent_SRR Status_Motor_Vent_SRR; - tStatus_Motor_Foot_RR Status_Motor_Foot_RR; - tStatus_Motor_Temp1_FL Status_Motor_Temp1_FL; - tStatus_Motor_Temp2_FL Status_Motor_Temp2_FL; - tStatus_Motor_Temp1_FR Status_Motor_Temp1_FR; - tStatus_Motor_Temp2_FR Status_Motor_Temp2_FR; - tStatus_Motor_Temp_RL Status_Motor_Temp_RL; - tStatus_Motor_Temp_RR Status_Motor_Temp_RR; - tStatus_Motor_REC Status_Motor_REC; - tStatus_Motor_OSA Status_Motor_OSA; - tStatus_Motor_SealingValve Status_Motor_SealingValve; - - - + tStatus_Duct_Select Status_Duct_Select; } tStatusData;