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
cb64ff16
Commit
cb64ff16
authored
Jun 13, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加胎压学习id获取
parent
40650f03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
CAN_CH0_CAN_Communication_Matrix.c
...ce/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.c
+14
-1
CAN_CH0_CAN_Communication_Matrix.h
...ce/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.h
+2
-0
No files found.
Firmware/Source/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.c
View file @
cb64ff16
...
...
@@ -367,7 +367,20 @@ uint8_t Get_CAN_CH0_ID_101_Sig_ECU_101_Checksum(void)
{
return
(((
uint8_t
)((
uint8_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x101_Msg_Count
,
7u
)
>>
0u
)
&
0xFFu
));
}
uint32_t
Get_CAN_CH0_ID_373_Sig_Front_id
(
void
)
{
return
(((
uint32_t
)((
uint32_t
)((
uint32_t
)((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
0u
)
>>
0u
)
&
0xFFu
)
<<
8u
)
+
\
((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
1u
)
>>
0u
)
&
0xFFu
)
<<
8u
)
+
\
((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
2u
)
>>
0u
)
&
0xFFu
)
<<
8u
)
+
\
((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
3u
)
>>
0u
)
&
0xFFu
));
}
uint32_t
Get_CAN_CH0_ID_373_Sig_Rear_id
(
void
)
{
return
(((
uint32_t
)((
uint32_t
)((
uint32_t
)((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
4u
)
>>
0u
)
&
0xFFu
)
<<
8u
)
+
\
((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
5u
)
>>
0u
)
&
0xFFu
)
<<
8u
)
+
\
((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
6u
)
>>
0u
)
&
0xFFu
)
<<
8u
)
+
\
((
uint32_t
)((
uint32_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x373_Msg_Count
,
7u
)
>>
0u
)
&
0xFFu
));
}
uint8_t
Co_Can_ConvertSubID_CAN_CH0
(
uint32_t
MsgID
)
{
uint8_t
u8Result
=
CAN_CH0_ID_TOTAL_MAX
;
...
...
Firmware/Source/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.h
View file @
cb64ff16
...
...
@@ -97,6 +97,8 @@ extern uint8_t Get_CAN_CH0_ID_101_Sig_ECU_Engine_Speed_State(void);
extern
uint16_t
Get_CAN_CH0_ID_101_Sig_ECU_Engine_Speed
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_101_Sig_ECU_101_Livecounter
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_101_Sig_ECU_101_Checksum
(
void
);
extern
uint32_t
Get_CAN_CH0_ID_373_Sig_Front_id
(
void
);
extern
uint32_t
Get_CAN_CH0_ID_373_Sig_Rear_id
(
void
);
extern
uint8_t
Co_Can_ConvertSubID_CAN_CH0
(
uint32_t
MsgID
);
...
...
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