EU1KY AA FW
panvswr2.c File Reference
#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
}
 

Functions

void ShowF (void)
 
void DrawFootText (void)
 
static void DrawRX ()
 
static void DrawSmith ()
 
static float complex SmoothRX (int idx, int useHighSmooth)
 
void SWR_Exit (void)
 
static void SWR_2 (void)
 
void SWR_Mute (void)
 
static void SWR_3 (void)
 
void SWR_SetFrequency (void)
 
void SWR_SetFrequencyMuted (void)
 
void QuMeasure (void)
 
void QuCalibrate (void)
 
void DrawX_Scale (float maxRXi, float minRXi)
 
void Beep (int duration)
 
unsigned long GetUpper (int i)
 
unsigned long GetLower (int i)
 
int GetBandNr (unsigned long freq)
 
static void WK_InvertPixel (LCDPoint p)
 
static int swroffset (float swr)
 
static int Z_offset (float Z)
 
static float S11Calc (float swr)
 
static int IsFinHamBands (uint32_t f_kHz)
 
static void DrawCursor ()
 
static void DrawCursorText ()
 
static void DrawCursorTextWithS11 ()
 
static void DrawAutoText (void)
 
static void DrawBottomText (void)
 
static void DrawSavingText (void)
 
static void DrawSavedText (void)
 
static void DecrCursor ()
 
static void IncrCursor ()
 
static void DrawGrid (GRAPHTYPE grType)
 
static void ScanRXFast (void)
 
static void ScanRX (int selector)
 
static void DrawVSWR (void)
 
static void LoadBkups ()
 
static float nicenum (float x, int round)
 
static void DrawS11 ()
 
static void DrawRX (int SelQu, int SelEqu)
 
static void RedrawWindow ()
 
static void save_snapshot (void)
 
int TouchTest ()
 
int Scan200 (uint8_t line, int index1)
 
int ShowFreq (int indx)
 
void ShowResult (int indx)
 
uint32_t GetFrequency (uint32_t f0)
 
static void ShowFr (void)
 
void setup_GPIO (void)
 
void Tune_SWR_Proc (void)
 
void MultiSWR_Proc (void)
 
void ZoomMinus (void)
 
void ZoomPlus (void)
 
void SWR_Exit0 (void)
 
void Switch_Menu (void)
 
void Store (void)
 
void DiagType (void)
 
void Save_Snap (void)
 
void Auto_Fast (void)
 
void Frequency (void)
 
void Scan (void)
 
void Mem1 (void)
 
void Mem2 (void)
 
void Mem3 (void)
 
static void DrawHelp (void)
 
void PANVSWR2_Proc (void)
 
void Quartz_proc (void)
 

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 BANDSPANpBss
 
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
 

Macro Definition Documentation

#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 RXOFFS (   rx)    ((int)roundf(((rx - graphmin_r) * WHEIGHT) / grange_r) + 1)
#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 WY (   offset)    ((WHEIGHT + Y0) - (offset))
#define X0   51
#define XX0   190
#define Y0   18
#define YY0   42

Enumeration Type Documentation

enum GRAPHTYPE
Enumerator
GRAPH_VSWR 
GRAPH_VSWR_Z 
GRAPH_VSWR_RX 
GRAPH_RX 
GRAPH_SMITH 
GRAPH_S11 

Function Documentation

void Auto_Fast ( void  )
void Beep ( int  duration)
static void DecrCursor ( )
static
void DiagType ( void  )
static void DrawAutoText ( void  )
static
static void DrawBottomText ( void  )
static
static void DrawCursor ( )
static
static void DrawCursorText ( )
static

1000.;

static void DrawCursorTextWithS11 ( )
static

1000.;

void DrawFootText ( void  )
static void DrawGrid ( GRAPHTYPE  grType)
static
static void DrawHelp ( void  )
static
static void DrawRX ( )
static
static void DrawRX ( int  SelQu,
int  SelEqu 
)
static
static void DrawS11 ( )
static
static void DrawSavedText ( void  )
static
static void DrawSavingText ( void  )
static
static void DrawSmith ( void  )
static
static void DrawVSWR ( void  )
static
void DrawX_Scale ( float  maxRXi,
float  minRXi 
)
void Frequency ( void  )
int GetBandNr ( unsigned long  freq)
uint32_t GetFrequency ( uint32_t  f0)
unsigned long GetLower ( int  i)
unsigned long GetUpper ( int  i)
static void IncrCursor ( )
static
static int IsFinHamBands ( uint32_t  f_kHz)
static
static void LoadBkups ( )
static
void Mem1 ( void  )
void Mem2 ( void  )
void Mem3 ( void  )
void MultiSWR_Proc ( void  )
static float nicenum ( float  x,
int  round 
)
static
void PANVSWR2_Proc ( void  )
void Quartz_proc ( void  )
void QuCalibrate ( void  )
void QuMeasure ( void  )
static void RedrawWindow ( )
static
static float S11Calc ( float  swr)
static
void Save_Snap ( void  )
static void save_snapshot ( void  )
static
void Scan ( void  )
int Scan200 ( uint8_t  line,
int  index1 
)
static void ScanRX ( int  selector)
static
static void ScanRXFast ( void  )
static
void setup_GPIO ( void  )
void ShowF ( void  )
static void ShowFr ( void  )
static
int ShowFreq ( int  indx)
void ShowResult ( int  indx)
static float complex SmoothRX ( int  idx,
int  useHighSmooth 
)
static
void Store ( void  )
void Switch_Menu ( void  )
static void SWR_2 ( void  )
static
static void SWR_3 ( void  )
static
void SWR_Exit ( void  )
void SWR_Exit0 ( void  )
void SWR_Mute ( void  )
void SWR_SetFrequency ( void  )
void SWR_SetFrequencyMuted ( void  )
static int swroffset ( float  swr)
static
int TouchTest ( )
void Tune_SWR_Proc ( void  )
static void WK_InvertPixel ( LCDPoint  p)
static
static int Z_offset ( float  Z)
static
void ZoomMinus ( void  )
void ZoomPlus ( void  )

Variable Documentation

uint32_t autofast = 0
static
volatile uint32_t autosleep_timer
int BeepIsActive
static
const char* BSSTR[]
Initial value:
= {"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[]
Initial value:
= {"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[]
Initial value:
= {2,4,10,20,40,100,200, 400, 1000, 2000,
4000, 10000, 20000, 30000, 40000, 100000, 200000, 250000, 300000,
350000, 400000, 450000, 500000}
char buf[64]
static
float C0
float Cp
static
uint32_t cursorChangeCount = 0
static
uint32_t cursorPos = WWIDTH / 2
static
const uint32_t cx0 = 240
static
const uint32_t cy0 = 120
static
uint32_t f1 = 14000000
static
float fcur
static
uint32_t Fp
static
uint32_t freqChg
static
int32_t FreqkHz
static
uint32_t freqx
uint32_t Fs
static
uint32_t fxkHzs
static
uint32_t fxs = 3600000ul
static
GRAPHTYPE grType = GRAPH_VSWR
static
const HAM_BANDS hamBands[]
static
Initial value:
=
{
{1800ul, 2000ul},
{3500ul, 3800ul},
{7000ul, 7200ul},
{10100ul, 10150ul},
{14000ul, 14350ul},
{18068ul, 18168ul},
{21000ul, 21450ul},
{24890ul, 24990ul},
{28000ul, 29700ul},
{50000ul, 52000ul},
{144000ul, 146000ul},
{222000ul, 225000ul},
{430000ul, 440000ul},
}
const uint32_t hamBandsNum = sizeof(hamBands) / sizeof(*hamBands)
static
int i
int isMeasured = 0
static
uint32_t isSaved = 0
static
int isStored
static
int32_t k
static
int8_t lastR
static
int8_t lastX
static
int loglog =0
static
uint32_t MinIndex
static
uint32_t MinSWR
static
const char* modstr = "EU1KY AA v." AAVERSION " "
static
uint32_t modstrw = 0
static
uint32_t multi_bw[5] = {200,1000,200,400,100}
static
BANDSPAN multi_bwNo[5] = {6,8,6,5,4}
static
uint32_t multi_fr[5] = {1850,21200,27800,3670,7150}
static
int muted
static
BANDSPAN* pBss
static
LCDPoint pt
static
TEXTBOX_CTX_t Quartz_ctx
int redrawRequired
static
bool reverse1
static
int rMax
static
uint8_t rqDel
bool rqExitSWR
static
float Rs
static
float complex SavedValues1[WWIDTH+1]
static
float complex SavedValues2[WWIDTH+1]
static
float complex SavedValues3[WWIDTH+1]
static
uint32_t Saving
static
int sCalib
int Sel1
static
int Sel2
static
int Sel3
static
int sFreq
const int32_t smithradius = 100
static
BANDSPAN span = BS400
static
char str[6]
int Switch
static
TEXTBOX_CTX_t SWR1
static
TEXTBOX_t SWR_ctx
static
uint8_t SWRLimit
static
uint8_t SWRTone =1
const TEXTBOX_t tb_menuQuartz[]
static
Initial value:
= {
(TEXTBOX_t){.x0 = 10, .y0 = 180, .text = "Set Frequency", .font = FONT_FRANBIG,.width = 180, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = SWR_SetFrequency , .cbparam = 1, .next = (void*)&tb_menuQuartz[1] },
(TEXTBOX_t){.x0 = 200, .y0 = 180, .text = "Calibrate OPEN", .font = FONT_FRANBIG,.width = 220, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = QuCalibrate , .cbparam = 1, .next = (void*)&tb_menuQuartz[2] },
(TEXTBOX_t){.x0 = 80, .y0 = 230, .text = "Start", .font = FONT_FRANBIG,.width = 100, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = QuMeasure , .cbparam = 1, .next = (void*)&tb_menuQuartz[3] },
(TEXTBOX_t){ .x0 = 0, .y0 = 230, .text = "Exit", .font = FONT_FRANBIG, .width = 70, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = LCD_RED, .cb = (void(*)(void))SWR_Exit, .cbparam = 1,},
}
Definition: textbox.h:15
void SWR_Exit(void)
Definition: panvswr2.c:1724
#define M_BGCOLOR
Definition: panvswr2.c:158
void QuCalibrate(void)
Definition: panvswr2.c:2359
uint16_t x0
Definition: textbox.h:22
void QuMeasure(void)
Definition: panvswr2.c:2380
Definition: font.h:18
void SWR_SetFrequency(void)
Definition: panvswr2.c:1806
static const TEXTBOX_t tb_menuQuartz[]
Definition: panvswr2.c:162
#define M_FGCOLOR
Definition: panvswr2.c:159
Definition: LCD.h:40
void(Delete(void))
Definition: mainwnd.c:359
const TEXTBOX_t tb_menuQuartz2[]
static
Initial value:
= {
(TEXTBOX_t){.x0 = 270, .y0 = 230, .text = "Start", .font = FONT_FRANBIG,.width = 100, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = QuMeasure , .cbparam = 1, .next = (void*)&tb_menuQuartz2[1] },
(TEXTBOX_t){.x0 = 80, .y0 = 230, .text = "Set Frequency", .font = FONT_FRANBIG,.width = 180, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = SWR_SetFrequency , .cbparam = 1, .next = (void*)&tb_menuQuartz2[2] },
(TEXTBOX_t){ .x0 = 0, .y0 = 230, .text = "Exit", .font = FONT_FRANBIG, .width = 70, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = LCD_RED, .cb = (void(*)(void))SWR_Exit, .cbparam = 1,},
}
Definition: textbox.h:15
void SWR_Exit(void)
Definition: panvswr2.c:1724
#define M_BGCOLOR
Definition: panvswr2.c:158
static const TEXTBOX_t tb_menuQuartz2[]
Definition: panvswr2.c:173
uint16_t x0
Definition: textbox.h:22
void QuMeasure(void)
Definition: panvswr2.c:2380
Definition: font.h:18
void SWR_SetFrequency(void)
Definition: panvswr2.c:1806
#define M_FGCOLOR
Definition: panvswr2.c:159
Definition: LCD.h:40
void(Delete(void))
Definition: mainwnd.c:359
const TEXTBOX_t tb_menuSWR[]
static
Initial value:
= {
(TEXTBOX_t){.x0 = 70, .y0 = 210, .text = "Frequency", .font = FONT_FRANBIG,.width = 120, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = SWR_SetFrequencyMuted , .cbparam = 1, .next = (void*)&tb_menuSWR[1] },
(TEXTBOX_t){.x0 = 280, .y0 = 210, .text = "SWR_2", .font = FONT_FRANBIG,.width = 100, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = SWR_2 , .cbparam = 1, .next = (void*)&tb_menuSWR[2] },
(TEXTBOX_t){.x0 = 380, .y0 = 210, .text = "SWR_3", .font = FONT_FRANBIG,.width = 96, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = SWR_3 , .cbparam = 1, .next = (void*)&tb_menuSWR[3] },
(TEXTBOX_t){.x0 = 190, .y0 = 210, .text = "Mute", .font = FONT_FRANBIG,.width = 90, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = SWR_Mute , .cbparam = 1, .next = (void*)&tb_menuSWR[4] },
(TEXTBOX_t){ .x0 = 0, .y0 = 210, .text = "Exit", .font = FONT_FRANBIG, .width = 70, .height = 34, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = LCD_RED, .cb = (void(*)(void))SWR_Exit, .cbparam = 1,},
}
Definition: textbox.h:15
void SWR_Mute(void)
Definition: panvswr2.c:1732
void SWR_Exit(void)
Definition: panvswr2.c:1724
void SWR_SetFrequencyMuted(void)
Definition: panvswr2.c:1826
#define M_BGCOLOR
Definition: panvswr2.c:158
uint16_t x0
Definition: textbox.h:22
static void SWR_3(void)
Definition: panvswr2.c:1765
Definition: font.h:18
#define M_FGCOLOR
Definition: panvswr2.c:159
Definition: LCD.h:40
static const TEXTBOX_t tb_menuSWR[]
Definition: panvswr2.c:184
void(Delete(void))
Definition: mainwnd.c:359
static void SWR_2(void)
Definition: panvswr2.c:1748
const TEXTBOX_t tb_PANVSWR[]
static
Initial value:
= {
(TEXTBOX_t){ .x0 = 0, .y0 = 248, .text = "Exit", .font = FONT_FRAN, .width = 50, .height = 22, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = LCD_RED, .cb = (void(*)(void))SWR_Exit0, .cbparam = 1,.next = (void*)&tb_PANVSWR[1]},
(TEXTBOX_t){.x0 = 52, .y0 = 248, .text = "Menu2", .font = FONT_FRAN,.width = 40, .height = 22, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Switch_Menu , .cbparam = 1, .next = (void*)&tb_PANVSWR[2] },
(TEXTBOX_t){.x0 = 94, .y0 = 248, .text ="Store", .font = FONT_FRAN,.width = 54, .height = 22, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Store, .cbparam = 1, .next = (void*)&tb_PANVSWR[3] },
(TEXTBOX_t){.x0 = 150, .y0 = 248, .text ="Diagram Type", .font = FONT_FRAN,.width = 76, .height = 22, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = DiagType , .cbparam = 1, .next = (void*)&tb_PANVSWR[4] },
(TEXTBOX_t){.x0 = 230, .y0 = 248, .text ="Save Snapshot", .font = FONT_FRAN,.width = 96, .height = 22, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Save_Snap , .cbparam = 1, .next = (void*)&tb_PANVSWR[5] },
(TEXTBOX_t){.x0 = 328, .y0 = 248, .text ="Auto (fast)", .font = FONT_FRAN,.width = 80, .height = 22, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Auto_Fast , .cbparam = 1, .next = (void*)&tb_PANVSWR[6] },
(TEXTBOX_t){.x0 = 410, .y0 = 248, .text ="Scan", .font = FONT_FRAN,.width = 60, .height = 22, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Scan , .cbparam = 1, .next = (void*)&tb_PANVSWR[7] },
(TEXTBOX_t){.x0 = 0, .y0 = 193, .text = "Z-", .font = FONT_FRAN,.width = 24, .height = 25, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = ZoomMinus , .cbparam = 1, .next = (void*)&tb_PANVSWR[8] },
(TEXTBOX_t){.x0 = 454, .y0 = 193, .text = "Z+", .font = FONT_FRAN,.width = 24, .height = 25, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = ZoomPlus , .cbparam = 1, .next = (void*)&tb_PANVSWR[9] },
(TEXTBOX_t){.x0 = 454, .y0 = 100, .text ="M1", .font = FONT_FRAN,.width = 24, .height = 25, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Mem1 , .cbparam = 1, .next = (void*)&tb_PANVSWR[10] },
(TEXTBOX_t){.x0 = 454, .y0 = 127, .text ="M2", .font = FONT_FRAN,.width = 24, .height = 25, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Mem2 , .cbparam = 1, .next = (void*)&tb_PANVSWR[11] },
(TEXTBOX_t){.x0 = 454, .y0 = 154, .text ="M3", .font = FONT_FRAN,.width = 24, .height = 25, .center = 1,
.border = 1, .fgcolor = M_FGCOLOR, .bgcolor = M_BGCOLOR, .cb = Mem3 , .cbparam = 1, },
}
Definition: textbox.h:15
void Mem2(void)
Definition: panvswr2.c:2212
void SWR_Exit0(void)
Definition: panvswr2.c:2100
void Auto_Fast(void)
Definition: panvswr2.c:2156
void Mem3(void)
Definition: panvswr2.c:2225
void Switch_Menu(void)
Definition: panvswr2.c:2104
#define M_BGCOLOR
Definition: panvswr2.c:158
void Mem1(void)
Definition: panvswr2.c:2200
static const TEXTBOX_t tb_PANVSWR[]
Definition: panvswr2.c:2244
uint16_t x0
Definition: textbox.h:22
void Scan(void)
Definition: panvswr2.c:2182
void Save_Snap(void)
Definition: panvswr2.c:2151
void DiagType(void)
Definition: panvswr2.c:2129
#define M_FGCOLOR
Definition: panvswr2.c:159
void Store(void)
Definition: panvswr2.c:2117
Definition: LCD.h:40
void ZoomMinus(void)
Definition: panvswr2.c:2089
void(Delete(void))
Definition: mainwnd.c:359
Definition: font.h:18
void ZoomPlus(void)
Definition: panvswr2.c:2094
uint32_t ToneFreq
static
int ToneTrigger
static
float complex values[WWIDTH+1]
static
int xMax
static
float complex z200[21] = { 0 }
static