void(Delete(void))
Definition: mainwnd.c:360
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
#include "LCD.h"
#include "touch.h"
#include "font.h"
#include "config.h"
#include "ff.h"
#include "crash.h"
#include "dsp.h"
#include "gen.h"
#include "oslfile.h"
#include "stm32746g_discovery_lcd.h"
#include "screenshot.h"
#include "panvswr2.h"
#include "panfreq.h"
#include "smith.h"
#include "textbox.h"
#include "generator.h"
#include "FreqCounter.h"
Macros | |
#define | X0 51 |
#define | Y0 18 |
#define | WWIDTH 400 |
#define | WHEIGHT 200 |
#define | WY(offset) ((WHEIGHT + Y0) - (offset)) |
#define | WGRIDCOLOR LCD_COLOR_DARKGRAY |
#define | RED1 LCD_RGB(245,0,0) |
#define | RED2 LCD_RGB(235,0,0) |
#define | WGRIDCOLORBR LCD_RGB(160,160,96) |
#define | SMITH_CIRCLE_BG LCD_BLACK |
#define | SMITH_LINE_FG LCD_GREEN |
#define | MAX(a, b) (((a)>(b))?(a):(b)) |
#define | MIN(a, b) (((a)<(b))?(a):(b)) |
#define | SMOOTHWINDOW 3 |
#define | SMOOTHOFS (SMOOTHWINDOW/2) |
#define | SMOOTHWINDOW_HI 7 |
#define | SMOOTHOFS_HI (SMOOTHWINDOW_HI/2) |
#define | SM_INTENSITY 64 |
#define | M_BGCOLOR LCD_RGB(0,0,64) |
#define | M_FGCOLOR LCD_RGB(255,255,0) |
#define | S11OFFS(s11) ((int)roundf(((s11 - graphmin) * WHEIGHT) / grange) + 1) |
#define | LimitR 1999.f |
#define | RXOFFS(rx) ((int)roundf(((rx - graphmin_r) * WHEIGHT) / grange_r) + 1) |
#define | XX0 190 |
#define | YY0 42 |
#define | XXM1 175 |
#define | YYM1 250 |
#define | XXM2 225 |
#define | YYM2 250 |
Enumerations | |
enum | GRAPHTYPE { GRAPH_VSWR, GRAPH_VSWR_Z, GRAPH_VSWR_RX, GRAPH_RX, GRAPH_SMITH, GRAPH_S11 } |
Variables | |
uint8_t | rqDel |
static const HAM_BANDS | hamBands [] |
static const uint32_t | hamBandsNum = sizeof(hamBands) / sizeof(*hamBands) |
static const uint32_t | cx0 = 240 |
static const uint32_t | cy0 = 120 |
static const int32_t | smithradius = 100 |
static const char * | modstr = "EU1KY AA v." AAVERSION " " |
static uint32_t | modstrw = 0 |
const char * | BSSTR [] = {"2 kHz","4 kHz","10 kHz","20 kHz","40 kHz","100 kHz","200 kHz", "400 kHz", "1000 kHz", "2 MHz", "4 MHz", "10 MHz", "20 MHz", "30 MHz", "40 MHz", "100 MHz", "200 MHz", "250 Mhz", "300 MHz", "350 MHz", "400 MHz", "450 MHz", "500 MHz"} |
const char * | BSSTR_HALF [] = {"1 kHz","2 kHz","5 kHz","10 kHz","20 kHz","50 kHz","100 kHz", "200 kHz", "500 kHz", "1 MHz", "2 MHz", "5 MHz", "10 MHz", "15 MHz", "20 MHz", "50 MHz", "100 MHz", "125 MHz", "150 MHz", "175 MHz", "200 MHz", "225 MHz", "250 MHz"} |
const uint32_t | BSVALUES [] = {2,4,10,20,40,100,200, 400, 1000, 2000, 4000, 10000, 20000, 30000, 40000, 100000, 200000, 250000, 300000, 350000, 400000, 450000, 500000} |
static uint32_t | f1 = 14000000 |
static BANDSPAN | span = BS400 |
static float | fcur |
static char | buf [64] |
static LCDPoint | pt |
static float complex | values [WWIDTH+1] |
static int | isMeasured = 0 |
static uint32_t | cursorPos = WWIDTH / 2 |
static GRAPHTYPE | grType = GRAPH_VSWR |
static uint32_t | isSaved = 0 |
static uint32_t | cursorChangeCount = 0 |
static uint32_t | autofast = 0 |
static int | loglog =0 |
volatile uint32_t | autosleep_timer |
static TEXTBOX_t | SWR_ctx |
int | sFreq |
int | sCalib |
static const TEXTBOX_t | tb_menuQuartz [] |
static const TEXTBOX_t | tb_menuQuartz2 [] |
static const TEXTBOX_t | tb_menuSWR [] |
static uint32_t | multi_fr [5] = {1850,21200,27800,3670,7150} |
static uint32_t | multi_bw [5] = {200,1000,200,400,100} |
static BANDSPAN | multi_bwNo [5] = {6,8,6,5,4} |
static int | beep |
static uint32_t | Fs |
static uint32_t | Fp |
static float | Cp |
static float | Rs |
static uint32_t | MinSWR |
static uint32_t | MinIndex |
static int8_t | lastR |
static int8_t | lastX |
static int | rMax |
static int | xMax |
static bool | reverse1 |
static float complex | z200 [21] = { 0 } |
char | str [6] |
int | i |
uint32_t | freqx |
static bool | rqExitSWR |
static uint8_t | SWRLimit |
static int | Tone |
static uint32_t | fxs = 3600000ul |
static uint32_t | fxkHzs |
static BANDSPAN * | pBss |
static uint32_t | freqChg |
uint8_t | AUDIO1 =1 |
TEXTBOX_CTX_t | Quartz_ctx |
float | C0 |
#define LimitR 1999.f |
#define M_BGCOLOR LCD_RGB(0,0,64) |
#define M_FGCOLOR LCD_RGB(255,255,0) |
#define MAX | ( | a, | |
b | |||
) | (((a)>(b))?(a):(b)) |
#define MIN | ( | a, | |
b | |||
) | (((a)<(b))?(a):(b)) |
#define RED1 LCD_RGB(245,0,0) |
#define RED2 LCD_RGB(235,0,0) |
#define S11OFFS | ( | s11 | ) | ((int)roundf(((s11 - graphmin) * WHEIGHT) / grange) + 1) |
#define SM_INTENSITY 64 |
#define SMITH_CIRCLE_BG LCD_BLACK |
#define SMITH_LINE_FG LCD_GREEN |
#define SMOOTHOFS (SMOOTHWINDOW/2) |
#define SMOOTHOFS_HI (SMOOTHWINDOW_HI/2) |
#define SMOOTHWINDOW 3 |
#define SMOOTHWINDOW_HI 7 |
#define WGRIDCOLOR LCD_COLOR_DARKGRAY |
#define WGRIDCOLORBR LCD_RGB(160,160,96) |
#define WHEIGHT 200 |
#define WWIDTH 400 |
#define X0 51 |
#define XX0 190 |
#define XXM1 175 |
#define XXM2 225 |
#define Y0 18 |
#define YY0 42 |
#define YYM1 250 |
#define YYM2 250 |
enum GRAPHTYPE |
void Beep | ( | int | duration | ) |
|
static |
|
static |
|
static |
1000.;
|
static |
1000.;
|
static |
|
static |
|
static |
void DrawX_Scale | ( | float | maxRXi, |
float | minRXi | ||
) |
int GetBandNr | ( | unsigned long | freq | ) |
uint32_t GetFrequency | ( | uint32_t | f0 | ) |
unsigned long GetLower | ( | int | i | ) |
unsigned long GetUpper | ( | int | i | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int Scan200 | ( | uint8_t | line, |
int | index1 | ||
) |
|
static |
int ShowFreq | ( | int | indx | ) |
void ShowResult | ( | int | indx | ) |
|
static |
|
static |
int TouchTest | ( | ) |
|
static |
uint8_t AUDIO1 =1 |
|
static |
volatile uint32_t autosleep_timer |
|
static |
const char* BSSTR[] = {"2 kHz","4 kHz","10 kHz","20 kHz","40 kHz","100 kHz","200 kHz", "400 kHz", "1000 kHz", "2 MHz", "4 MHz", "10 MHz", "20 MHz", "30 MHz", "40 MHz", "100 MHz", "200 MHz", "250 Mhz", "300 MHz", "350 MHz", "400 MHz", "450 MHz", "500 MHz"} |
const char* BSSTR_HALF[] = {"1 kHz","2 kHz","5 kHz","10 kHz","20 kHz","50 kHz","100 kHz", "200 kHz", "500 kHz", "1 MHz", "2 MHz", "5 MHz", "10 MHz", "15 MHz", "20 MHz", "50 MHz", "100 MHz", "125 MHz", "150 MHz", "175 MHz", "200 MHz", "225 MHz", "250 MHz"} |
const uint32_t BSVALUES[] = {2,4,10,20,40,100,200, 400, 1000, 2000, 4000, 10000, 20000, 30000, 40000, 100000, 200000, 250000, 300000, 350000, 400000, 450000, 500000} |
|
static |
float C0 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
uint32_t freqx |
|
static |
|
static |
|
static |
|
static |
|
static |
int i |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
TEXTBOX_CTX_t Quartz_ctx |
|
static |
|
static |
uint8_t rqDel |
|
static |
|
static |
int sCalib |
int sFreq |
|
static |
char str[6] |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |