Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
20130fcc
Commit
20130fcc
authored
Aug 12, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:外发位改为8
parent
f133d58c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
38 deletions
+45
-38
Can_App.h
Firmware/Source/Application/CAN_User/Can_App.h
+45
-38
No files found.
Firmware/Source/Application/CAN_User/Can_App.h
View file @
20130fcc
...
...
@@ -12,17 +12,19 @@ typedef union
uint8_t
Msg
[
8
];
struct
{
uint32_t
Res0
:
3
;
uint32_t
TCS_TX
:
1
;
uint32_t
Res1
:
4
;
uint32_t
Res2
:
8
;
uint32_t
Res3
:
16
;
uint32_t
Res4
:
16
;
uint32_t
Res5
:
8
;
uint32_t
CheckSum
:
5
;
uint32_t
AliveCounter
:
3
;
uint8_t
Res0
:
3
;
uint8_t
TCS_TX
:
1
;
uint8_t
Res1
:
4
;
uint8_t
Res2
:
8
;
uint8_t
Res3
:
8
;
uint8_t
Res6
:
8
;
uint8_t
Res4
:
8
;
uint8_t
Res7
:
8
;
uint8_t
Res5
:
8
;
uint8_t
CheckSum
:
5
;
uint8_t
AliveCounter
:
3
;
}
Sig
;
}
CANMsg220Union
;
...
...
@@ -31,24 +33,24 @@ typedef union
uint8_t
Msg
[
8
];
struct
{
uint
32
_t
Coolant_Seg_TX
:
4
;
uint
32
_t
Fuel_Seg_TX
:
4
;
uint
8
_t
Coolant_Seg_TX
:
4
;
uint
8
_t
Fuel_Seg_TX
:
4
;
uint
32
_t
Res0
:
8
;
uint
8
_t
Res0
:
8
;
uint
32
_t
Fuel_Res_TX
:
8
;
uint
8
_t
Fuel_Res_TX
:
8
;
uint
32
_t
Vsppe_H3_TX
:
3
;
uint
32
_t
Res1
:
1
;
uint
32
_t
Coolant_Warn_TX
:
1
;
uint
32
_t
Res2
:
2
;
uint
32
_t
Uint_TX
:
1
;
uint
8
_t
Vsppe_H3_TX
:
3
;
uint
8
_t
Res1
:
1
;
uint
8
_t
Coolant_Warn_TX
:
1
;
uint
8
_t
Res2
:
2
;
uint
8
_t
Uint_TX
:
1
;
uint
32
_t
Vsppe_L8_TX
:
8
;
uint
8
_t
Vsppe_L8_TX
:
8
;
uint
32
_t
ODO_TX_H
:
8
;
uint
32
_t
ODO_TX_M
:
8
;
uint
32
_t
ODO_TX_L
:
8
;
uint
8
_t
ODO_TX_H
:
8
;
uint
8
_t
ODO_TX_M
:
8
;
uint
8
_t
ODO_TX_L
:
8
;
}
Sig
;
}
CANMsg6EEUnion
;
...
...
@@ -58,16 +60,17 @@ typedef union
uint8_t
Msg
[
8
];
struct
{
uint32_t
Espeed_TX
:
8
;
uint32_t
Coolant_TX
:
8
;
uint8_t
Espeed_TX
:
8
;
uint32_t
TripA_H
:
8
;
uint32_t
TripA_L
:
8
;
uint8_t
Coolant_TX
:
8
;
uint32_t
TripB
:
16
;
uint8_t
TripA_H
:
8
;
uint8_t
TripA_L
:
8
;
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
{
uint
16
_t
Front_Pressure_TX_H
:
8
;
uint
16
_t
Front_Pressure_TX_L
:
8
;
uint
16
_t
Rear_Pressure_TX_H
:
8
;
uint
16
_t
Rear_Pressure_TX_L
:
8
;
uint
8
_t
Front_Pressure_TX_H
:
8
;
uint
8
_t
Front_Pressure_TX_L
:
8
;
uint
8
_t
Rear_Pressure_TX_H
:
8
;
uint
8
_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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment