Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IVECO_NS216
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
时昊
IVECO_NS216
Commits
29e8662f
Commit
29e8662f
authored
Jun 04, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加倒挡声音报警
parent
5e0fc306
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
Sound_Alarm.h
source/Appliciation/Sound_Alarm.h
+1
-0
Sound_Alarm_User.c
source/Appliciation/Sound_Alarm_User.c
+1
-0
Sound_Alarm_handle.c
source/Appliciation/Sound_Alarm_handle.c
+20
-1
No files found.
source/Appliciation/Sound_Alarm.h
View file @
29e8662f
...
@@ -66,6 +66,7 @@ typedef enum
...
@@ -66,6 +66,7 @@ typedef enum
SOUND_ALARM_VOLUME
=
0U
,
/*音量*/
SOUND_ALARM_VOLUME
=
0U
,
/*音量*/
SOUND_ALARM_DPF
,
/*DPF再生中*/
SOUND_ALARM_DPF
,
/*DPF再生中*/
SOUND_ALARM_DOOR
,
/*门未关*/
SOUND_ALARM_DOOR
,
/*门未关*/
SOUND_ALARM_R_Gear
,
/*倒挡*/
SOUND_ALARM_RADAR_LOOP
,
/*倒车雷达*/
SOUND_ALARM_RADAR_LOOP
,
/*倒车雷达*/
SOUND_ALARM_RADAR_8
,
/*倒车雷达*/
SOUND_ALARM_RADAR_8
,
/*倒车雷达*/
SOUND_ALARM_RADAR_4
,
/*倒车雷达*/
SOUND_ALARM_RADAR_4
,
/*倒车雷达*/
...
...
source/Appliciation/Sound_Alarm_User.c
View file @
29e8662f
...
@@ -46,6 +46,7 @@ const Sound_Alarm_Attribute_st_t stSoundAlarmAttribute [ SOUND_ALARM_MAX ] = {
...
@@ -46,6 +46,7 @@ const Sound_Alarm_Attribute_st_t stSoundAlarmAttribute [ SOUND_ALARM_MAX ] = {
/*SOUND_ALARM_DPF*/
{
SOUND_VARIETY_1
,
1U
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_BREAK_NONE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_DPF*/
{
SOUND_VARIETY_1
,
1U
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_BREAK_NONE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_DOOR*/
{
SOUND_VARIETY_2
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_DOOR*/
{
SOUND_VARIETY_2
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_R_Gear*/
{
SOUND_VARIETY_2
,
1U
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_BREAK_NONE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_RADAR_LOOP*/
{
SOUND_VARIETY_RADAR_0
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_RADAR_LOOP*/
{
SOUND_VARIETY_RADAR_0
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_RADAR_8*/
{
SOUND_VARIETY_RADAR_8
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_RADAR_8*/
{
SOUND_VARIETY_RADAR_8
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_RADAR_4*/
{
SOUND_VARIETY_RADAR_4
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
/*SOUND_ALARM_RADAR_4*/
{
SOUND_VARIETY_RADAR_4
,
0xFFU
,
SOUND_ALARM_TRIGGER_NORMAL
,
SOUND_ALARM_RECOVER_CONTINUE
,
SOUND_ALARM_NUM_FINISH_RESET
},
...
...
source/Appliciation/Sound_Alarm_handle.c
View file @
29e8662f
...
@@ -736,6 +736,25 @@ void Sound_Alarm_Trigger_HILL_HOLD_MALF(void)
...
@@ -736,6 +736,25 @@ void Sound_Alarm_Trigger_HILL_HOLD_MALF(void)
}
}
}
}
void
Sound_Alarm_Trigger_GEAR_R
(
void
)
{
if
(
SYS_OPR_STAT_IGN_ON
)
{
if
(
Get_CAN_CH0_ID_10FF1021_Sig_ReverseSts
(
)
==
1U
)
{
Sound_Alarm_Request_Normal
(
SOUND_ALARM_R_Gear
);
}
else
{
Sound_Alarm_Delete_Normal
(
SOUND_ALARM_R_Gear
);
}
}
else
{
Sound_Alarm_Delete_Normal
(
SOUND_ALARM_R_Gear
);
}
}
void
Sound_Alarm_Trigger_Time
(
void
)
void
Sound_Alarm_Trigger_Time
(
void
)
{
{
if
(
Get_EngSpeed_Start_Flag
(
)
==
1U
)
if
(
Get_EngSpeed_Start_Flag
(
)
==
1U
)
...
@@ -849,7 +868,7 @@ void Sound_Alarm_Trigger_Service(void)
...
@@ -849,7 +868,7 @@ void Sound_Alarm_Trigger_Service(void)
Sound_Alarm_Trigger_SPEED_LIMIT
(
);
Sound_Alarm_Trigger_SPEED_LIMIT
(
);
Sound_Alarm_Trigger_UREA
(
);
Sound_Alarm_Trigger_UREA
(
);
Sound_Alarm_Trigger_TPMS
(
);
Sound_Alarm_Trigger_TPMS
(
);
Sound_Alarm_Trigger_GEAR_R
(
);
Sound_Alarm_Trigger_SAFE_BELT
(
);
Sound_Alarm_Trigger_SAFE_BELT
(
);
Sound_Alarm_Trigger_TBox
(
);
Sound_Alarm_Trigger_TBox
(
);
...
...
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