void(Delete(void))
Definition: mainwnd.c:359
#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 "main.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 | 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 |
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 [] |
const char * | BSSTR_HALF [] |
const uint32_t | BSVALUES [] |
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 float complex | SavedValues1 [WWIDTH+1] |
static float complex | SavedValues2 [WWIDTH+1] |
static float complex | SavedValues3 [WWIDTH+1] |
static int | isStored |
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 |
static TEXTBOX_CTX_t | SWR1 |
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 | BeepIsActive |
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 | muted |
static uint32_t | ToneFreq |
static int | ToneTrigger |
static uint32_t | fxs = 3600000ul |
static uint32_t | fxkHzs |
static BANDSPAN * | pBss |
static uint32_t | freqChg |
uint8_t | SWRTone =1 |
static int | redrawRequired |
static int | Switch |
static int | Sel1 |
static int | Sel2 |
static int | Sel3 |
static uint32_t | Saving |
static int32_t | FreqkHz |
static int32_t | k |
static const TEXTBOX_t | tb_PANVSWR [] |
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 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 Y0 18 |
#define YY0 42 |
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 |
|
static |
volatile uint32_t autosleep_timer |
|
static |
const char* BSSTR[] |
const char* BSSTR_HALF[] |
const uint32_t BSVALUES[] |
|
static |
float C0 |
|
static |
|
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 |
|
static |
|
static |
|
static |
TEXTBOX_CTX_t Quartz_ctx |
|
static |
|
static |
|
static |
uint8_t rqDel |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int sCalib |
|
static |
|
static |
|
static |
int sFreq |
|
static |
char str[6] |
|
static |
|
static |
|
static |
|
static |
uint8_t SWRTone =1 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |