Commit 20130fcc authored by 陈家乐's avatar 陈家乐

🐞 fix:外发位改为8

parent f133d58c
......@@ -12,17 +12,19 @@ typedef union
uint8_t Msg [ 8 ];
struct
{
uint32_t Res0 : 3;
uint32_t TCS_TX : 1;
uint32_t Res1: 4;
uint8_t Res0 : 3;
uint8_t TCS_TX : 1;
uint8_t Res1: 4;
uint32_t Res2: 8;
uint32_t Res3: 16;
uint32_t Res4: 16;
uint32_t Res5: 8;
uint8_t Res2: 8;
uint8_t Res3: 8;
uint8_t Res6 : 8;
uint8_t Res4: 8;
uint8_t Res7 : 8;
uint8_t Res5: 8;
uint32_t CheckSum: 5;
uint32_t AliveCounter: 3;
uint8_t CheckSum: 5;
uint8_t AliveCounter: 3;
} Sig;
} CANMsg220Union;
......@@ -31,24 +33,24 @@ typedef union
uint8_t Msg [ 8 ];
struct
{
uint32_t Coolant_Seg_TX : 4;
uint32_t Fuel_Seg_TX : 4;
uint8_t Coolant_Seg_TX : 4;
uint8_t Fuel_Seg_TX : 4;
uint32_t Res0 : 8;
uint8_t Res0 : 8;
uint32_t Fuel_Res_TX : 8;
uint8_t Fuel_Res_TX : 8;
uint32_t Vsppe_H3_TX : 3;
uint32_t Res1 : 1;
uint32_t Coolant_Warn_TX : 1;
uint32_t Res2 : 2;
uint32_t Uint_TX : 1;
uint8_t Vsppe_H3_TX : 3;
uint8_t Res1 : 1;
uint8_t Coolant_Warn_TX : 1;
uint8_t Res2 : 2;
uint8_t Uint_TX : 1;
uint32_t Vsppe_L8_TX : 8;
uint8_t Vsppe_L8_TX : 8;
uint32_t ODO_TX_H : 8;
uint32_t ODO_TX_M : 8;
uint32_t ODO_TX_L : 8;
uint8_t ODO_TX_H : 8;
uint8_t ODO_TX_M : 8;
uint8_t ODO_TX_L : 8;
} Sig;
} CANMsg6EEUnion;
......@@ -58,16 +60,17 @@ typedef union
uint8_t Msg [ 8 ];
struct
{
uint32_t Espeed_TX : 8;
uint8_t Espeed_TX : 8;
uint32_t Coolant_TX : 8;
uint8_t Coolant_TX : 8;
uint32_t TripA_H : 8;
uint32_t TripA_L : 8;
uint8_t TripA_H : 8;
uint8_t TripA_L : 8;
uint32_t TripB : 16;
uint32_t Res1 : 16;
uint8_t TripB : 8;
uint8_t Res2 : 8;
uint8_t Res1 : 8;
uint8_t Res3 : 8;
} Sig;
} CANMsg6EFUnion;
......@@ -77,10 +80,10 @@ typedef union
uint8_t Msg [ 8 ];
struct
{
uint16_t Front_Pressure_TX_H : 8;
uint16_t Front_Pressure_TX_L : 8;
uint16_t Rear_Pressure_TX_H : 8;
uint16_t Rear_Pressure_TX_L : 8;
uint8_t Front_Pressure_TX_H : 8;
uint8_t Front_Pressure_TX_L : 8;
uint8_t Rear_Pressure_TX_H : 8;
uint8_t Rear_Pressure_TX_L : 8;
//uint32_t Front_Air_Leakage_TX : 1;
//uint32_t Rear_Air_Leakage_TX : 1;
//uint32_t Front_Low_Voltage_TX : 1;
......@@ -89,7 +92,10 @@ typedef union
//uint32_t Rear_High_Temp_TX : 1;
//uint32_t Res0 : 2;
uint32_t Res1 : 32;
uint8_t Res1 : 8;
uint8_t Res2 : 8;
uint8_t Res3 : 8;
uint8_t Res4 : 8;
} Sig;
} CANMsg450Union;
......@@ -104,8 +110,9 @@ typedef union
uint8_t TPMS_LEARN_CND_BYTE2 : 8;
uint8_t TPMS_LEARN_CND_BYTE3 : 8;
uint8_t TPMS_LEARN_CND_BYTE4 : 8;
uint32_t Res1 : 24;
uint8_t Res1 : 8;
uint8_t Res2 : 8;
uint8_t Res13 : 8;
} Sig;
} CANMsg580Union;
......
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