Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
95b03818
Commit
95b03818
authored
Feb 16, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:新增报文0x17A及相关信号
parent
301c334d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
CAN_CH0_CAN_Communication_Matrix.c
...ce/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.c
+18
-0
CAN_CH0_CAN_Communication_Matrix.h
...ce/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.h
+3
-0
No files found.
Firmware/Source/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.c
View file @
95b03818
...
...
@@ -176,6 +176,16 @@ const st_CANMsgAttribute CAN_CH0_CAN_MSG_CONST_ARRAY[CAN_CH0_ID_TOTAL_MAX] =
((
void
*
)
0
),
((
void
*
)
0
),
},
{
{
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
},
{
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
},
{
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
,
0x00u
},
500ul
,
0x17Aul
,
((
void
*
)
0
),
((
void
*
)
0
),
((
void
*
)
0
),
},
};
void
System_Indicator_ON_callback
(
canlib_uint8_t
CopyData
[])
{
...
...
@@ -411,6 +421,11 @@ uint8_t Get_CAN_CH0_ID_18E_Sig_EMS_FuelRemainLevel(void)
return
(((
uint8_t
)((
uint8_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x18E_Msg_Count
,
0u
)
>>
4u
)
&
0xFu
));
}
uint8_t
Get_CAN_CH0_ID_17A_Sig_MBMS_StatSoc
(
void
)
{
return
(((
uint8_t
)((
uint8_t
)
CAN_MSG_Read
(
CAN_CH0
,
CAN_CH0_ID_CAN_0x17A_Msg_Count
,
4u
)
>>
0u
)
&
0xFFu
));
}
uint8_t
Co_Can_ConvertSubID_CAN_CH0
(
uint32_t
MsgID
)
{
uint8_t
u8Result
=
CAN_CH0_ID_TOTAL_MAX
;
...
...
@@ -464,6 +479,9 @@ uint8_t Co_Can_ConvertSubID_CAN_CH0(uint32_t MsgID)
case
CAN_CH0_ID_CAN_0x18E_Msg
:
u8Result
=
CAN_CH0_ID_CAN_0x18E_Msg_Count
;
break
;
case
CAN_CH0_ID_CAN_0x17A_Msg
:
u8Result
=
CAN_CH0_ID_CAN_0x17A_Msg_Count
;
break
;
default:
u8Result
=
CAN_CH0_ID_TOTAL_MAX
;
break
;
...
...
Firmware/Source/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.h
View file @
95b03818
...
...
@@ -27,6 +27,7 @@ typedef enum
CAN_CH0_ID_CAN_0x225_Msg_Count
,
CAN_CH0_ID_CAN_0x234_Msg_Count
,
CAN_CH0_ID_CAN_0x18E_Msg_Count
,
CAN_CH0_ID_CAN_0x17A_Msg_Count
,
CAN_CH0_ID_TOTAL_MAX
,
}
CAN_CH0_CAN_MSG_ID_t
;
...
...
@@ -71,6 +72,7 @@ extern const st_CAN_SendAttribute CAN_CH0_CANSendAttr[CAN_CH0_ID_SEND_TOTAL]
#define CAN_CH0_ID_CAN_0x225_Msg 0x225ul
#define CAN_CH0_ID_CAN_0x234_Msg 0x234ul
#define CAN_CH0_ID_CAN_0x18E_Msg 0x18Eul
#define CAN_CH0_ID_CAN_0x17A_Msg 0x17Aul
...
...
@@ -117,6 +119,7 @@ extern uint8_t Get_CAN_CH0_ID_220_Sig_VCU_KeySts(void);
extern
uint8_t
Get_CAN_CH0_ID_225_Sig_VCU_EmsFltLv3
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_234_Sig_EMS_EngineOilLow
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_18E_Sig_EMS_FuelRemainLevel
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_17A_Sig_MBMS_StatSoc
(
void
);
...
...
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