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
1f470d3a
Commit
1f470d3a
authored
Aug 31, 2024
by
王雅楠
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangyanan' into 'dev'
Wangyanan See merge request
!70
parents
a4f3b9c3
c6a5ec5b
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
462 additions
and
182 deletions
+462
-182
FaultCode.c
Firmware/Source/Application/FaultCode.c
+19
-0
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+443
-182
No files found.
Firmware/Source/Application/FaultCode.c
View file @
1f470d3a
#include "FaultCode.h"
#include "CAN_CH0_CAN_Communication_Matrix.h"
static
_st_Init
FaultCodeInit
;
static
uint16_t
u16FaultCodeDtcCount
=
0
;
static
uint16_t
u16FaultCodeDtcCountBack
=
0
;
...
...
@@ -395,3 +396,21 @@ uint8_t Get_FaultCode_Valid(void)
{
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 @
1f470d3a
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