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
7b131bd3
Commit
7b131bd3
authored
Nov 29, 2021
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整报警调度
parent
41651a28
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23896 additions
and
23870 deletions
+23896
-23870
project
ghs/project
+0
-0
project.hex
ghs/project.hex
+22313
-22311
project.siz
ghs/project.siz
+1
-1
Data_EngineSpeed.c
source/Application/APP/Data_EngineSpeed/Data_EngineSpeed.c
+5
-1
Popup_Scheduler.c
source/Application/Alarm/Popup_Scheduler.c
+1492
-1475
Popup_Scheduler.h
source/Application/Alarm/Popup_Scheduler.h
+70
-69
CAN_Communication_Matrix.c
...Application/CAN_APP_NM/CAN_App/CAN_Communication_Matrix.c
+13
-13
DisplaySch_user.c
source/Application/Graphic/UE/DisplaySch_user.c
+2
-0
No files found.
ghs/project
View file @
7b131bd3
No preview for this file type
ghs/project.hex
View file @
7b131bd3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
ghs/project.siz
View file @
7b131bd3
project .intvect 1536
project .intvect 1536
project .text 3201
08
project .text 3201
72
project .rodata 411103
project .rodata 411103
project .secinfo 120
project .secinfo 120
project .syscall 6
project .syscall 6
...
...
source/Application/APP/Data_EngineSpeed/Data_EngineSpeed.c
View file @
7b131bd3
...
@@ -86,7 +86,11 @@ void Tacho_Processing_Service(void)
...
@@ -86,7 +86,11 @@ void Tacho_Processing_Service(void)
u32Result
+=
500u
;
u32Result
+=
500u
;
u32Result
/=
1000u
;
u32Result
/=
1000u
;
if
(
u32Result
>
3000u
)
if
(
u32Result
<
330u
)
{
u32Result
=
0u
;
}
else
if
(
u32Result
>
3000u
)
{
{
u32Result
=
3000u
;
u32Result
=
3000u
;
}
}
...
...
source/Application/Alarm/Popup_Scheduler.c
View file @
7b131bd3
...
@@ -209,10 +209,21 @@ void Popup_Scheduling_Service ( void )
...
@@ -209,10 +209,21 @@ void Popup_Scheduling_Service ( void )
break
;
break
;
case
POPUP_CUT_NOT
:
case
POPUP_CUT_NOT
:
//第四组报警0.8秒交互
if
(
PopupAttributeTable
[
s_PopupScheduling
.
CurPopupID
].
Priority
==
2
)
{
if
(
s_PopupScheduling
.
Timer
<
POPUP_DISP_TIME_NORMAL_FLAG
)
{
IsReturn
=
1u
;
}
}
else
{
if
(
s_PopupScheduling
.
Timer
<
POPUP_DISP_TIME_NORMAL
)
if
(
s_PopupScheduling
.
Timer
<
POPUP_DISP_TIME_NORMAL
)
{
{
IsReturn
=
1u
;
IsReturn
=
1u
;
}
}
}
break
;
break
;
default:
default:
...
@@ -782,6 +793,7 @@ static void Popup_Update_Status ( uint16_t PopupID )
...
@@ -782,6 +793,7 @@ static void Popup_Update_Status ( uint16_t PopupID )
*@Return: none.
*@Return: none.
*@Note: none.
*@Note: none.
**********************************************************************************************************/
**********************************************************************************************************/
uint8_t
hyq_1
,
hyq_2
;
static
struct
PopupList
*
Popup_Polling_Next
(
struct
PopupList
*
CurPopup
)
static
struct
PopupList
*
Popup_Polling_Next
(
struct
PopupList
*
CurPopup
)
{
{
struct
PopupList
*
NextPopup
=
POPUPLIB_NULL
;
struct
PopupList
*
NextPopup
=
POPUPLIB_NULL
;
...
@@ -802,12 +814,46 @@ static struct PopupList *Popup_Polling_Next ( struct PopupList *CurPopup )
...
@@ -802,12 +814,46 @@ static struct PopupList *Popup_Polling_Next ( struct PopupList *CurPopup )
#endif
#endif
while
(
NextPopup
!=
POPUPLIB_NULL
)
while
(
NextPopup
!=
POPUPLIB_NULL
)
{
{
/*原始部分*/
/*
if ( ( NextPopup->Status == POPUP_STATUS_LOOP ) || ( NextPopup->Status == POPUP_STATUS_FIRST ) )
if ( ( NextPopup->Status == POPUP_STATUS_LOOP ) || ( NextPopup->Status == POPUP_STATUS_FIRST ) )
{
{
break;
break;
}
}
NextPopup = NextPopup->next;
*/
/*----test----*/
if
(
PopupAttributeTable
[
NextPopup
->
PopupID
].
Type
!=
POPUP_TYPE_WARNING
)
{
if
((
NextPopup
->
Status
==
POPUP_STATUS_LOOP
)
||
(
NextPopup
->
Status
==
POPUP_STATUS_FIRST
))
{
break
;
}
}
else
{
if
(
NextPopup
->
Status
==
POPUP_STATUS_FIRST
)
break
;
else
if
(
NextPopup
->
Status
==
POPUP_STATUS_LOOP
)
{
/*----test----*/
hyq_1
=
CurPopup
->
PopupID
;
hyq_2
=
NextPopup
->
PopupID
;
/*----test----*/
if
(
PopupAttributeTable
[
NextPopup
->
PopupID
].
Priority
==
PopupAttributeTable
[
CurPopup
->
PopupID
].
Priority
)
break
;
else
{
NextPopup
=
WarningListHead
;
return
NextPopup
;
}
}
}
NextPopup
=
NextPopup
->
next
;
NextPopup
=
NextPopup
->
next
;
/*----test----*/
}
}
}
}
...
@@ -816,9 +862,6 @@ static struct PopupList *Popup_Polling_Next ( struct PopupList *CurPopup )
...
@@ -816,9 +862,6 @@ static struct PopupList *Popup_Polling_Next ( struct PopupList *CurPopup )
if
(
FatalListHead
!=
POPUPLIB_NULL
)
if
(
FatalListHead
!=
POPUPLIB_NULL
)
{
{
NextPopup
=
FatalListHead
;
NextPopup
=
FatalListHead
;
while
(
NextPopup
!=
POPUPLIB_NULL
)
while
(
NextPopup
!=
POPUPLIB_NULL
)
{
{
if
(
(
NextPopup
->
Status
==
POPUP_STATUS_FIRST
)
||
(
NextPopup
->
Status
==
POPUP_STATUS_LOOP
)
)
if
(
(
NextPopup
->
Status
==
POPUP_STATUS_FIRST
)
||
(
NextPopup
->
Status
==
POPUP_STATUS_LOOP
)
)
...
@@ -895,22 +938,8 @@ static void Popup_Fatal_Request ( uint16_t PopupID )
...
@@ -895,22 +938,8 @@ static void Popup_Fatal_Request ( uint16_t PopupID )
{
{
struct
PopupList
*
p1
=
POPUPLIB_NULL
;
struct
PopupList
*
p1
=
POPUPLIB_NULL
;
p1
=
PopupList_Select
(
FatalListHead
,
&
PopupID
);
p1
=
PopupList_Select
(
FatalListHead
,
&
PopupID
);
#if 1 //VC66 组1 组内插入 上位优先.
if
(
p1
==
POPUPLIB_NULL
)
struct
PopupList
*
pwby
=
FatalListHead
;
while
(
pwby
!=
POPUPLIB_NULL
)
{
if
(
pwby
->
PopupID
<
PopupID
)
{
Popup_Delete
(
PopupID
);
return
;
}
pwby
=
pwby
->
next
;
}
#endif
if
(
p1
==
POPUPLIB_NULL
)
{
{
p1
=
HintListHead
;
p1
=
HintListHead
;
while
(
p1
!=
POPUPLIB_NULL
)
while
(
p1
!=
POPUPLIB_NULL
)
...
@@ -929,7 +958,6 @@ static void Popup_Fatal_Request ( uint16_t PopupID )
...
@@ -929,7 +958,6 @@ static void Popup_Fatal_Request ( uint16_t PopupID )
p1
->
Status
=
POPUP_STATUS_FIRST
;
p1
->
Status
=
POPUP_STATUS_FIRST
;
p1
->
next
=
POPUPLIB_NULL
;
p1
->
next
=
POPUPLIB_NULL
;
FatalListHead
=
PopupList_Insert
(
FatalListHead
,
p1
);
FatalListHead
=
PopupList_Insert
(
FatalListHead
,
p1
);
Popup_Cal_CutGrade
(
PopupID
);
Popup_Cal_CutGrade
(
PopupID
);
}
}
}
}
...
@@ -964,8 +992,8 @@ static void Popup_Hint_Request ( uint16_t PopupID )
...
@@ -964,8 +992,8 @@ static void Popup_Hint_Request ( uint16_t PopupID )
if
(
p1
!=
POPUPLIB_NULL
)
if
(
p1
!=
POPUPLIB_NULL
)
{
{
p1
->
PopupID
=
PopupID
;
p1
->
PopupID
=
PopupID
;
if
(
FatalListHead
==
POPUPLIB_NULL
)
//if ( FatalListHead == POPUPLIB_NULL )
{
//{
p1
->
Status
=
POPUP_STATUS_FIRST
;
p1
->
Status
=
POPUP_STATUS_FIRST
;
s_PopupScheduling
.
NewPopupID
=
PopupID
;
s_PopupScheduling
.
NewPopupID
=
PopupID
;
#if POPUP_HINT_CUT_HINT_IMMEDIATELY
#if POPUP_HINT_CUT_HINT_IMMEDIATELY
...
@@ -975,11 +1003,11 @@ static void Popup_Hint_Request ( uint16_t PopupID )
...
@@ -975,11 +1003,11 @@ static void Popup_Hint_Request ( uint16_t PopupID )
#endif
#endif
s_PopupScheduling
.
PollPopupID
=
s_PopupScheduling
.
CurPopupID
;
s_PopupScheduling
.
PollPopupID
=
s_PopupScheduling
.
CurPopupID
;
}
//}
else
//else
{
//{
p1
->
Status
=
POPUP_STATUS_OFF
;
// p1->Status = POPUP_STATUS_OFF;
}
//}
p1
->
next
=
POPUPLIB_NULL
;
p1
->
next
=
POPUPLIB_NULL
;
HintListHead
=
PopupList_Insert
(
HintListHead
,
p1
);
HintListHead
=
PopupList_Insert
(
HintListHead
,
p1
);
}
}
...
@@ -1221,12 +1249,9 @@ static void Popup_Cal_CutGrade_loc ( uint16_t NewPopupID )
...
@@ -1221,12 +1249,9 @@ static void Popup_Cal_CutGrade_loc ( uint16_t NewPopupID )
#endif
#endif
}
}
else
else
{
if
(
PopupAttributeTable
[
NewPopupID
].
Type
!=
POPUP_TYPE_FATAL
)
{
{
//wangboyu -add -begin -2021年8月20日09:27:10
//针对VC66 组1 - 上位优先
s_PopupScheduling
.
CutGrade
=
POPUP_CUT_WAIT_TIME_NORMAL
;
s_PopupScheduling
.
CutGrade
=
POPUP_CUT_WAIT_TIME_NORMAL
;
}
}
}
break
;
break
;
#if POPUP_HIGH_CUT_LOW_TYPE_IMMEDIATELY
#if POPUP_HIGH_CUT_LOW_TYPE_IMMEDIATELY
...
@@ -1269,10 +1294,6 @@ static uint8_t Popup_Compare_Priority ( uint16_t PopupID1, uint16_t PopupID2 )
...
@@ -1269,10 +1294,6 @@ static uint8_t Popup_Compare_Priority ( uint16_t PopupID1, uint16_t PopupID2 )
{
{
uint8_t
ret
=
0u
;
uint8_t
ret
=
0u
;
/*比较类型*/
/*比较类型*/
if
(
PopupAttributeTable
[
PopupID1
].
Type
<
PopupAttributeTable
[
PopupID2
].
Type
)
if
(
PopupAttributeTable
[
PopupID1
].
Type
<
PopupAttributeTable
[
PopupID2
].
Type
)
{
{
...
@@ -1280,10 +1301,6 @@ static uint8_t Popup_Compare_Priority ( uint16_t PopupID1, uint16_t PopupID2 )
...
@@ -1280,10 +1301,6 @@ static uint8_t Popup_Compare_Priority ( uint16_t PopupID1, uint16_t PopupID2 )
}
}
else
if
(
PopupAttributeTable
[
PopupID1
].
Type
==
PopupAttributeTable
[
PopupID2
].
Type
)
else
if
(
PopupAttributeTable
[
PopupID1
].
Type
==
PopupAttributeTable
[
PopupID2
].
Type
)
{
{
/*类型相同,比较主优先级*/
/*类型相同,比较主优先级*/
if
(
PopupAttributeTable
[
PopupID1
].
Priority
<
PopupAttributeTable
[
PopupID2
].
Priority
)
if
(
PopupAttributeTable
[
PopupID1
].
Priority
<
PopupAttributeTable
[
PopupID2
].
Priority
)
{
{
...
...
source/Application/Alarm/Popup_Scheduler.h
View file @
7b131bd3
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#include "TYW_stdint.h"
#include "TYW_stdint.h"
/******************************************************************************
/******************************************************************************
����״̬����
报警状态定义
******************************************************************************/
******************************************************************************/
#define POPUP_STATUS_OFF 0x00u
#define POPUP_STATUS_OFF 0x00u
#define POPUP_STATUS_NEW 0x01u
#define POPUP_STATUS_NEW 0x01u
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#define POPUP_STATUS_CLEAR 0x06u
#define POPUP_STATUS_CLEAR 0x06u
/******************************************************************************
/******************************************************************************
�����л��ȼ�
报警切换等级
******************************************************************************/
******************************************************************************/
#define POPUP_CUT_NOT 0x00u
#define POPUP_CUT_NOT 0x00u
#define POPUP_CUT_IMMEDIATELY 0x01u
#define POPUP_CUT_IMMEDIATELY 0x01u
...
@@ -26,30 +26,31 @@
...
@@ -26,30 +26,31 @@
#define POPUP_CUT_WAIT_TIME_NORMAL 0x03u
#define POPUP_CUT_WAIT_TIME_NORMAL 0x03u
/******************************************************************************
/******************************************************************************
������������
报警策略配置
******************************************************************************/
******************************************************************************/
#define POPUP_DEFINE_FIRST_DISPLAY 0u
/*�״���ʾ��POPUP_CUT_WAIT_TIME_MIN��POPUP_CUT_WAIT_TIME_NORMAL�л���Ҫ�ȴ������������л�*/
#define POPUP_DEFINE_FIRST_DISPLAY 0u
/*首次显示,POPUP_CUT_WAIT_TIME_MIN和POPUP_CUT_WAIT_TIME_NORMAL切换需要等待,否则,立即切换*/
#define POPUP_SAME_CLASS_CUT_IMMEDIATELY 1u
/*ͬ���͵���Ϣ����������ϣ���Ҫ������*/
#define POPUP_SAME_CLASS_CUT_IMMEDIATELY 1u
/*同类型的信息可以立即打断,主要是声音*/
#define POPUP_HIGH_CUT_LOW_TYPE_IMMEDIATELY 1u
/*��������������͵ͣ�=1ʹ�ܣ�=0��ʹ��*/
#define POPUP_HIGH_CUT_LOW_TYPE_IMMEDIATELY 1u
/*类型高立即打断类型低:=1使能,=0不使能*/
#define POPUP_HINT_CUT_HINT_IMMEDIATELY 0u
/*��ʾ����Ϣ���������ʾ����Ϣ��=1ʹ�ܣ�=0��ʹ��*/
#define POPUP_HINT_CUT_HINT_IMMEDIATELY 1u
/*提示类信息立即打断提示类信息:=1使能,=0不使能*/
#define POPUP_WARNING_CUT_HINT_MIN 0u
/*��������Դ����ʾ�࣬����Ҫ�ȴ���Сʱ�䣺=1ʹ�ܣ�=0��ʹ��*/
#define POPUP_WARNING_CUT_HINT_MIN 0u
/*报警类可以打断提示类,但需要等待最小时间:=1使能,=0不使能*/
#define POPUP_CUT_RECOVER 1u
/*����ϵ���Ϣ���ָ���ʾʱ�������Ӵ˿�ʼ��ʾ*/
#define POPUP_CUT_RECOVER 1u
/*被打断的信息,恢复显示时,继续从此开始显示*/
#define POPUP_DOOR_OPEN_REAL 1u
/*门开实时响应,打断其他的信息*/
#define POPUP_DISP_TIME_NORMAL 3u*10u
/*unit = 100ms*/
#define POPUP_DISP_TIME_NORMAL 3u*10u
/*unit = 100ms*/
#define POPUP_DISP_TIME_MIN
8
u
/*unit = 100ms*/
#define POPUP_DISP_TIME_MIN
0u*10
u
/*unit = 100ms*/
#define POPUP_DISP_TIME_NORMAL_FLAG 9
/*unit = 100ms*/
/******************************************************************************
/******************************************************************************
��ѯģʽ����
查询模式定义
******************************************************************************/
******************************************************************************/
#define POPUP_POLLING_FORWARD 0x00u
#define POPUP_POLLING_FORWARD 0x00u
#define POPUP_POLLING_REVERSE 0x01u
#define POPUP_POLLING_REVERSE 0x01u
/******************************************************************************
/******************************************************************************
������ȼ���
最大优先级数
******************************************************************************/
******************************************************************************/
#define POPUP_PRIORITY_NUMBER_MAX POPUP_PRIORITY_NUMBER_FATAL
#define POPUP_PRIORITY_NUMBER_MAX POPUP_PRIORITY_NUMBER_FATAL
/******************************************************************************
/******************************************************************************
������Ϣ���Ƚṹ
弹出信息调度结构
******************************************************************************/
******************************************************************************/
typedef
struct
typedef
struct
{
{
...
@@ -65,23 +66,23 @@ typedef struct
...
@@ -65,23 +66,23 @@ typedef struct
}
PopupSchedulingStruct
;
}
PopupSchedulingStruct
;
/******************************************************************************
/******************************************************************************
��������
函数声明
******************************************************************************/
******************************************************************************/
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Scheduler_Init
*@Function: Popup_Scheduler_Init
*@Description:
��ʼ��������Ϣ������
*@Description:
初始化弹出信息调度器
*@Input: MY_MemInit / CommMemInit
*@Input: MY_MemInit / CommMemInit
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
*@Return: none.
*@Return: none.
*@Note:
�����ڴ����������Ҫ�������Ӳ����ʼ��֮ǰ�����г�ʼ������
*@Note:
存在内存管理函数,要求必须在硬件初始化之前,进行初始化操作
**********************************************************************************************************/
**********************************************************************************************************/
void
Popup_Scheduler_Init
(
void
);
void
Popup_Scheduler_Init
(
void
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Scheduler_OFF
*@Function: Popup_Scheduler_OFF
*@Description:
���ٴ��ڵ��������ָ�Ϊ��ʼ��״̬
*@Description:
销毁存在的链表,恢复为初始化状态
*@Input: MY_MemInit / CommMemInit
*@Input: MY_MemInit / CommMemInit
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
...
@@ -92,23 +93,23 @@ void Popup_Scheduler_OFF ( void );
...
@@ -92,23 +93,23 @@ void Popup_Scheduler_OFF ( void );
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Scheduling_Service
*@Function: Popup_Scheduling_Service
*@Description:
���ȵ�����Ϣ�����µ�ǰ��ʾ����Ϣ����,�ӿں���
*@Description:
调度弹出信息,更新当前显示的信息名称,接口函数
*
���ܷ����л���������
*
可能发生切换的条件:
* 1
����ǰ��ʾ��Ϣ��ɾ��/����
* 1
、当前显示信息被删除/屏蔽
* 2
���������ȼ��ߵ�����Ϣ
* 2
、产生优先级高的新消息
* 3
����ʾʱ�䵽
* 3
、显示时间到
*@Input: CommMemInit
*@Input: CommMemInit
*@Output: none.
*@Output: none.
*@Calls: none
*@Calls: none
*@Return: none
*@Return: none
*@Note:
�÷���������ÿ100ms������һ��
*@Note:
该服务函数必须每100ms被调用一次
**********************************************************************************************************/
**********************************************************************************************************/
void
Popup_Scheduling_Service
(
void
);
void
Popup_Scheduling_Service
(
void
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Request
*@Function: Popup_Request
*@Description:
��Ϣ����������ȫ�����ͣ��ӿں���
*@Description:
信息插入请求,包括全部类型,接口函数
*@Input: uint8_t PopupID --
������Ϣ��
ID.
*@Input: uint8_t PopupID --
弹出信息的
ID.
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
*@Return: none.
*@Return: none.
...
@@ -118,8 +119,8 @@ void Popup_Request ( uint16_t PopupID );
...
@@ -118,8 +119,8 @@ void Popup_Request ( uint16_t PopupID );
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Mask_Request
*@Function: Popup_Mask_Request
*@Description:
���ε����ࣨ�����ࣩ��Ϣ��ֻ����ʾ���IJſ��Ա�����
*@Description:
屏蔽第三类(报警类)信息,只有显示过的才可以被屏蔽
* ***********
����ȫ����ʾ����
***************
* ***********
屏蔽全部显示过的
***************
*@Input: none.
*@Input: none.
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
...
@@ -130,34 +131,34 @@ void Popup_Mask_Request ( void );
...
@@ -130,34 +131,34 @@ void Popup_Mask_Request ( void );
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Del_Masked_Request
*@Function: Popup_Del_Masked_Request
*@Description:
��IGN_OFFʱ����Ҫ�����ι��ı�����Ϣ��ʾ���������������ٴ���ʾ��������
*@Description:
在IGN_OFF时,需要将屏蔽过的报警信息显示出来,但不允许再次显示报警声音
*@Input: none.
*@Input: none.
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
*@Return: none.
*@Return: none.
*@Note:
Ŀǰ��������Ϣ��״̬�л�Ϊѭ����ʾ״̬
.
*@Note:
目前将报警信息的状态切换为循环显示状态
.
**********************************************************************************************************/
**********************************************************************************************************/
void
Popup_Del_Masked_Request
(
void
);
void
Popup_Del_Masked_Request
(
void
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Get_Status
*@Function: Popup_Get_Status
*@Description:
��ȡ��ѯ��Ϣ��״̬
*@Description:
获取查询信息的状态
*@Input: uint8_t PopupID --
������Ϣ��
ID
*@Input: uint8_t PopupID --
弹出信息的
ID
*@Output: none.
*@Output: none.
*@Calls: PopupList_Select
*@Calls: PopupList_Select
*@Return: POPUP_STATUS_OFF --
����Ϣ������Ҫ��ʾ
*@Return: POPUP_STATUS_OFF --
此信息不在需要显示
* POPUP_STATUS_FIRST --
����Ϣ��һ����ʾ
* POPUP_STATUS_FIRST --
此信息第一次显示
* POPUP_STATUS_LOOP --
����Ϣ������ѯ��ʾ��
* POPUP_STATUS_LOOP --
此信息处于轮询显示中
* POPUP_STATUS_MASKED --
����Ϣ������
* POPUP_STATUS_MASKED --
此信息被屏蔽
* POPUP_STATUS_DELETE --
����Ϣ�ȴ���ɾ��
* POPUP_STATUS_DELETE --
此信息等待被删除
* POPUP_STATUS_CLEAR --
����Ϣ���ϱ�ɾ��
* POPUP_STATUS_CLEAR --
此信息马上被删除
*@Note: none.
*@Note: none.
**********************************************************************************************************/
**********************************************************************************************************/
uint8_t
Popup_Get_Status
(
uint16_t
PopupID
);
uint8_t
Popup_Get_Status
(
uint16_t
PopupID
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Get_Current_Message
*@Function: Popup_Get_Current_Message
*@Description:
��ȡ��ǰ��Ϣ�����ֱ��
*@Description:
获取当前信息的文字编号
*@Input: none.
*@Input: none.
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
...
@@ -168,31 +169,31 @@ uint16_t Popup_Get_Current_Message ( void );
...
@@ -168,31 +169,31 @@ uint16_t Popup_Get_Current_Message ( void );
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Get_Current_Sound
*@Function: Popup_Get_Current_Sound
*@Description:
��ȡ��ǰ��Ϣ���������
*@Description:
获取当前信息的声音编号
*@Input: none.
*@Input: none.
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
*@Return: none.
*@Return: none.
*@Note:
����������Ӱ�������ij����Լ��Ƿ���
*@Note:
声音请求码影响声音的持续性及是否打断
**********************************************************************************************************/
**********************************************************************************************************/
uint8_t
Popup_Get_Current_Sound
(
void
);
uint8_t
Popup_Get_Current_Sound
(
void
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Get_Current_Sound_Req_Code
*@Function: Popup_Get_Current_Sound_Req_Code
*@Description:
��ȡ��ǰ��Ϣ������������
*@Description:
获取当前信息的声音请求码
*@Input: none.
*@Input: none.
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
*@Return: none.
*@Return: none.
*@Note:
����������Ӱ�������ij����Լ��Ƿ���
*@Note:
声音请求码影响声音的持续性及是否打断
**********************************************************************************************************/
**********************************************************************************************************/
uint8_t
Popup_Get_Current_Sound_Req_Code
(
void
);
uint8_t
Popup_Get_Current_Sound_Req_Code
(
void
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Delete
*@Function: Popup_Delete
*@Description:
�����ǰ��ʾ��Ϣ������ǵ�һ����ʾ��Ҫ�ȴ�Tmin���ڶ�����Ϣ����ʾ�ࣩ���⣩
*@Description:
清除当前显示信息,如果是第一次显示,要等待Tmin(第二类信息(提示类)除外)
*@Input: uint8_t PopupID --
������Ϣ��
ID
*@Input: uint8_t PopupID --
弹出信息的
ID
*@Output: FatalListHead/HintListHead/WarningListHead/ExceptionListHead --
������
*@Output: FatalListHead/HintListHead/WarningListHead/ExceptionListHead --
新链表
*@Calls: PopupList_Select / PopupList_Delete
*@Calls: PopupList_Select / PopupList_Delete
*@Return: none.
*@Return: none.
*@Note: none.
*@Note: none.
...
@@ -201,9 +202,9 @@ void Popup_Delete ( uint16_t PopupID );
...
@@ -201,9 +202,9 @@ void Popup_Delete ( uint16_t PopupID );
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Clear
*@Function: Popup_Clear
*@Description:
�����ǰ��ʾ��Ϣ������Ҫ�ȴ�
Tmin
*@Description:
清除当前显示信息,不需要等待
Tmin
*@Input: uint8_t PopupID --
������Ϣ��
ID
*@Input: uint8_t PopupID --
弹出信息的
ID
*@Output: FatalListHead/HintListHead/WarningListHead/ExceptionListHead --
������
*@Output: FatalListHead/HintListHead/WarningListHead/ExceptionListHead --
新链表
*@Calls: PopupList_Select / PopupList_Delete
*@Calls: PopupList_Select / PopupList_Delete
*@Return: none.
*@Return: none.
*@Note: none.
*@Note: none.
...
@@ -212,30 +213,30 @@ void Popup_Clear ( uint16_t PopupID );
...
@@ -212,30 +213,30 @@ void Popup_Clear ( uint16_t PopupID );
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Get_Warning_Status
*@Function: Popup_Get_Warning_Status
*@Description:
��ѯ�Ƿ���ڱ�������Ϣ/�����ǻ�ȡ��ʾ������Ϣ�£��Ƿ���ڱ�������Ϣ
*@Description:
查询是否存在报警类信息/或者是获取显示致命信息下,是否存在报警类信息
*@Input: none
*@Input: none
*@Output: none
*@Output: none
*@Calls: none
*@Calls: none
*@Return: TRUE --
���ڱ�������Ϣ
*@Return: TRUE --
存在报警类信息
* FALSE --
�����ڱ�������Ϣ
* FALSE --
不存在报警类信息
*@Note: none.
*@Note: none.
**********************************************************************************************************/
**********************************************************************************************************/
uint8_t
Popup_Get_Warning_Status
(
void
);
uint8_t
Popup_Get_Warning_Status
(
void
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Get_Masked_Warning_Msg
*@Function: Popup_Get_Masked_Warning_Msg
*@Description:
��ȡ��ǰ��ʾ��������Ϣ������/ͼƬ���
*@Description:
获取当前显示的屏蔽信息的文字/图片编号
*@Input: none
*@Input: none
*@Output: none
*@Output: none
*@Calls: none
*@Calls: none
*@Return:
����/ͼƬ���
*@Return:
文字/图片编号
*@Note: none.
*@Note: none.
**********************************************************************************************************/
**********************************************************************************************************/
uint16_t
Popup_Get_Masked_Warning_Msg
(
void
);
uint16_t
Popup_Get_Masked_Warning_Msg
(
void
);
/**********************************************************************************************************
/**********************************************************************************************************
*@Function: Popup_Masked_Warning_Polling_Reset
*@Function: Popup_Masked_Warning_Polling_Reset
*@Description:
��λ������Ϣ��ǰ��ʾ��ָ�룬��ǰ����ָ�����һ���������ָ���һ��
*@Description:
复位屏蔽信息当前显示的指针,向前,则指向最后一个;向后,则指向第一个
*@Input: none.
*@Input: none.
*@Output: none.
*@Output: none.
*@Calls: none.
*@Calls: none.
...
@@ -245,24 +246,24 @@ uint16_t Popup_Get_Masked_Warning_Msg ( void );
...
@@ -245,24 +246,24 @@ uint16_t Popup_Get_Masked_Warning_Msg ( void );
void
Popup_Masked_Warning_Polling_Reset
(
uint8_t
Mode
);
void
Popup_Masked_Warning_Polling_Reset
(
uint8_t
Mode
);
/**********************************************************************************************************
/**********************************************************************************************************
��������
Popup_Masked_Warning_Polling
函数名:
Popup_Masked_Warning_Polling
�� �ܣ���ѯ�����εı���
功 能:查询已屏蔽的报警
ÿ����һ�δ˺���,�����α���ָ��ᰴָ�������ƶ�һλ,��ָ������ָ������
每调用一次此函数,已屏蔽报警指针会按指定方向移动一位,当指针已移指定方向
�ϵ����һ��������Ϣʱ,�ٴ���ͬһ�����ѯ,��ǰ�������α�����Ϣ���Ϊ
上的最后一个报警信息时,再次向同一方向查询,当前的已屏蔽报警信息会变为
POPUP_NONE
��ʾ������ѯ�ѽ���
POPUP_NONE
表示报警查询已结束
����:��ǰ�������α��� A��B��C��D,����
Popup_Masked_Warning_Polling_Reset
例如:当前有已屏蔽报警 A、B、C、D,调用
Popup_Masked_Warning_Polling_Reset
����,�趨����Ϊ POPUP_POLLING_FORWARD ʱ,�����α���ָ���ָ��A,����
,
函数,设定方向为 POPUP_POLLING_FORWARD 时,已屏蔽报警指针会指向报警A,而后
,
���øú����趨����Ϊ POPUP_POLLING_FORWARD ʱ�����α���ָ�뼴ָ��
B.
调用该函数设定方向为 POPUP_POLLING_FORWARD 时已屏蔽报警指针即指向报警
B.
�ظ����ô˺����ҷ����������α���ָ��ָ��D��,������ͬ������ô˺�
重复调用此函数且方向不变至已屏蔽报警指针指向报警D后,再以相同方向调用此函
���� POPUP_NONE,��ʾ��ѯ�ѽ���
数则返回 POPUP_NONE,表示查询已结束
ͨ������Popup_Get_Masked_Warning�ɶ�����ǰ�����α���ָ��ָ��ı���
通过调用Popup_Get_Masked_Warning可读出当前已屏蔽报警指针指向的报警
�� ����Mode����ѯģʽ POPUP_POLLING_FORWARD - �������ģʽ
参 数:Mode:查询模式 POPUP_POLLING_FORWARD - 正向查找模式
POPUP_POLLING_REVERSE -
�������ģʽ
POPUP_POLLING_REVERSE -
逆向查找模式
����ֵ����
返回值:无
**********************************************************************************************************/
**********************************************************************************************************/
void
Popup_Masked_Warning_Polling
(
uint8_t
Mode
);
void
Popup_Masked_Warning_Polling
(
uint8_t
Mode
);
void
Popup_Hint_Mask_Request
(
uint16_t
PopupID
);
void
Popup_Hint_Mask_Request
(
uint16_t
PopupID
);
...
...
source/Application/CAN_APP_NM/CAN_App/CAN_Communication_Matrix.c
View file @
7b131bd3
source/Application/Graphic/UE/DisplaySch_user.c
View file @
7b131bd3
...
@@ -205,6 +205,7 @@ void GUI_DisplayServices(void)
...
@@ -205,6 +205,7 @@ void GUI_DisplayServices(void)
if
(
BG_display_flag
==
0
)
if
(
BG_display_flag
==
0
)
{
{
BG_display_flag
=
1
;
BG_display_flag
=
1
;
MenuInit
();
MenuInit
();
}
}
else
else
...
@@ -225,6 +226,7 @@ void GUI_DisplayServices(void)
...
@@ -225,6 +226,7 @@ void GUI_DisplayServices(void)
JCUA_Enable_window
();
JCUA_Enable_window
();
}
}
}
}
MenuManage
();
MenuManage
();
//BG_display_flag = 0;
//BG_display_flag = 0;
}
}
...
...
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