Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
108ed7ec
Commit
108ed7ec
authored
Jun 10, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加不同CAN数据处理
parent
863aed76
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
6 deletions
+24
-6
Key_user.c
source/Application/APP/Key/Key_user.c
+1
-1
Common_Interface.c
source/Application/RTE/Common_Interface.c
+12
-0
Common_Interface.h
source/Application/RTE/Common_Interface.h
+3
-0
RTE_CAN.c
source/Application/RTE/RTE_CAN.c
+8
-5
No files found.
source/Application/APP/Key/Key_user.c
View file @
108ed7ec
...
...
@@ -55,7 +55,7 @@ void Key_Operation_Up(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
/*主界面 一级菜单 二级菜单
那
*/
/*主界面 一级菜单 二级菜单*/
if
(((
bCurMenuIDX
>=
_MN_DSP_LEVEL1MENU_1
)
&&
(
bCurMenuIDX
<=
_MN_DSP_LEVEL2_6_MENU_2
))
||
((
bCurMenuIDX
>=
_MN_DSP_LEVEL3_4_MENU_41
)
&&
(
bCurMenuIDX
<=
_MN_DSP_LEVEL3_4_MENU_47
)))
{
...
...
source/Application/RTE/Common_Interface.c
View file @
108ed7ec
...
...
@@ -87,6 +87,8 @@ static uint32_t LOW_VOLTAGE;
static
uint32_t
TPMS_TEST_OFF_TIME
;
static
uint32_t
Menu_FacDea_Time
;
uint32_t
UdsCanIDSta
;
#pragma ghs section bss=".myNonInitArea"
static
uint32_t
Menu_Off_Time
;
#pragma ghs section bss=default
...
...
@@ -136,6 +138,7 @@ void Common_DataInit(void)
Set_18EF1718_Msg_Sta
=
COMMON_InValid
;
//Menu_Off_Time = 0x00u;
UdsCanIDSta
=
0x00u
;
}
/*以下由各个处理模块按需调用*/
...
...
@@ -901,4 +904,13 @@ void Common_Set_K_Line_Value(void)
enResult
=
EEPROM_Write_Data
(
EEPROM_BLOCK_EOL_K_LINE
,
&
K_Line_Set
,
(
sizeof
(
K_Line_Set
)
/
4u
));
//}
}
}
void
Common_Set_UdsCanIDSta
(
uint32_t
Val
)
{
UdsCanIDSta
=
Val
;
}
uint32_t
Common_Get_UdsCanIDSta
(
void
)
{
return
UdsCanIDSta
;
}
\ No newline at end of file
source/Application/RTE/Common_Interface.h
View file @
108ed7ec
...
...
@@ -62,4 +62,7 @@ DataValid_t Common_Get_18EF1718_Msg_Sta(void);
void
ReadDTCEOLValue_Meter_K_LINE
(
void
);
void
Common_Set_K_Line_Value
(
void
);
void
Common_Set_UdsCanIDSta
(
uint32_t
Val
);
uint32_t
Common_Get_UdsCanIDSta
(
void
);
#endif
source/Application/RTE/RTE_CAN.c
View file @
108ed7ec
...
...
@@ -18,6 +18,7 @@
#include "RSCAN.h"
#include "Link_Layer.h"
#include "kwp2000_service.h"
#include "Common_Interface.h"
static
uint16_t
Can_Init_Lock
=
0U
;
...
...
@@ -147,17 +148,19 @@ void Can_Read_Msg(uint32_t m_id, uint8_t m_dlc, uint8_t m_Msg[])
Co_Can_Buff_Set
(
Co_Can_ConvertSubID
(
m_id
),
m_dlc
,
m_Msg
);
//if ((m_id == DIAG_ID_Rx_FUN) || (m_id == DIAG_ID_Rx_PHY))
//{
// DoCAN_L_Data_Indication(m_id, m_dlc, m_Msg);
//}
if
((
m_id
==
0x18DAF003
)
||
(
m_id
==
0x18DAF00B
))
{
Common_Set_UdsCanIDSta
(
m_id
);
LK_Link_main
(
m_id
,
(
uint8_t
*
)
m_Msg
,
(
m_dlc
&
0x0f
));
}
}
void
Can_Read_Msg2
(
uint32_t
m_id
,
uint8_t
m_dlc
,
uint8_t
m_Msg
[])
{
if
(
m_id
==
ID_BCM_ResAddr
)
{
LK_Link_main
(
ID_BCM_ResAddr
,
(
uint8_t
*
)
m_Msg
,
(
m_dlc
&
0x0f
));
Common_Set_UdsCanIDSta
(
m_id
);
LK_Link_main
(
m_id
,
(
uint8_t
*
)
m_Msg
,
(
m_dlc
&
0x0f
));
}
if
((
m_id
==
DIAG_ID_Rx_FUN
)
||
(
m_id
==
DIAG_ID_Rx_PHY
))
{
...
...
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