2017-10-21 06:11:49 +01:00
|
|
|
#ifndef DESKTOP_SETTINGS_H
|
|
|
|
#define DESKTOP_SETTINGS_H
|
|
|
|
|
|
|
|
#include <QMutex>
|
2018-11-06 03:04:53 +00:00
|
|
|
#include <algorithm>
|
2017-10-21 06:11:49 +01:00
|
|
|
|
|
|
|
//Just a whole lot of variables not directly related to xmega.
|
|
|
|
|
|
|
|
//USB iso stuff
|
|
|
|
extern int MAX_TRANSFER_SIZE;
|
|
|
|
extern int MAX_PENDING_TRANSFERS;
|
|
|
|
extern int MAX_PENDING_IO;
|
|
|
|
|
|
|
|
//Plot settings
|
|
|
|
extern int GRAPH_SAMPLES;
|
|
|
|
extern int TIMER_PERIOD;
|
|
|
|
extern int ISO_RECOVERY_TIME;
|
|
|
|
extern int MAX_WINDOW_SIZE;
|
|
|
|
extern int TICK_SEPARATION;
|
2018-11-06 03:04:53 +00:00
|
|
|
#define TRIGGER_COUNT_THRESH (7 + std::max<int>(0, log10(window))) //Is this the right number?
|
2017-10-21 06:11:49 +01:00
|
|
|
|
|
|
|
//Multimeter settings
|
|
|
|
extern int MULTIMETER_PERIOD;
|
|
|
|
|
|
|
|
extern double SERIAL_DELAY;
|
|
|
|
|
|
|
|
extern QMutex tcBlockMutex;
|
|
|
|
extern QMutex unixDriverDeleteMutex;
|
|
|
|
extern struct timeval tv;
|
|
|
|
|
|
|
|
extern unsigned char expected_variant;
|
|
|
|
|
|
|
|
#define DEBUG_SETTINGSDOTSET
|
|
|
|
|
|
|
|
#define USB_RECONNECT_PERIOD 420
|
|
|
|
|
|
|
|
#define VALID_DATA_PER_375 375
|
|
|
|
|
|
|
|
#define VALID_DATA_PER_750 750
|
|
|
|
|
|
|
|
#define COLUMN_BREAK VALID_DATA_PER_750
|
|
|
|
|
|
|
|
//#define MAX_CONSOLE_BLOCK_COUNT 512
|
|
|
|
#define SERIAL_BUFFER_LENGTH 8192
|
|
|
|
|
|
|
|
#define ANDROID_SCALE_INSENSITIVITY 1.2
|
|
|
|
|
2017-12-27 01:44:49 +00:00
|
|
|
#define NUM_BYTES_STORED_PER_DAQ_SAMPLE 9
|
|
|
|
|
2017-10-21 06:11:49 +01:00
|
|
|
#endif // DESKTOP_SETTINGS_H
|
|
|
|
|