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
b30ed65a
Commit
b30ed65a
authored
Jul 10, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:日间中文模式刷图
parent
a34e56f2
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16666 additions
and
3523 deletions
+16666
-3523
HaoJin750TFT.uvoptx
...e/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvoptx
+81
-59
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+5
-0
JLinkLog.txt
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/JLinkLog.txt
+15337
-3423
Can_User.c
Firmware/Source/Application/Can_User.c
+232
-0
Can_User.h
Firmware/Source/Application/Can_User.h
+44
-0
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+955
-39
AMT630H_Datas.h
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
+10
-0
PicBin.h
Firmware/Source/Component/AMT630H/PicBin.h
+2
-2
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvoptx
View file @
b30ed65a
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<bEvRecOn>
1
</bEvRecOn>
<bEvRecOn>
1
</bEvRecOn>
<bSchkAxf>
0
</bSchkAxf>
<bSchkAxf>
0
</bSchkAxf>
<bTchkAxf>
0
</bTchkAxf>
<bTchkAxf>
0
</bTchkAxf>
<nTsel>
3
</nTsel>
<nTsel>
4
</nTsel>
<sDll></sDll>
<sDll></sDll>
<sDllPa></sDllPa>
<sDllPa></sDllPa>
<sDlgDll></sDlgDll>
<sDlgDll></sDlgDll>
...
@@ -114,13 +114,13 @@
...
@@ -114,13 +114,13 @@
<tDlgDll></tDlgDll>
<tDlgDll></tDlgDll>
<tDlgPa></tDlgPa>
<tDlgPa></tDlgPa>
<tIfile></tIfile>
<tIfile></tIfile>
<pMon>
BIN\CMSIS_AGDI
.dll
</pMon>
<pMon>
Segger\JL2CM3
.dll
</pMon>
</DebugOpt>
</DebugOpt>
<TargetDriverDllRegistry>
<TargetDriverDllRegistry>
<SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Number>
0
</Number>
<Key>
JL2CM3
</Key>
<Key>
JL2CM3
</Key>
<Name>
-U6
9543645
-O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO7 -FD20000000 -FC1000 -FN2 -FF0BAT32A279KM.FLM -FS00 -FL080000 -FP0($$Device:BAT32A279KM64FB$Flash\BAT32A279KM.FLM) -FF1BAT32A279_DataFlash.FLM -FS1501000 -FL15000 -FP1($$Device:BAT32A279KM64FB$Flash\BAT32A279_DataFlash.FLM)
</Name>
<Name>
-U6
02712462
-O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO7 -FD20000000 -FC1000 -FN2 -FF0BAT32A279KM.FLM -FS00 -FL080000 -FP0($$Device:BAT32A279KM64FB$Flash\BAT32A279KM.FLM) -FF1BAT32A279_DataFlash.FLM -FS1501000 -FL15000 -FP1($$Device:BAT32A279KM64FB$Flash\BAT32A279_DataFlash.FLM)
</Name>
</SetRegEntry>
</SetRegEntry>
<SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Number>
0
</Number>
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
<SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Number>
0
</Number>
<Key>
DLGUARM
</Key>
<Key>
DLGUARM
</Key>
<Name></Name>
<Name>
d
</Name>
</SetRegEntry>
</SetRegEntry>
<SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Number>
0
</Number>
...
@@ -215,6 +215,16 @@
...
@@ -215,6 +215,16 @@
<WinNumber>
1
</WinNumber>
<WinNumber>
1
</WinNumber>
<ItemText>
Data,0x10
</ItemText>
<ItemText>
Data,0x10
</ItemText>
</Ww>
</Ww>
<Ww>
<count>
12
</count>
<WinNumber>
1
</WinNumber>
<ItemText>
pic_mode,0x0A
</ItemText>
</Ww>
<Ww>
<count>
13
</count>
<WinNumber>
1
</WinNumber>
<ItemText>
Pic_mode,0x0A
</ItemText>
</Ww>
</WatchWindow1>
</WatchWindow1>
<MemoryWindow1>
<MemoryWindow1>
<Mm>
<Mm>
...
@@ -1031,6 +1041,18 @@
...
@@ -1031,6 +1041,18 @@
<RteFlg>
0
</RteFlg>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
<bShared>
0
</bShared>
</File>
</File>
<File>
<GroupNumber>
4
</GroupNumber>
<FileNumber>
62
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\..\..\Source\Application\Can_User.c
</PathWithFileName>
<FilenameWithoutPath>
Can_User.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
</Group>
</Group>
<Group>
<Group>
...
@@ -1041,7 +1063,7 @@
...
@@ -1041,7 +1063,7 @@
<RteFlg>
0
</RteFlg>
<RteFlg>
0
</RteFlg>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
6
2
</FileNumber>
<FileNumber>
6
3
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1053,7 +1075,7 @@
...
@@ -1053,7 +1075,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
6
3
</FileNumber>
<FileNumber>
6
4
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1065,7 +1087,7 @@
...
@@ -1065,7 +1087,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
6
4
</FileNumber>
<FileNumber>
6
5
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1077,7 +1099,7 @@
...
@@ -1077,7 +1099,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
6
5
</FileNumber>
<FileNumber>
6
6
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1089,7 +1111,7 @@
...
@@ -1089,7 +1111,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
6
6
</FileNumber>
<FileNumber>
6
7
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1101,7 +1123,7 @@
...
@@ -1101,7 +1123,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
6
7
</FileNumber>
<FileNumber>
6
8
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1113,7 +1135,7 @@
...
@@ -1113,7 +1135,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
6
8
</FileNumber>
<FileNumber>
6
9
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1125,7 +1147,7 @@
...
@@ -1125,7 +1147,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
69
</FileNumber>
<FileNumber>
70
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1137,7 +1159,7 @@
...
@@ -1137,7 +1159,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
0
</FileNumber>
<FileNumber>
7
1
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1149,7 +1171,7 @@
...
@@ -1149,7 +1171,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
1
</FileNumber>
<FileNumber>
7
2
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1161,7 +1183,7 @@
...
@@ -1161,7 +1183,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
2
</FileNumber>
<FileNumber>
7
3
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1173,7 +1195,7 @@
...
@@ -1173,7 +1195,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
3
</FileNumber>
<FileNumber>
7
4
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1185,7 +1207,7 @@
...
@@ -1185,7 +1207,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
4
</FileNumber>
<FileNumber>
7
5
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1197,7 +1219,7 @@
...
@@ -1197,7 +1219,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
5
</FileNumber>
<FileNumber>
7
6
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1209,7 +1231,7 @@
...
@@ -1209,7 +1231,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
6
</FileNumber>
<FileNumber>
7
7
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1221,7 +1243,7 @@
...
@@ -1221,7 +1243,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
7
</FileNumber>
<FileNumber>
7
8
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1233,7 +1255,7 @@
...
@@ -1233,7 +1255,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
7
8
</FileNumber>
<FileNumber>
7
9
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1245,7 +1267,7 @@
...
@@ -1245,7 +1267,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
79
</FileNumber>
<FileNumber>
80
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1257,7 +1279,7 @@
...
@@ -1257,7 +1279,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
0
</FileNumber>
<FileNumber>
8
1
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1269,7 +1291,7 @@
...
@@ -1269,7 +1291,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
1
</FileNumber>
<FileNumber>
8
2
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1281,7 +1303,7 @@
...
@@ -1281,7 +1303,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
2
</FileNumber>
<FileNumber>
8
3
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1293,7 +1315,7 @@
...
@@ -1293,7 +1315,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
3
</FileNumber>
<FileNumber>
8
4
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1305,7 +1327,7 @@
...
@@ -1305,7 +1327,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
4
</FileNumber>
<FileNumber>
8
5
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1317,7 +1339,7 @@
...
@@ -1317,7 +1339,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
5
</FileNumber>
<FileNumber>
8
6
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1329,7 +1351,7 @@
...
@@ -1329,7 +1351,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
6
</FileNumber>
<FileNumber>
8
7
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1341,7 +1363,7 @@
...
@@ -1341,7 +1363,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
7
</FileNumber>
<FileNumber>
8
8
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1353,7 +1375,7 @@
...
@@ -1353,7 +1375,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
8
8
</FileNumber>
<FileNumber>
8
9
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1365,7 +1387,7 @@
...
@@ -1365,7 +1387,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
89
</FileNumber>
<FileNumber>
90
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1377,7 +1399,7 @@
...
@@ -1377,7 +1399,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
0
</FileNumber>
<FileNumber>
9
1
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1389,7 +1411,7 @@
...
@@ -1389,7 +1411,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
1
</FileNumber>
<FileNumber>
9
2
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1401,7 +1423,7 @@
...
@@ -1401,7 +1423,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
2
</FileNumber>
<FileNumber>
9
3
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1413,7 +1435,7 @@
...
@@ -1413,7 +1435,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
3
</FileNumber>
<FileNumber>
9
4
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1425,7 +1447,7 @@
...
@@ -1425,7 +1447,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
4
</FileNumber>
<FileNumber>
9
5
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1437,7 +1459,7 @@
...
@@ -1437,7 +1459,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
5
</FileNumber>
<FileNumber>
9
6
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1449,7 +1471,7 @@
...
@@ -1449,7 +1471,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
6
</FileNumber>
<FileNumber>
9
7
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1461,7 +1483,7 @@
...
@@ -1461,7 +1483,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
7
</FileNumber>
<FileNumber>
9
8
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1473,7 +1495,7 @@
...
@@ -1473,7 +1495,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
9
8
</FileNumber>
<FileNumber>
9
9
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1485,7 +1507,7 @@
...
@@ -1485,7 +1507,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
99
</FileNumber>
<FileNumber>
100
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1497,7 +1519,7 @@
...
@@ -1497,7 +1519,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
0
</FileNumber>
<FileNumber>
10
1
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1509,7 +1531,7 @@
...
@@ -1509,7 +1531,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
1
</FileNumber>
<FileNumber>
10
2
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1521,7 +1543,7 @@
...
@@ -1521,7 +1543,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
2
</FileNumber>
<FileNumber>
10
3
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1533,7 +1555,7 @@
...
@@ -1533,7 +1555,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
3
</FileNumber>
<FileNumber>
10
4
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1545,7 +1567,7 @@
...
@@ -1545,7 +1567,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
4
</FileNumber>
<FileNumber>
10
5
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1557,7 +1579,7 @@
...
@@ -1557,7 +1579,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
5
</FileNumber>
<FileNumber>
10
6
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1569,7 +1591,7 @@
...
@@ -1569,7 +1591,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
6
</FileNumber>
<FileNumber>
10
7
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1581,7 +1603,7 @@
...
@@ -1581,7 +1603,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
7
</FileNumber>
<FileNumber>
10
8
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1593,7 +1615,7 @@
...
@@ -1593,7 +1615,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
10
8
</FileNumber>
<FileNumber>
10
9
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1605,7 +1627,7 @@
...
@@ -1605,7 +1627,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
1
09
</FileNumber>
<FileNumber>
1
10
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1617,7 +1639,7 @@
...
@@ -1617,7 +1639,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
11
0
</FileNumber>
<FileNumber>
11
1
</FileNumber>
<FileType>
4
</FileType>
<FileType>
4
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1629,7 +1651,7 @@
...
@@ -1629,7 +1651,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
11
1
</FileNumber>
<FileNumber>
11
2
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1641,7 +1663,7 @@
...
@@ -1641,7 +1663,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
11
2
</FileNumber>
<FileNumber>
11
3
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1653,7 +1675,7 @@
...
@@ -1653,7 +1675,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
11
3
</FileNumber>
<FileNumber>
11
4
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1665,7 +1687,7 @@
...
@@ -1665,7 +1687,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
11
4
</FileNumber>
<FileNumber>
11
5
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1677,7 +1699,7 @@
...
@@ -1677,7 +1699,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
11
5
</FileNumber>
<FileNumber>
11
6
</FileNumber>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
@@ -1689,7 +1711,7 @@
...
@@ -1689,7 +1711,7 @@
</File>
</File>
<File>
<File>
<GroupNumber>
5
</GroupNumber>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
11
6
</FileNumber>
<FileNumber>
11
7
</FileNumber>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<tvExp>
0
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<tvExpOptDlg>
0
</tvExpOptDlg>
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
b30ed65a
...
@@ -703,6 +703,11 @@
...
@@ -703,6 +703,11 @@
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\CAN_CH0_CAN_Communication_Matrix.h
</FilePath>
<FilePath>
..\..\..\..\Source\Application\CAN_CH0_CAN_Communication_Matrix.h
</FilePath>
</File>
</File>
<File>
<FileName>
Can_User.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Application\Can_User.c
</FilePath>
</File>
</Files>
</Files>
</Group>
</Group>
<Group>
<Group>
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/JLinkLog.txt
View file @
b30ed65a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Firmware/Source/Application/Can_User.c
0 → 100644
View file @
b30ed65a
// #include "Can_User.h"
// #include <string.h>
// #include "can.h"
// #include "RTE.h"
// #include "CAN_CH0_CAN_Communication_Matrix.h"
// __align(4)
// uint32_t pRXBuff[CAN_RX_MSG_Block * CAN_CH0_ID_TOTAL_MAX];
// uint32_t pTXBuff[CAN_TX_MSG_Block * CAN_CH0_ID_SEND_TOTAL];
// static RSCAN0BusoffMonitorStruct RSCAN0Busoff;
// void Can_Init(void)
// {
// can_config_st_t Can_Config;
// Can_Config.ch = CAN_CH_0;
// Can_Config.freq = CAN_500Kbps;
// Can_Config.MASK[0] = 0x001fffffU;
// Can_Config.MASK[1] = 0x000fffffU;
// Can_Config.MASK[2] = 0x1fffffffU;
// Can_Config.MASK[3] = 0x1fffffffU;
// Can_Config.rx_callback = Can_Rx_Cak;
// COM_CAN_Init();
// rte_can_init(&Can_Config);
// Can_Tx_Apply_Buff();
// Can_RX_Apply_Buff();
// RTE_GPIO_Set_Level(RTE_GPIO_PORT05_PIN02,RTE_GPIO_LEVEL_LOW);
// }
// /**
// * @brief 用于申请RXBUFF CAN0MSG00~CAN0MSG07
// *
// */
// void Can_RX_Apply_Buff(void)
// {
// CAN_RecvMsg.Id = 0x101;
// CAN_RecvMsg.IDE = CAN_Id_Standard;
// CAN_RecvMsg.CacheType = CAN_CacheType_Rx_NoMask;
// CAN_RecvMsg.RTR = CAN_RTR_Data;
// CAN_RecvMsg.Interrupt = ENABLE;
// CAN_MessageCache_DeInit(CAN0MSG01);
// CAN_MessageCache_Init(CAN0MSG01, &CAN_RecvMsg);
// CAN_MessageCache_OverWriteConfig(CAN0MSG01, ENABLE);
// // CAN_RecvMsg.Id = DIAG_ID_Rx_PHY;
// // CAN_RecvMsg.IDE = CAN_Id_Standard;
// // CAN_RecvMsg.CacheType = CAN_CacheType_Rx_NoMask;
// // CAN_RecvMsg.RTR = CAN_RTR_Data;
// // CAN_RecvMsg.Interrupt = ENABLE;
// // CAN_MessageCache_DeInit(CAN0MSG03);
// // CAN_MessageCache_Init(CAN0MSG03, &CAN_RecvMsg);
// // CAN_MessageCache_OverWriteConfig(CAN0MSG03, ENABLE);
// // CAN_RecvMsg.Id = DIAG_ID_Rx_FUN;
// // CAN_RecvMsg.IDE = CAN_Id_Standard;
// // CAN_RecvMsg.CacheType = CAN_CacheType_Rx_NoMask;
// // CAN_RecvMsg.RTR = CAN_RTR_Data;
// // CAN_RecvMsg.Interrupt = ENABLE;
// // CAN_MessageCache_DeInit(CAN0MSG04);
// // CAN_MessageCache_Init(CAN0MSG04, &CAN_RecvMsg);
// // CAN_MessageCache_OverWriteConfig(CAN0MSG04, ENABLE);
// }
// /**
// * @brief 用于申请TXBUFF
// *
// */
// void Can_Tx_Apply_Buff(void)
// {
// CanTxRxMsg CAN_SendMsg;
// CanTxRxMsg CAN_SendMsg_Diag_Tx;
// CAN_SendMsg.Id = 0x500;
// CAN_SendMsg.IDE = CAN_Id_Standard;
// CAN_SendMsg.CacheType = CAN_CacheType_Tx;
// CAN_SendMsg.RTR = CAN_RTR_Data;
// CAN_RecvMsg.Interrupt = DISABLE;
// CAN_SendMsg.DLC = 8;
// for (uint8_t i = 0; i < CAN_SendMsg.DLC; i++)
// {
// CAN_SendMsg.Data[i] = 0;
// }
// CAN_MessageCache_DeInit(CAN0MSG08);
// CAN_MessageCache_Init(CAN0MSG08, &CAN_SendMsg);
// // CAN_SendMsg_Diag_Tx.Id = DIAG_ID_Tx;
// // CAN_SendMsg_Diag_Tx.IDE = CAN_Id_Standard;
// // CAN_SendMsg_Diag_Tx.CacheType = CAN_CacheType_Tx;
// // CAN_SendMsg_Diag_Tx.RTR = CAN_RTR_Data;
// // CAN_SendMsg_Diag_Tx.Interrupt = DISABLE;
// // CAN_SendMsg_Diag_Tx.DLC = 8;
// // for (uint8_t i = 0; i < CAN_SendMsg_Diag_Tx.DLC; i++)
// // {
// // CAN_SendMsg_Diag_Tx.Data[i] = 0;
// // }
// // CAN_MessageCache_DeInit(CAN0MSG09);
// // CAN_MessageCache_Init(CAN0MSG09, &CAN_SendMsg_Diag_Tx);
// }
// /**
// * @brief 用于接收回调函数
// * @code
// */
// void Can_Rx_Cak(CanTxRxMsg *Msg)
// {
// Co_Can_Buff_Set(&CAN_CH0_CanMsgOp, Co_Can_ConvertSubID_CAN_CH0(Msg->Id), Msg->DLC, Msg->Data);
// if ((Msg->Id == DIAG_ID_Rx_FUN) || (Msg->Id == DIAG_ID_Rx_PHY))
// {
// DoCAN_L_Data_Indication(Msg->Id, Msg->DLC, Msg->Data);
// }
// }
// /**
// * @brief CAN库初始化TX/RX
// *
// */
// void COM_CAN_Init(void)
// {
// memset(pRXBuff, 0, sizeof(pRXBuff));
// CAN_CH0_CanMsgOp.CAN_MSG_Analysis = (st_CANMsgStruct *)pRXBuff;
// CAN_CH0_CanMsgOp.pAttrubute = CAN_CH0_CAN_MSG_CONST_ARRAY;
// CAN_CH0_CanMsgOp.Total_Msg = CAN_CH0_ID_TOTAL_MAX;
// CAN_CH0_CanMsgOp.u8CAN_RX_ENABLE = CAN_N_RX_Enable;
// Can_RX_BuffInit(&CAN_CH0_CanMsgOp, CAN_CH0_CAN_MSG_CONST_ARRAY, CAN_CH0_ID_TOTAL_MAX);
// CAN_RX_SetEnable(&CAN_CH0_CanMsgOp, CAN_N_RX_Enable);
// memset(pTXBuff, 0, sizeof(pTXBuff));
// CAN_CH0_CanMsgTxOp.CanMsg = (st_CAN_SendOperation *)pTXBuff;
// Can_TX_BuffInit(&CAN_CH0_CanMsgTxOp, CAN_CH0_CANSendAttr, CAN_CH0_ID_SEND_TOTAL, COM_APP_Process);
// CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable);
// }
// /**
// * @brief Buff恢复函数
// * @param deltaTime 调用时间 单位ms 10MS调用
// */
// void Can_BusOff_Recover(uint8_t deltaTime)
// {
// if (get_can_busoff(CAN_CH_0) == 2)
// {
// if (RSCAN0Busoff.Status == RSCAN0_BUS_STABLE)
// {
// RSCAN0Busoff.Status = RSCAN0_BUS_OFF_LV1;
// }
// if (RSCAN0Busoff.Status == RSCAN0_BUS_OFF_LV1)
// {
// RSCAN0Busoff.Timer++;
// if (RSCAN0Busoff.Timer >= RSCAN0_BUS_OFF_LV1_RECOVERY_TIME / deltaTime)
// {
// RSCAN0Busoff.Timer = 0U;
// RSCAN0Busoff.Cnt++;
// if (RSCAN0Busoff.Cnt >= 10U)
// {
// RSCAN0Busoff.Cnt = 0U;
// RSCAN0Busoff.Status = RSCAN0_BUS_OFF_LV2;
// }
// reset_busoff(CAN_CH_0);
// }
// }
// else if (RSCAN0Busoff.Status == RSCAN0_BUS_OFF_LV2)
// {
// RSCAN0Busoff.Timer++;
// if (RSCAN0Busoff.Timer >= RSCAN0_BUS_OFF_LV2_RECOVERY_TIME / deltaTime)
// {
// RSCAN0Busoff.Timer = 0U;
// reset_busoff(CAN_CH_0);
// }
// }
// else
// {
// }
// }
// else /* 总线正常,没有Bus-off发生*/
// {
// }
// }
// /**
// * @brief 获取busoff状态
// * @return 0 没有busoff
// * 1 错误的操作
// * 2 busoff
// */
// uint8_t Get_Busoff_Status(void)
// {
// return get_can_busoff(CAN_CH_0);
// }
// uint8_t COM_APP_Process(st_CAN_Msg *Msg)
// {
// Can_Write((st_CAN_Msg *)Msg);
// return 0;
// }
// void Can_Write(st_CAN_Msg *Msg)
// {
// uint32_t i = 0;
// CanTxRxMsg CAN_SendMsg;
// CAN_SendMsg.Id = Msg->MsgID; /* ID */
// CAN_SendMsg.DLC = Msg->MsgDLC; /* Len */
// CAN_SendMsg.RTR = Msg->MsgRTR; /* Default 0 */
// CAN_SendMsg.IDE = CAN_Id_Standard; /* Stand 0 Ext 1 */
// CAN_SendMsg.CacheType = CAN_CacheType_Tx;
// for (i = 0; i < CAN_SendMsg.DLC; i++) /* 获取数据 */
// {
// CAN_SendMsg.Data[i] = Msg->Msg[i];
// }
// switch (CAN_SendMsg.Id)
// {
// case 0x500:
// CAN_Transmit(CAN0MSG08, &CAN_SendMsg);
// break;
// default:
// break;
// }
// }
Firmware/Source/Application/Can_User.h
0 → 100644
View file @
b30ed65a
// #ifndef _CAN_USER_H_
// #define _CAN_USER_H_
// #include "RTE.h"
// #include "Components.h"
// /******************************************************************************
// Bus-off
// ******************************************************************************/
// #define RSCAN0_BUS_STABLE 0x00U
// #define RSCAN0_BUS_OFF_LV1 0x01U
// #define RSCAN0_BUS_OFF_LV2 0x02U
// #define RSCAN00_BUS_LIMP 0x03U
// /******************************************************************************
// Bus-off
// ******************************************************************************/
// #define RSCAN0_BUS_OFF_LV1_RECOVERY_TIME 90U
// #define RSCAN0_BUS_OFF_LV2_RECOVERY_TIME 1000U
// typedef struct
// {
// uint8_t Status;
// uint8_t Timer;
// uint8_t Cnt;
// uint8_t ReportDTCCnt;
// } RSCAN0BusoffMonitorStruct;
// extern void Can_Tx_Apply_Buff(void);
// extern void Can_RX_Apply_Buff(void);
// extern void Can_BusOff_Recover(uint8_t deltaTime);
// extern void COM_CAN_Init(void);
// extern void Can_Init(void);
// extern void Can_Rx_Cak(CanTxRxMsg *Msg);
// extern void Busoff(void);
// extern uint8_t COM_APP_Process(st_CAN_Msg *Msg);
// extern void Can_Write(st_CAN_Msg *Msg);
// #endif
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
b30ed65a
#include "Components.h"
#include "Components.h"
uint8_t
Pic_mode
=
PIC_NIGHTTIME_CH
;
// 菜单背景,菜单前必带
void
AMT630H_GUI_BACKGRAND
(
void
);
// 一级菜单
void
AMT630H_GUI_Quit
(
void
);
void
AMT630H_GUI_Phone_Connect
(
void
);
void
AMT630H_GUI_Fault_Information
(
void
);
void
AMT630H_GUI_Language_Information
(
void
);
void
AMT630H_GUI_Unit_Information
(
void
);
void
AMT630H_GUI_Backlight_Information
(
void
);
void
AMT630H_GUI_Backlight_Information
(
void
);
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
sync_contacts
,
uint8_t
Connect_ON
);
void
AMT630H_GUI_Clock_Information
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
);
// 二级菜单
static
void
AMT630H_GUI_Clock_Setting
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
,
uint8_t
Clock_BIT
);
void
AMT630H_GUI_Backlight_Setting
(
uint8_t
back_mode
);
void
AMT630H_GUI_Display_Mode_Setting
(
uint8_t
Display_mode
);
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
uint8_t
select
,
uint8_t
sync_contacts
,
uint8_t
Connect_ON
);
void
AMT630H_GUI_Unit_Setting
(
uint8_t
select
);
void
AMT630H_GUI_Language_Setting
(
uint8_t
select
);
void
AMT630H_GUI_Phone_Connect_Win
(
void
);
uint8_t
num_time
=
0
;
uint8_t
num_time_num1
=
0
;
uint8_t
num_time_num2
=
0
;
uint8_t
num_time_num3
=
0
;
void
AMT630H_GUI_Background
()
void
AMT630H_GUI_Background
()
{
{
if
(
SYS_OPR_STAT_IGN_ON
)
if
(
SYS_OPR_STAT_IGN_ON
)
{
AMT630H_GUI_BACKGRAND
();
// AMT630H_GUI_Phone_Connect_Win();
num_time
++
;
if
(
num_time
%
20
==
0
)
{
num_time_num2
++
;
if
(
num_time_num2
==
100
)
{
num_time_num2
=
0
;
}
}
if
(
num_time
%
50
==
0
)
{
{
num_time_num1
++
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_325
);
if
(
num_time_num1
==
5
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0012_22_397
);
//Pic_0001_0_0白色主题背景
num_time_num1
=
0
;
}
if
(
num_time
%
100
==
0
)
{
num_time
=
0
;
num_time_num3
=
~
num_time_num3
;
}
AMT630H_GUI_Clock_Setting
(
num_time_num2
,
num_time_num2
,
num_time_num1
);
}
else
{
// SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0013_0_57);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0012_0_95);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0047_264_95);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0048_610_229);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0052_44_95);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0053_49_229);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0057_376_336);
}
}
/**
* @brief 故障信息 一级菜单
* @param[in] //暂无
*/
void
AMT630H_GUI_Fault_Information
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0163_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0164_913_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0165_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0166_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0091_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0167_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0093_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0168_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0169_353_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0170_354_162
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0350_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0351_913_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0352_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0353_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0279_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0354_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0281_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0355_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0356_353_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0357_354_162
);
}
}
/**
* @brief 显示模式信息 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Backlight_Information
(
void
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0190_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0191_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0161_207_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0185_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0192_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0152_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
}
///**
// * @brief 背光信息 一级菜单
// * @param[in] null
// */
//void AMT630H_GUI_Backlight_Information(void)
//{
// SetPagePic(GRAPHICS_PAGE_0, Pic_0187_37_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0188_904_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0156_197_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0181_737_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0189_446_517);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0069_506_332);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_286);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0068_505_236);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_186);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
//}
static
uint16_t
Bluetooth_num
[]
=
{
Pic_0040_605_289
,
Pic_0041_606_290
,
Pic_0042_604_289
,
Pic_0043_604_289
,
Pic_0044_604_290
,
Pic_0045_604_290
,
Pic_0046_605_289
,
Pic_0047_605_290
,
Pic_0048_605_289
,
Pic_0049_605_289
};
/**
* @brief 蓝牙连接 一级菜单
* @param[in] sync_contacts 同步联系人
* @param[in] Connect_ON 0 关 1 开
*/
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0183_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0184_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0185_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0177_738_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0186_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0139_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0142_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141_584_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0140_584_226
);
}
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_num
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
// 往左排 数字间距
DisplayNumPara
.
x
=
604
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
1
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_num
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
// 往左排 数字间距
DisplayNumPara
.
x
=
612
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
}
///**
// * @brief 时间设置 一级菜单
// * @param[in] Clock_Hour 小时
// * @param[in] Clock_Min 分钟
// */
//void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min)
//{
// if (Pic_mode == PIC_DAYTIME_CH)
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0179_27_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0180_903_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0181_197_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0173_737_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0182_446_517);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_338);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0101_728_486
);
// DISPLAY_NUM_ST DisplayNumPara;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0128_429_152
);
// uint8_t ArrivalNumber;
// ArrivalNumber = Clock_Hour;
// DisplayNumPara.NumList = time_num; // 图片数组
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47; // 往左排 数字间距
// DisplayNumPara.x = 574; // 最右边数字的最左上角的横坐标
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
// DisplayNumPara.DecimalNum = 0; // 小数点后位数
// DisplayNumPara.MinDigits = 2; // 最小显示位数
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ArrivalNumber);
// ArrivalNumber = Clock_Min;
// DisplayNumPara.NumList = time_num; // 图片数组
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47; // 往左排 数字间距
// DisplayNumPara.x = 457; // 最右边数字的最左上角的横坐标
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
// DisplayNumPara.DecimalNum = 0; // 小数点后位数
// DisplayNumPara.MinDigits = 2; // 最小显示位数
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ArrivalNumber);
// }
//}
/**
* @brief 单位设置 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Unit_Information
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0175_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0176_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0176_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0156_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0177_198_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0211_564_211
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0165_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_194
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0178_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0303_189_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0133_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0385_250_553
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0134_436_152
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0362_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0363_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0364_198_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0352_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0365_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0321_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0322_436_152
);
}
}
/**
* @brief 语言设置 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Language_Information
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0171_28_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0172_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0173_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0160_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0174_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0358_28_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0359_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0360_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0347_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0361_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
}
}
/**
* @brief 手机互联 一级菜单
*
*/
void
AMT630H_GUI_Phone_Connect
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0158_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0159_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0160_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0161_747_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0162_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0128_429_152
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0345_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0346_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0347_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0348_747_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0349_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0316_429_152
);
}
}
/**
* @brief 退出 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Quit
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0153_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0154_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0156_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0157_461_517
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0340_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0341_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0343_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0344_461_517
);
}
}
//SetPagePicFree(GRAPHICS_PAGE_0, Pic_0694_54_327, 200,327);//中间显示道路装饰线
static
uint16_t
time_num_day
[]
=
{
Pic_0022_550_211
,
Pic_0023_564_211
,
Pic_0024_550_211
,
Pic_0025_552_211
,
Pic_0026_548_211
,
Pic_0027_550_211
,
Pic_0028_551_211
,
Pic_0029_549_211
,
Pic_0030_550_211
,
Pic_0031_551_211
};
static
uint16_t
time_num_night
[]
=
{
Pic_0210_550_211
,
Pic_0211_564_211
,
Pic_0212_550_211
,
Pic_0213_552_211
,
Pic_0214_548_211
,
Pic_0215_550_211
,
Pic_0216_551_211
,
Pic_0217_549_211
,
Pic_0218_550_211
,
Pic_0219_551_211
};
/**
* @brief 时间设
置 二级菜单
* @param[in] Clock_Hour 小时
* @param[in] Clock_Min 分钟
* @param[in] Clock_BIT 选中位数 5选中返回
*/
static
void
AMT630H_GUI_Clock_Setting
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
,
uint8_t
Clock_BIT
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0135_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_338
);
switch
(
Clock_BIT
)
{
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
// 返回
break
;
default:
break
;
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
Clock_Hour
;
DisplayNumPara
.
NumList
=
time_num_day
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
455
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
ArrivalNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
time_num_day
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
572
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0323_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_338
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
switch
(
Clock_BIT
)
{
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0207_437_316
);
// 返回
break
;
default:
break
;
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
Clock_Hour
;
DisplayNumPara
.
NumList
=
time_num_night
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
455
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
ArrivalNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
time_num_night
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
572
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
}
/**
* @brief 显示模式设置 二级菜单
* @param[in] back_mode 显示模式 0为日间 1为夜间 2为自动
*/
void
AMT630H_GUI_Display_Mode_Setting
(
uint8_t
Display_mode
)
/*图 显示模式*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0146_27_396
);
switch
(
Display_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0149_448_101
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0152_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0150_448_343
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_231
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
break
;
default:
break
;
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0333_27_396
);
switch
(
Display_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0335_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0336_448_101
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0339_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0337_448_343
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0335_472_231
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
break
;
default:
break
;
}
}
}
/**
* @brief 背光设置 二级菜单
* @param[in] back_mode 背光模式 0为自动
*/
void
AMT630H_GUI_Backlight_Setting
(
uint8_t
back_mode
)
/*图 背光*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0144_37_396
);
switch
(
back_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0145_477_340
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_136
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_325
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0069_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0067_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_229
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0066_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_183
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0064_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_138
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0063_495_145
);
break
;
//SetPagePic(GRAPHICS_PAGE_0, Pic_0012_0_95);//中间显示光晕
default:
//
break
;
//SetPagePic(GRAPHICS_PAGE_0, Pic_0047_264_95);//右侧表盘
}
//SetPagePic(GRAPHICS_PAGE_0, Pic_0048_610_229);//右侧指针
}
//SetPagePic(GRAPHICS_PAGE_0, Pic_0052_44_95);//左侧表盘
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
//SetPagePic(GRAPHICS_PAGE_0, Pic_0053_49_229);//左侧指针
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0331_37_396
);
switch
(
back_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_297
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0332_477_340
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_136
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0255_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_239
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0253_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_194
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0252_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_148
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0250_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_103
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0249_495_145
);
break
;
//SetPagePic(GRAPHICS_PAGE_0, Pic_0037_309_380);//功率线条
default:
//SetPagePic(GRAPHICS_PAGE_0, Pic_0045_249_412);//power
break
;
//SetPagePic(GRAPHICS_PAGE_0, Pic_0044_454_405);//功率8km
}
//SetPagePic(GRAPHICS_PAGE_0, Pic_0043_313_405);//功率-3km
}
}
static
uint16_t
Bluetooth_Connect_num_day
[]
=
{
Pic_0040_605_289
,
Pic_0041_606_290
,
Pic_0042_604_289
,
Pic_0043_604_289
,
Pic_0044_604_290
,
Pic_0045_604_290
,
Pic_0046_605_289
,
Pic_0047_605_290
,
Pic_0048_605_289
,
Pic_0049_605_289
};
static
uint16_t
Bluetooth_Connect_num_night
[]
=
{
Pic_0225_605_289
,
Pic_0226_606_290
,
Pic_0227_604_289
,
Pic_0228_604_289
,
Pic_0229_604_290
,
Pic_0230_604_290
,
Pic_0231_605_289
,
Pic_0232_605_290
,
Pic_0233_605_289
,
Pic_0234_605_289
};
/**
* @brief 蓝牙连接 二级菜单
* @param[in] select 0为选择蓝牙连接 1选择同步联系人 2选择返回
* @param[in] sync_contacts 同步联系人
* @param[in] Connect_ON 0 关 1 开
*/
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
uint8_t
select
,
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
break
;
default:
break
;
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0137_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0139_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0142_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0140_584_226
);
}
}
else
else
{
{
//SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141_584_226
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0013_0_57);
}
//SetPagePic(GRAPHICS_PAGE_0, Pic_0012_0_95);
if
(
sync_contacts
<
10
)
//SetPagePic(GRAPHICS_PAGE_0, Pic_0047_264_95);
{
//SetPagePic(GRAPHICS_PAGE_0, Pic_0048_610_229);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0052_44_95);
DISPLAY_NUM_ST
DisplayNumPara
;
//SetPagePic(GRAPHICS_PAGE_0, Pic_0053_49_229);
uint8_t
ArrivalNumber
;
//SetPagePic(GRAPHICS_PAGE_0, Pic_0057_376_336);
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
// 往左排 数字间距
DisplayNumPara
.
x
=
604
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
1
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
// 往左排 数字间距
DisplayNumPara
.
x
=
612
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
break
;
default:
break
;
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0325_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0326_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0329_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0330_367_163
);
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0328_584_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0327_584_226
);
}
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
// 往左排 数字间距
DisplayNumPara
.
x
=
604
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
1
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
// 往左排 数字间距
DisplayNumPara
.
x
=
612
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
}
}
/**
* @brief 单位设置 二级菜单
* @param[in] select 0为公制 1为英制
*/
void
AMT630H_GUI_Unit_Setting
(
uint8_t
select
)
/*图 单位设置*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0130_27_396
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0133_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0134_436_152
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0131_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0132_474_168
);
break
;
default:
break
;
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0318_27_396
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0321_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0322_436_152
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0319_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0320_474_168
);
break
;
default:
break
;
}
}
}
/**
* @brief 语言设置 二级菜单
* @param[in] select 0为中文 1为英文
*/
void
AMT630H_GUI_Language_Setting
(
uint8_t
select
)
/*图 语言设置*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0129_28_396
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
break
;
default:
break
;
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0197_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0198_490_168
);
break
;
default:
break
;
}
}
}
/**
* @brief 菜单背景
*
*/
void
AMT630H_GUI_BACKGRAND
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0002_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0315_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0194_23_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
}
}
/**
* @brief 手机互联成功 二级菜单
* @param[in] NULL
*/
void
AMT630H_GUI_Phone_Connect_Win
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0127_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0128_429_152
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0315_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0316_429_152
);
}
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0316_429_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0195_304_155
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
}
}
}
void
AMT630H_GUI_DisplayProc
(
void
)
void
AMT630H_GUI_DisplayProc
(
void
)
{
{
SetPageGuid
(
GRAPHICS_PAGE_0
,
1
,
1
,
1
);
SetPageGuid
(
GRAPHICS_PAGE_0
,
1
,
0
,
0
);
AMT630H_GUI_Background
();
AMT630H_GUI_Background
();
PackedTransfer_Page
();
PackedTransfer_Page
();
}
}
\ No newline at end of file
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
View file @
b30ed65a
#ifndef A69FAEFD_36D2_473A_A858_C02318EB402B
#ifndef A69FAEFD_36D2_473A_A858_C02318EB402B
#define A69FAEFD_36D2_473A_A858_C02318EB402B
#define A69FAEFD_36D2_473A_A858_C02318EB402B
typedef
enum
{
PIC_DAYTIME_CH
=
0
,
//日间中文
PIC_NIGHTTIME_CH
,
//夜间中文
PIC_DAYTIME_EN
,
//日间英文
PIC_NIGHTTIME_EN
,
//夜间英文
PIC_Max
,
}
_Picture_Mode
;
extern
void
AMT630H_GUI_DisplayProc
(
void
);
extern
void
AMT630H_GUI_DisplayProc
(
void
);
extern
void
AMT630H_GUI_Background
(
void
);
extern
void
AMT630H_GUI_Background
(
void
);
...
...
Firmware/Source/Component/AMT630H/PicBin.h
View file @
b30ed65a
#ifndef PICBIN_H
#ifndef PICBIN_H
#define PICBIN_H
#define PICBIN_H
/* Flash Bin Version:2024070
1 2024-07-01 18:53:59
Compression ratio:70.00% */
/* Flash Bin Version:2024070
8 2024-07-08 14:30:03
Compression ratio:70.00% */
#define Pic_0001 1
#define Pic_0001 1
#define Pic_0002 2
#define Pic_0002 2
#define Pic_0003 3
#define Pic_0003 3
...
...
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