forked from DualTachyon/uv-k5-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmisc.h
142 lines (125 loc) · 3.99 KB
/
misc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* Copyright 2023 Dual Tachyon
* https://github.com/DualTachyon
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MISC_H
#define MISC_H
#include <stdbool.h>
#include <stdint.h>
extern const uint32_t *gUpperLimitFrequencyBandTable;
extern const uint32_t *gLowerLimitFrequencyBandTable;
extern bool gSetting_350TX;
extern bool gSetting_KILLED;
extern bool gSetting_200TX;
extern bool gSetting_500TX;
extern bool gSetting_350EN;
extern uint8_t gSetting_F_LOCK;
extern bool gSetting_ScrambleEnable;
extern uint8_t gSetting_F_LOCK;
extern uint32_t gCustomPasswordKey[4];
extern bool bIsCheckExistingPassword;
extern uint8_t gEEPROM_1EC0_0[8];
extern uint8_t gEEPROM_1EC0_1[8];
extern uint8_t gEEPROM_1EC0_2[8];
extern uint8_t gEEPROM_1EC0_3[8];
extern uint8_t gEEPROM_1EC8_0[8];
extern uint8_t gEEPROM_1EC8_1[8];
extern uint8_t gEEPROM_1EC8_2[8];
extern uint16_t gEEPROM_1F8A;
extern uint16_t gEEPROM_1F8C;
extern uint8_t gEEPROM_1F8E;
extern uint8_t gMR_ChannelParameters[207];
extern uint8_t g_2000032D;
extern volatile uint16_t g_2000032E;
extern volatile uint16_t g_2000033A;
extern volatile uint16_t g_2000033E;
extern volatile uint16_t g_20000342;
extern volatile uint16_t g_2000034C;
extern volatile uint16_t g_20000356;
extern uint8_t g_2000036B;
extern uint8_t g_2000036D;
extern uint8_t g_2000036E;
extern uint8_t g_2000036F;
extern uint8_t g_20000370;
extern uint8_t g_20000371[2];
extern uint8_t g_20000373;
extern uint8_t g_20000375;
extern uint8_t g_20000376;
extern uint8_t g_20000377;
extern uint8_t g_20000378;
extern uint8_t g_20000379;
extern uint8_t g_2000037E;
extern volatile uint8_t g_20000381;
extern uint8_t g_20000383;
extern uint16_t g_2000038E;
extern uint8_t g_200003A9;
extern uint8_t g_200003AA;
extern uint8_t g_200003AB;
extern uint8_t g_200003AD;
extern uint8_t g_200003AE;
extern uint8_t g_200003AF;
extern uint8_t g_200003B0;
extern uint16_t g_200003B6;
extern uint8_t g_200003BC;
extern uint8_t g_200003BD;
extern uint8_t g_200003BE;
extern uint8_t g_200003C3;
extern uint8_t g_200003FD;
extern uint8_t g_20000400;
extern uint8_t g_2000041F;
extern uint8_t g_20000420;
extern uint8_t g_2000042F;
extern uint8_t g_20000438;
extern uint8_t g_2000044C;
extern uint8_t g_20000458;
extern uint8_t g_2000045A;
extern uint8_t g_2000045B;
extern uint8_t g_2000045C;
extern uint8_t g_20000461;
extern uint8_t g_20000464;
extern uint8_t g_20000D0C[16];
extern bool gIs_A_Scan;
extern bool gIsNoaaMode;
extern volatile bool gMaybeVsync;
extern bool gNoaaChannel;
extern bool gUpdateDisplay;
extern uint8_t gA_Scan_Channel;
extern uint8_t gDebounceCounter;
extern uint8_t gDTMF_AUTO_RESET_TIME;
extern uint8_t gF_LOCK;
extern char gNumberForPrintf[8];
extern uint8_t gNumberOffset;
extern uint8_t gScanChannel;
extern uint32_t gScanFrequency;
extern uint8_t gScanState;
extern uint8_t gShowChPrefix;
extern volatile uint16_t gSystickCountdown2;
extern volatile uint8_t gSystickCountdown3;
extern volatile uint8_t gSystickCountdown4;
extern volatile uint16_t gSystickCountdown11;
extern volatile bool gSystickFlag0;
extern volatile bool gSystickFlag1;
extern volatile bool gSystickFlag5;
extern volatile bool gSystickFlag6;
extern volatile bool gSystickFlag7;
extern volatile bool gSystickFlag8;
extern volatile bool gSystickFlag9;
extern volatile bool gSystickFlag10;
extern volatile bool gSystickFlag11;
extern volatile uint16_t ScanPauseDelayIn10msec;
// --------
void NUMBER_Append(char Digit);
void NUMBER_Get(char *pDigits, uint32_t *pInteger);
void NUMBER_ToDigits(uint32_t Value, char *pDigits);
#endif