/
CEPBEP
/
OPS
Обзор
Документация
Войти
/
CEPBEP
/
OPS
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
BASE_STATION/LIB/macros.h
50 строк
1 KB
George Kwa
Add files via upload
14 окт 2025, 16:54
Не верифицирован
14 окт 2025, 16:54
77fcf89
Код
Авторство
О чём код?
#ifndef MACROS_H #define MACROS_H // Data Defines #define MARKER_COUNT (6) #define TRACE_COUNT (6) #define PRESET_COUNT (9) #define TOOLBAR_H (30) #define MAX_DOCK_WIDTH (326) // Width of whole dock panel #define MIN_DOCK_WIDTH (226) #define ENTRY_WIDTH (290) // Width of panel entry #define ENTRY_OFFSET (5) // panel entry initial offset //#define LABEL_W (75) // panel entry label width #define ENTRY_H (25) // panel entry height // Button alignments #define BUTTON_W (130) #define BUTTON_H (25) #define BUTTON_R1_X (10) #define BUTTON_R2_X (140) #define BB_PI (3.14159265358979323) #define BB_TWO_PI (2 * BB_PI) #define BB_FOUR_PI (4 * BB_PI) // Minimum IQ sweep length // Ensures we can still do a 16 point FFT const int MIN_IQ_SWEEP_LEN = 20; // Absolute maximum sweep length regardless of decimation rate // This creates a shorter maximum sweep time when the decimation // is lower. This number should be reasonable as the entirety of // the sweep will be plotted. const int MAX_IQ_SWEEP_LEN = 65536; const double MIN_OCBW_PERCENT_POWER = 70.0; const double MAX_OCBW_PERCENT_POWER = 99.9; const int MAX_ZERO_SPAN_UPDATE_RATE = 64; #define DISALLOW_COPY_AND_ASSIGN(class_name) \ class_name(class_name&); \ class_name& operator=(class_name&); #define DISALLOW_COPY(class_name) \ class_name& operator=(class_name&); #endif // MACROS_H