Add missing tab

This commit is contained in:
Armel FAUVEAU
2024-08-16 02:13:49 +02:00
parent 17d6b44327
commit 9b4e59f776
3 changed files with 1303 additions and 1049 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -41,12 +41,34 @@
static const uint8_t DrawingEndY = 40; static const uint8_t DrawingEndY = 40;
static const uint8_t U8RssiMap[] = { static const uint8_t U8RssiMap[] = {
121, 115, 109, 103, 97, 91, 85, 79, 73, 63, 121,
115,
109,
103,
97,
91,
85,
79,
73,
63,
}; };
static const uint16_t scanStepValues[] = { static const uint16_t scanStepValues[] = {
1, 10, 50, 100, 250, 500, 625, 833, 1,
1000, 1250, 1500, 2000, 2500, 5000, 10000, 10,
50,
100,
250,
500,
625,
833,
1000,
1250,
1500,
2000,
2500,
5000,
10000,
}; };
static const uint16_t scanStepBWRegValues[] = { static const uint16_t scanStepBWRegValues[] = {
@@ -84,20 +106,23 @@ static const uint16_t listenBWRegValues[] = {
0b0100100001011000, // 6.25 0b0100100001011000, // 6.25
}; };
typedef enum State { typedef enum State
{
SPECTRUM, SPECTRUM,
FREQ_INPUT, FREQ_INPUT,
STILL, STILL,
} State; } State;
typedef enum StepsCount { typedef enum StepsCount
{
STEPS_128, STEPS_128,
STEPS_64, STEPS_64,
STEPS_32, STEPS_32,
STEPS_16, STEPS_16,
} StepsCount; } StepsCount;
typedef enum ScanStep { typedef enum ScanStep
{
S_STEP_0_01kHz, S_STEP_0_01kHz,
S_STEP_0_1kHz, S_STEP_0_1kHz,
S_STEP_0_5kHz, S_STEP_0_5kHz,
@@ -116,7 +141,8 @@ typedef enum ScanStep {
S_STEP_100_0kHz, S_STEP_100_0kHz,
} ScanStep; } ScanStep;
typedef struct SpectrumSettings { typedef struct SpectrumSettings
{
uint32_t frequencyChangeStep; uint32_t frequencyChangeStep;
StepsCount stepsCount; StepsCount stepsCount;
ScanStep scanStepIndex; ScanStep scanStepIndex;
@@ -130,13 +156,15 @@ typedef struct SpectrumSettings {
bool backlightState; bool backlightState;
} SpectrumSettings; } SpectrumSettings;
typedef struct KeyboardState { typedef struct KeyboardState
{
KEY_Code_t current; KEY_Code_t current;
KEY_Code_t prev; KEY_Code_t prev;
uint8_t counter; uint8_t counter;
} KeyboardState; } KeyboardState;
typedef struct ScanInfo { typedef struct ScanInfo
{
uint16_t rssi, rssiMin, rssiMax; uint16_t rssi, rssiMin, rssiMax;
uint16_t i, iPeak; uint16_t i, iPeak;
uint32_t f, fPeak; uint32_t f, fPeak;
@@ -144,7 +172,8 @@ typedef struct ScanInfo {
uint16_t measurementsCount; uint16_t measurementsCount;
} ScanInfo; } ScanInfo;
typedef struct PeakInfo { typedef struct PeakInfo
{
uint16_t t; uint16_t t;
uint16_t rssi; uint16_t rssi;
uint32_t f; uint32_t f;