Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
768639af
Commit
768639af
authored
Aug 31, 2024
by
王雅楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:新增故障码ECU_0x402信号掉线判断
parent
a4f3b9c3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
207 additions
and
138 deletions
+207
-138
FaultCode.c
Firmware/Source/Application/FaultCode.c
+19
-0
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+188
-138
No files found.
Firmware/Source/Application/FaultCode.c
View file @
768639af
#include "FaultCode.h"
#include "FaultCode.h"
#include "CAN_CH0_CAN_Communication_Matrix.h"
static
_st_Init
FaultCodeInit
;
static
_st_Init
FaultCodeInit
;
static
uint16_t
u16FaultCodeDtcCount
=
0
;
static
uint16_t
u16FaultCodeDtcCount
=
0
;
static
uint16_t
u16FaultCodeDtcCountBack
=
0
;
static
uint16_t
u16FaultCodeDtcCountBack
=
0
;
...
@@ -395,3 +396,21 @@ uint8_t Get_FaultCode_Valid(void)
...
@@ -395,3 +396,21 @@ uint8_t Get_FaultCode_Valid(void)
{
{
return
u8FaultCodeValid
;
return
u8FaultCodeValid
;
}
}
/*
*NAME : Get_FaultCode_Lost()
*FUNCTION : 获取发送故障码的CAN是否掉线
*RETURN : 0-LOST 1-ONLINE
*/
uint8_t
Get_FaultCode_Lost
(
void
)
{
uint8_t
u8FaultCodeLost
=
0
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_402_Msg_Count
)
==
CAN_SIG_LOST
)
{
u8FaultCodeLost
=
0
;
}
else
{
u8FaultCodeLost
=
1
;
}
return
u8FaultCodeLost
;
}
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
768639af
This diff is collapsed.
Click to expand it.
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