mirror of
https://github.com/g8bpq/QtSoundModem.git
synced 2025-04-22 21:31:12 +02:00
Compare commits
No commits in common. "0.69" and "main" have entirely different histories.
156 changed files with 674 additions and 97654 deletions
ALSASound.cARDOPC.cARDOPC.hBusyDetect.cCalibrate.cConfig.cppDialogButtonBottom.uiLICENSELinuxBits.cModemDialog.uiModulate.cQtSoundModem-DESKTOP-MHE5LO8.vcxprojQtSoundModem-HPLaptop.vcxprojQtSoundModem.apsQtSoundModem.cppQtSoundModem.cpp.bakQtSoundModem.hQtSoundModem.icoQtSoundModem.iniQtSoundModem.priQtSoundModem.proQtSoundModem.qrcQtSoundModem.rcQtSoundModem.uiQtSoundModem.vcxprojQtSoundModem.vcxproj-DESKTOP-MHE5LO8.userQtSoundModem.vcxproj-HPLaptop.userQtSoundModem.vcxproj.filtersQtSoundModem.vcxproj.userQtSoundModemCopy.vcxprojQtSoundModem_resource.rcRSUnit.cResource.apsSMMain-DESKTOP-MHE5LO8.cSMMain-HPLaptop.cSMMain.cShowFilter.cppSoundInput.cUZ7HOStuff-DESKTOP-MHE5LO8.hUZ7HOStuff-HPLaptop.hUZ7HOStuff.hUZ7HOStuff.h.bakUZ7HOUtils.cWaveout.cagwlib.hais.haprs_tt.hardopSampleArrays.caudio.caudio_stats.hax25.cax25_agw.cax25_demod.cax25_fec.cax25_l2.cax25_link.hax25_mod-DESKTOP-MHE5LO8.cax25_mod.cax25_pad2.hbeacon.hberlekamp.ccalibrateDialog.uicdigipeater.hcm108.hconfigconfig.h
debug
decode_aprs.hdedupe.hdemod.hdemod_afsk.hdemod_psk.hdescriptiondevicesDialog.uidigipeater.hdlq.hdns_sd_common.hdns_sd_dw.hdtime_now.hdtmf.hdw9600.cdw9600.hdwgps.hdwgpsd.hdwgpsnmea.hdwsock.hecc.hencode_aprs.hfcs_calc.hfftw3.ffftw3.hfilterWindow.uifsk_filters.hfsk_gen_filter.hgalois.cgen_tone.hglobals.hgrm_sym.h
1928
ALSASound.c
1928
ALSASound.c
File diff suppressed because it is too large
Load diff
771
ARDOPC.h
771
ARDOPC.h
|
@ -1,771 +0,0 @@
|
|||
|
||||
|
||||
#ifndef ARDOPCHEADERDEFINED
|
||||
#define ARDOPCHEADERDEFINED
|
||||
|
||||
#ifdef CONST
|
||||
#undef CONST
|
||||
#endif
|
||||
#define CONST const // for building sample arrays
|
||||
|
||||
extern const char ProductName[];
|
||||
extern const char ProductVersion[];
|
||||
|
||||
//#define USE_SOUNDMODEM
|
||||
|
||||
#define UseGUI // Enable GUI Front End Support
|
||||
|
||||
#ifndef TEENSY
|
||||
#ifdef UseGUI
|
||||
|
||||
// Constellation and Waterfall for GUI interface
|
||||
|
||||
//#define PLOTCONSTELLATION
|
||||
//#define PLOTWATERFALL
|
||||
//#define PLOTSPECTRUM
|
||||
#define ConstellationHeight 90
|
||||
#define ConstellationWidth 90
|
||||
#define WaterfallWidth 205
|
||||
#define WaterfallHeight 64
|
||||
#define SpectrumWidth 205
|
||||
#define SpectrumHeight 64
|
||||
|
||||
#define PLOTRADIUS 42
|
||||
#define WHITE 0
|
||||
#define Tomato 1
|
||||
#define Gold 2
|
||||
#define Lime 3
|
||||
#define Yellow 4
|
||||
#define Orange 5
|
||||
#define Khaki 6
|
||||
#define Cyan 7
|
||||
#define DeepSkyBlue 8
|
||||
#define RoyalBlue 9
|
||||
#define Navy 10
|
||||
#define Black 11
|
||||
#define Goldenrod 12
|
||||
#define Fuchsia 13
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
// Sound interface buffer size
|
||||
|
||||
#define SendSize 1200 // 100 mS for now
|
||||
#define ReceiveSize 240 // try 100 mS for now
|
||||
#define NumberofinBuffers 4
|
||||
|
||||
#define MAXCAR 43 // Max OFDM Carriers
|
||||
|
||||
#define DATABUFFERSIZE 11000
|
||||
|
||||
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
|
||||
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
|
||||
#endif
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
|
||||
#ifndef WIN32
|
||||
#define max(x, y) ((x) > (y) ? (x) : (y))
|
||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
typedef void *HANDLE;
|
||||
#else
|
||||
#define HANDLE int
|
||||
#endif
|
||||
|
||||
void txSleep(int mS);
|
||||
|
||||
unsigned int getTicks();
|
||||
|
||||
//#ifdef WIN32
|
||||
//#define round(x) floorf(x + 0.5f);
|
||||
//#endif
|
||||
|
||||
|
||||
#define Now getTicks()
|
||||
|
||||
// DebugLog Severity Levels
|
||||
|
||||
#define LOGEMERGENCY 0
|
||||
#define LOGALERT 1
|
||||
#define LOGCRIT 2
|
||||
#define LOGERROR 3
|
||||
#define LOGWARNING 4
|
||||
#define LOGNOTICE 5
|
||||
#define LOGINFO 6
|
||||
#define LOGDEBUG 7
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
//#include <math.h>
|
||||
|
||||
#ifdef M_PI
|
||||
#undef M_PI
|
||||
#endif
|
||||
|
||||
#define M_PI 3.1415926f
|
||||
|
||||
#ifndef TEENSY
|
||||
#ifndef WIN32
|
||||
#define LINUX
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __ARM_ARCH
|
||||
#ifndef TEENSY
|
||||
#define ARMLINUX
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "ecc.h" // RS Constants
|
||||
|
||||
typedef int BOOL;
|
||||
typedef unsigned char UCHAR;
|
||||
|
||||
#define VOID void
|
||||
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
|
||||
#define False 0
|
||||
#define True 1
|
||||
|
||||
// TEENSY Interface board equates
|
||||
|
||||
#ifdef TEENSY
|
||||
#ifdef PIBOARD
|
||||
#define ISSLED LED0
|
||||
#else
|
||||
#define ISSLED LED1
|
||||
#endif
|
||||
#define IRSLED LED1
|
||||
#define TRAFFICLED LED2
|
||||
#else
|
||||
#define ISSLED 1
|
||||
#define IRSLED 2
|
||||
#define TRAFFICLED 3
|
||||
#define PKTLED 4
|
||||
#endif
|
||||
|
||||
BOOL KeyPTT(BOOL State);
|
||||
|
||||
UCHAR FrameCode(char * strFrameName);
|
||||
BOOL FrameInfo(UCHAR bytFrameType, int * blnOdd, int * intNumCar, char * strMod,
|
||||
int * intBaud, int * intDataLen, int * intRSLen, UCHAR * bytQualThres, char * strType);
|
||||
|
||||
void ClearDataToSend();
|
||||
int EncodeFSKData(UCHAR bytFrameType, UCHAR * bytDataToSend, int Length, unsigned char * bytEncodedBytes);
|
||||
int EncodePSKData(UCHAR bytFrameType, UCHAR * bytDataToSend, int Length, unsigned char * bytEncodedBytes);
|
||||
int EncodeOFDMData(UCHAR bytFrameType, UCHAR * bytDataToSend, int Length, unsigned char * bytEncodedBytes);
|
||||
int Encode4FSKIDFrame(char * Callsign, char * Square, unsigned char * bytreturn, UCHAR SessionID);
|
||||
int EncodeDATAACK(int intQuality, UCHAR bytSessionID, UCHAR * bytreturn);
|
||||
int EncodeDATANAK(int intQuality , UCHAR bytSessionID, UCHAR * bytreturn);
|
||||
void Mod4FSKDataAndPlay(unsigned char * bytEncodedBytes, int Len, int intLeaderLen, int Chan);
|
||||
void ModPSKDataAndPlay(unsigned char * bytEncodedBytes, int Len, int intLeaderLen, int Chan);
|
||||
BOOL IsDataFrame(UCHAR intFrameType);
|
||||
BOOL CheckValidCallsignSyntax(char * strTargetCallsign);
|
||||
void StartCodec(char * strFault);
|
||||
void StopCodec(char * strFault);
|
||||
BOOL SendARQConnectRequest(char * strMycall, char * strTargetCall);
|
||||
void AddDataToDataToSend(UCHAR * bytNewData, int Len);
|
||||
BOOL StartFEC(UCHAR * bytData, int Len, char * strDataMode, int intRepeats, BOOL blnSendID);
|
||||
void SendID(BOOL blnEnableCWID);
|
||||
BOOL CheckGSSyntax(char * GS);
|
||||
//void SetARDOPProtocolState(int value);
|
||||
unsigned int GenCRC16(unsigned char * Data, unsigned short length);
|
||||
void SendCommandToHost(char * Cmd);
|
||||
void TCPSendCommandToHost(char * Cmd);
|
||||
void SCSSendCommandToHost(char * Cmd);
|
||||
void SendCommandToHostQuiet(char * Cmd);
|
||||
void TCPSendCommandToHostQuiet(char * Cmd);
|
||||
void SCSSendCommandToHostQuiet(char * Cmd);
|
||||
void UpdateBusyDetector(short * bytNewSamples);
|
||||
int UpdatePhaseConstellation(short * intPhases, short * intMags, int intPSKPhase, BOOL blnQAM, BOOL OFDM);
|
||||
void SetARDOPProtocolState(int value);
|
||||
BOOL BusyDetect3(float * dblMag, int intStart, int intStop);
|
||||
void SendLogToHost(char * Msg, int len);
|
||||
VOID Gearshift_2(int intAckNakValue, BOOL blnInit);
|
||||
|
||||
void displayState(const char * State);
|
||||
void displayCall(int dirn, char * call);
|
||||
|
||||
void SampleSink(int LR, short Sample);
|
||||
void SoundFlush();
|
||||
void StopCapture();
|
||||
void StartCapture();
|
||||
void DiscardOldSamples();
|
||||
void ClearAllMixedSamples();
|
||||
|
||||
void SetFilter(void * Filter());
|
||||
|
||||
void AddTrailer();
|
||||
void CWID(char * strID, short * intSamples, BOOL blnPlay);
|
||||
void sendCWID(char * Call, BOOL Play, int Chan);
|
||||
UCHAR ComputeTypeParity(UCHAR bytFrameType);
|
||||
void GenCRC16FrameType(char * Data, int Length, UCHAR bytFrameType);
|
||||
BOOL CheckCRC16FrameType(unsigned char * Data, int Length, UCHAR bytFrameType);
|
||||
char * strlop(char * buf, char delim);
|
||||
void QueueCommandToHost(char * Cmd);
|
||||
void SCSQueueCommandToHost(char * Cmd);
|
||||
void TCPQueueCommandToHost(char * Cmd);
|
||||
void SendReplyToHost(char * strText);
|
||||
void TCPSendReplyToHost(char * strText);
|
||||
void SCSSendReplyToHost(char * strText);
|
||||
void LogStats();
|
||||
int GetNextFrameData(int * intUpDn, UCHAR * bytFrameTypeToSend, UCHAR * strMod, BOOL blnInitialize);
|
||||
void SendData();
|
||||
int ComputeInterFrameInterval(int intRequestedIntervalMS);
|
||||
VOID EncodeAndSend4FSKControl(UCHAR bytFrameType, UCHAR bytSessionID, int LeaderLength);
|
||||
VOID WriteExceptionLog(const char * format, ...);
|
||||
void SaveQueueOnBreak();
|
||||
VOID Statsprintf(const char * format, ...);
|
||||
VOID CloseDebugLog();
|
||||
VOID CloseStatsLog();
|
||||
void Abort();
|
||||
void SetLED(int LED, int State);
|
||||
VOID ClearBusy();
|
||||
VOID CloseCOMPort(HANDLE fd);
|
||||
VOID COMClearRTS(HANDLE fd);
|
||||
VOID COMClearDTR(HANDLE fd);
|
||||
|
||||
//#ifdef WIN32
|
||||
void ProcessNewSamples(short * Samples, int nSamples);
|
||||
VOID Debugprintf(const char * format, ...);
|
||||
VOID WriteDebugLog(const char * format, ...);
|
||||
void ardopmain();
|
||||
BOOL GetNextFECFrame();
|
||||
void GenerateFSKTemplates();
|
||||
void printtick(char * msg);
|
||||
void InitValidFrameTypes();
|
||||
//#endif
|
||||
|
||||
extern void Generate50BaudTwoToneLeaderTemplate();
|
||||
extern BOOL blnDISCRepeating;
|
||||
|
||||
BOOL DemodDecode4FSKID(UCHAR bytFrameType, char * strCallID, char * strGridSquare);
|
||||
void DeCompressCallsign(char * bytCallsign, char * returned);
|
||||
void DeCompressGridSquare(char * bytGS, char * returned);
|
||||
|
||||
int RSEncode(UCHAR * bytToRS, UCHAR * RSBytes, int DataLen, int RSLen);
|
||||
BOOL RSDecode(UCHAR * bytRcv, int Length, int CheckLen, BOOL * blnRSOK);
|
||||
|
||||
void ProcessRcvdFECDataFrame(int intFrameType, UCHAR * bytData, BOOL blnFrameDecodedOK);
|
||||
void ProcessUnconnectedConReqFrame(int intFrameType, UCHAR * bytData);
|
||||
void ProcessRcvdARQFrame(UCHAR intFrameType, UCHAR * bytData, int DataLen, BOOL blnFrameDecodedOK);
|
||||
void InitializeConnection();
|
||||
|
||||
void AddTagToDataAndSendToHost(UCHAR * Msg, char * Type, int Len);
|
||||
void TCPAddTagToDataAndSendToHost(UCHAR * Msg, char * Type, int Len);
|
||||
void SCSAddTagToDataAndSendToHost(UCHAR * Msg, char * Type, int Len);
|
||||
|
||||
void RemoveDataFromQueue(int Len);
|
||||
void RemodulateLastFrame();
|
||||
|
||||
void GetSemaphore();
|
||||
void FreeSemaphore();
|
||||
const char * Name(UCHAR bytID);
|
||||
const char * shortName(UCHAR bytID);
|
||||
void InitSound();
|
||||
void initFilter(int Width, int centerFreq, int Chan);
|
||||
void FourierTransform(int NumSamples, short * RealIn, float * RealOut, float * ImagOut, int InverseTransform);
|
||||
VOID ClosePacketSessions();
|
||||
VOID LostHost();
|
||||
VOID ProcessPacketHostBytes(UCHAR * RXBuffer, int Len);
|
||||
int ReadCOMBlock(HANDLE fd, char * Block, int MaxLength);
|
||||
VOID ProcessDEDModeFrame(UCHAR * rxbuffer, unsigned int Length);
|
||||
BOOL CheckForPktMon();
|
||||
BOOL CheckForPktData();
|
||||
void ModOFDMDataAndPlay(unsigned char * bytEncodedBytes, int Len, int intLeaderLen, int Chan);
|
||||
void GetOFDMFrameInfo(int OFDMMode, int * intDataLen, int * intRSLen, int * Mode, int * Symbols);
|
||||
void ClearOFDMVariables();
|
||||
VOID EncodeAndSendOFDMACK(UCHAR bytSessionID, int LeaderLength, int Chan);
|
||||
int ProcessOFDMAck(int AckType);
|
||||
void ProcessOFDMNak(int AckType);
|
||||
|
||||
int SendtoGUI(char Type, unsigned char * Msg, int Len);
|
||||
void DrawRXFrame(int State, const char * Frame);
|
||||
void DrawTXFrame(const char * Frame);
|
||||
void mySetPixel(unsigned char x, unsigned char y, unsigned int Colour);
|
||||
void clearDisplay();
|
||||
void DrawDecode(char * Decode);
|
||||
|
||||
|
||||
extern int WaterfallActive;
|
||||
extern int SpectrumActive;
|
||||
extern unsigned int PKTLEDTimer;
|
||||
|
||||
extern char stcLastPingstrSender[10];
|
||||
extern char stcLastPingstrTarget[10];
|
||||
extern int stcLastPingintRcvdSN;
|
||||
extern int stcLastPingintQuality;
|
||||
extern time_t stcLastPingdttTimeReceived;
|
||||
|
||||
enum _ReceiveState // used for initial receive testing...later put in correct protocol states
|
||||
{
|
||||
SearchingForLeader,
|
||||
AcquireSymbolSync,
|
||||
AcquireFrameSync,
|
||||
AcquireFrameType,
|
||||
DecodeFrameType,
|
||||
AcquireFrame,
|
||||
DecodeFramestate
|
||||
};
|
||||
|
||||
extern enum _ReceiveState State;
|
||||
|
||||
enum _ARQBandwidth
|
||||
{
|
||||
XB200,
|
||||
XB500,
|
||||
XB2500,
|
||||
UNDEFINED
|
||||
};
|
||||
|
||||
extern enum _ARQBandwidth ARQBandwidth;
|
||||
extern const char ARQBandwidths[9][12];
|
||||
|
||||
enum _ARDOPState
|
||||
{
|
||||
OFFLINE,
|
||||
DISC,
|
||||
ISS,
|
||||
IRS,
|
||||
IDLE, // ISS in quiet state ...no transmissions)
|
||||
IRStoISS, // IRS during transition to ISS waiting for ISS's ACK from IRS's BREAK
|
||||
FECSend,
|
||||
FECRcv
|
||||
};
|
||||
|
||||
extern enum _ARDOPState ProtocolState;
|
||||
|
||||
extern const char ARDOPStates[8][9];
|
||||
|
||||
|
||||
|
||||
// Enum of ARQ Substates
|
||||
|
||||
enum _ARQSubStates
|
||||
{
|
||||
None,
|
||||
ISSConReq,
|
||||
ISSConAck,
|
||||
ISSData,
|
||||
ISSId,
|
||||
IRSConAck,
|
||||
IRSData,
|
||||
IRSBreak,
|
||||
IRSfromISS,
|
||||
DISCArqEnd
|
||||
};
|
||||
|
||||
extern enum _ARQSubStates ARQState;
|
||||
|
||||
enum _ProtocolMode
|
||||
{
|
||||
Undef,
|
||||
FEC,
|
||||
ARQ
|
||||
};
|
||||
|
||||
extern enum _ProtocolMode ProtocolMode;
|
||||
|
||||
extern const char ARDOPModes[3][6];
|
||||
|
||||
extern enum _ARQSubStates ARQState;
|
||||
|
||||
struct SEM
|
||||
{
|
||||
unsigned int Flag;
|
||||
int Clashes;
|
||||
int Gets;
|
||||
int Rels;
|
||||
};
|
||||
|
||||
extern struct SEM Semaphore;
|
||||
|
||||
#define DataNAK 0x00
|
||||
#define DataNAKLoQ 0x01
|
||||
#define ConRejBusy 0x02
|
||||
#define ConRejBW 0x03
|
||||
#define ConAck 0x04
|
||||
#define DISCFRAME 0x05
|
||||
#define BREAK 0x06
|
||||
#define END 0x07
|
||||
#define IDLEFRAME 0x08
|
||||
#define ConReq200 0x09
|
||||
#define ConReq500 0x0A
|
||||
#define ConReq2500 0x0B
|
||||
#define IDFRAME 0x0C
|
||||
#define PINGACK 0x0D
|
||||
#define PING 0x0E
|
||||
#define CQ_de 0x0F
|
||||
|
||||
// 200 Hz Bandwidth
|
||||
// 1 Car modes
|
||||
|
||||
#define D4PSK_200_50_E 0x10
|
||||
#define D4PSK_200_50_O 0x11
|
||||
#define D4PSK_200_100_E 0x12
|
||||
#define D4PSK_200_100_O 0x13
|
||||
#define D16QAM_200_100_E 0x14
|
||||
#define D16QAM_200_100_O 0x15
|
||||
|
||||
// 500 Hz bandwidth Data
|
||||
// 1 Car 4FSK Data mode 500 Hz, 50 baud tones spaced @ 100 Hz
|
||||
|
||||
#define D4FSK_500_50_E 0x1A
|
||||
#define D4FSK_500_50_O 0x1B
|
||||
#define D4PSK_500_50_E 0x1C
|
||||
#define D4PSK_500_50_O 0x1D
|
||||
#define D4PSK_500_100_E 0x1E
|
||||
#define D4PSK_500_100_O 0x1F
|
||||
// 2 Car 16QAM Data Modes 100 baud
|
||||
#define D16QAMR_500_100_E 0x20
|
||||
#define D16QAMR_500_100_O 0x21
|
||||
#define D16QAM_500_100_E 0x22
|
||||
#define D16QAM_500_100_O 0x23
|
||||
|
||||
// OFDM modes
|
||||
|
||||
#define DOFDM_500_55_E 0x24
|
||||
#define DOFDM_500_55_O 0x25
|
||||
|
||||
#define DOFDM_200_55_E 0x26
|
||||
#define DOFDM_200_55_O 0x27
|
||||
|
||||
#define OConReq500 0x18
|
||||
#define OConReq2500 0x19
|
||||
|
||||
|
||||
// 1 Khz Bandwidth Data Modes
|
||||
// 2 Car 4FSK Data mode 1000 Hz, 50 baud tones spaced @ 100 Hz
|
||||
#define D4FSK_1000_50_E 0x28
|
||||
#define D4FSK_1000_50_O 0x29
|
||||
|
||||
// 2500 bandwidth modes
|
||||
// 10 Car PSK Data Modes 50 baud
|
||||
|
||||
#define D4PSKR_2500_50_E 0x2A
|
||||
#define D4PSKR_2500_50_O 0x2B
|
||||
#define D4PSK_2500_50_E 0x2C
|
||||
#define D4PSK_2500_50_O 0x2D
|
||||
|
||||
// 10 Car PSK Data Modes 100 baud
|
||||
|
||||
#define D4PSK_2500_100_E 0x2E
|
||||
#define D4PSK_2500_100_O 0x2F
|
||||
|
||||
// 10 Car 10 Car 16QAMRobust (duplicated carriers)
|
||||
|
||||
#define D16QAMR_2500_100_E 0x30
|
||||
#define D16QAMR_2500_100_O 0x31
|
||||
|
||||
// 10 Car 16QAM Data modes 100 baud
|
||||
|
||||
#define D16QAM_2500_100_E 0x32
|
||||
#define D16QAM_2500_100_O 0x33
|
||||
|
||||
// OFDM modes
|
||||
|
||||
#define DOFDM_2500_55_E 0x34
|
||||
#define DOFDM_2500_55_O 0x35
|
||||
|
||||
#define PktFrameHeader 0x3A // Variable length frame Header
|
||||
#define PktFrameData 0x3B // Variable length frame Data (Virtual Frsme Type)
|
||||
|
||||
#define OFDMACK 0x3D
|
||||
#define DataACK 0x3E
|
||||
#define DataACKHiQ 0x3F
|
||||
|
||||
|
||||
|
||||
extern CONST short int50BaudTwoToneLeaderTemplate[240]; // holds just 1 symbol (20 ms) of the leader
|
||||
|
||||
//The actual templates over 11 carriers for 16QAM in a 8-8 circular constellation. First 4 symbols only
|
||||
// (only positive Phase values are in the table, sign reversal is used to get the negative phase values) This reduces the template size to 5280 integers
|
||||
extern CONST short intQAM50bdCarTemplate[11][4][120];
|
||||
|
||||
extern CONST short intFSK50bdCarTemplate[12][240]; // Template for 4FSK carriers spaced at 50 Hz, 50 baud
|
||||
extern CONST short intFSK100bdCarTemplate[4][120];
|
||||
|
||||
extern CONST short intOFDMTemplate[MAXCAR][8][216];
|
||||
|
||||
// Config Params
|
||||
extern char GridSquare[9];
|
||||
extern char Callsign[10];
|
||||
extern BOOL wantCWID;
|
||||
extern BOOL CWOnOff;
|
||||
extern int LeaderLength;
|
||||
extern int TrailerLength;
|
||||
extern unsigned int ARQTimeout;
|
||||
extern int TuningRange;
|
||||
extern int TXLevel;
|
||||
extern int RXLevel;
|
||||
extern int autoRXLevel;
|
||||
extern BOOL DebugLog;
|
||||
extern int ARQConReqRepeats;
|
||||
extern BOOL CommandTrace;
|
||||
extern char strFECMode[];
|
||||
extern char CaptureDevice[];
|
||||
extern char PlaybackDevice[];
|
||||
extern int port;
|
||||
extern char HostPort[80];
|
||||
extern int pktport;
|
||||
extern BOOL RadioControl;
|
||||
extern BOOL SlowCPU;
|
||||
extern BOOL AccumulateStats;
|
||||
extern BOOL Use600Modes;
|
||||
extern BOOL UseOFDM;
|
||||
extern BOOL EnableOFDM;
|
||||
extern BOOL FSKOnly;
|
||||
extern BOOL fastStart;
|
||||
extern BOOL ConsoleLogLevel;
|
||||
extern BOOL FileLogLevel;
|
||||
extern BOOL EnablePingAck;
|
||||
extern BOOL NegotiateBW;
|
||||
|
||||
extern int dttLastPINGSent;
|
||||
|
||||
extern BOOL blnPINGrepeating;
|
||||
extern BOOL blnFramePending;
|
||||
extern int intPINGRepeats;
|
||||
|
||||
extern BOOL gotGPIO;
|
||||
extern BOOL useGPIO;
|
||||
|
||||
extern int pttGPIOPin;
|
||||
|
||||
extern HANDLE hCATDevice; // port for Rig Control
|
||||
extern char CATPort[80];
|
||||
extern int CATBAUD;
|
||||
extern int EnableHostCATRX;
|
||||
|
||||
extern HANDLE hPTTDevice; // port for PTT
|
||||
extern char PTTPort[80]; // Port for Hardware PTT - may be same as control port.
|
||||
extern int PTTBAUD;
|
||||
|
||||
#define PTTRTS 1
|
||||
#define PTTDTR 2
|
||||
#define PTTCI_V 4
|
||||
|
||||
extern UCHAR PTTOnCmd[];
|
||||
extern UCHAR PTTOnCmdLen;
|
||||
|
||||
extern UCHAR PTTOffCmd[];
|
||||
extern UCHAR PTTOffCmdLen;
|
||||
|
||||
extern int PTTMode; // PTT Control Flags.
|
||||
|
||||
|
||||
|
||||
|
||||
extern char * CaptureDevices;
|
||||
extern char * PlaybackDevices;
|
||||
|
||||
extern int dttCodecStarted;
|
||||
extern int dttStartRTMeasure;
|
||||
|
||||
extern int intCalcLeader; // the computed leader to use based on the reported Leader Length
|
||||
|
||||
extern const char strFrameType[64][18];
|
||||
extern const char shortFrameType[64][12];
|
||||
extern BOOL Capturing;
|
||||
extern int SoundIsPlaying;
|
||||
extern int blnLastPTT;
|
||||
extern BOOL blnAbort;
|
||||
extern BOOL blnClosing;
|
||||
extern BOOL blnCodecStarted;
|
||||
extern BOOL blnInitializing;
|
||||
extern BOOL blnARQDisconnect;
|
||||
extern int DriveLevel;
|
||||
extern int FECRepeats;
|
||||
extern BOOL FECId;
|
||||
extern int Squelch;
|
||||
extern int BusyDet;
|
||||
extern BOOL blnEnbARQRpt;
|
||||
extern unsigned int dttNextPlay;
|
||||
|
||||
extern UCHAR bytDataToSend[];
|
||||
extern int bytDataToSendLength;
|
||||
|
||||
extern BOOL blnListen;
|
||||
extern BOOL Monitor;
|
||||
extern BOOL AutoBreak;
|
||||
extern BOOL BusyBlock;
|
||||
|
||||
extern int DecodeCompleteTime;
|
||||
|
||||
extern BOOL AccumulateStats;
|
||||
|
||||
extern unsigned char bytEncodedBytes[4500];
|
||||
extern int EncLen;
|
||||
|
||||
extern char AuxCalls[10][10];
|
||||
extern int AuxCallsLength;
|
||||
|
||||
extern int bytValidFrameTypesLength;
|
||||
extern int bytValidFrameTypesLengthALL;
|
||||
extern int bytValidFrameTypesLengthISS;
|
||||
|
||||
extern BOOL blnTimeoutTriggered;
|
||||
extern int intFrameRepeatInterval;
|
||||
extern int extraDelay;
|
||||
extern BOOL PlayComplete;
|
||||
|
||||
extern const UCHAR bytValidFrameTypesALL[];
|
||||
extern const UCHAR bytValidFrameTypesISS[];
|
||||
extern const UCHAR * bytValidFrameTypes;
|
||||
|
||||
extern const char strAllDataModes[][16];
|
||||
extern int strAllDataModesLen;
|
||||
|
||||
extern const short Rate[64]; // Data Rate (in bits/sec) by Frame Type
|
||||
|
||||
|
||||
extern BOOL newStatus;
|
||||
|
||||
// RS Variables
|
||||
|
||||
extern int MaxCorrections;
|
||||
|
||||
// Stats counters
|
||||
|
||||
extern int SessBytesSent;
|
||||
extern int SessBytesReceived;
|
||||
extern int intLeaderDetects;
|
||||
extern int intLeaderSyncs;
|
||||
extern int intAccumLeaderTracking;
|
||||
extern float dblFSKTuningSNAvg;
|
||||
extern int intGoodFSKFrameTypes;
|
||||
extern int intFailedFSKFrameTypes;
|
||||
extern int intAccumFSKTracking;
|
||||
extern int intFSKSymbolCnt;
|
||||
extern int intGoodFSKFrameDataDecodes;
|
||||
extern int intFailedFSKFrameDataDecodes;
|
||||
extern int intAvgFSKQuality;
|
||||
extern int intFrameSyncs;
|
||||
extern int intGoodPSKSummationDecodes;
|
||||
extern int intGoodFSKSummationDecodes;
|
||||
extern int intGoodOFDMSummationDecodes;
|
||||
extern float dblLeaderSNAvg;
|
||||
extern int intAccumPSKLeaderTracking;
|
||||
extern float dblAvgPSKRefErr;
|
||||
extern int intPSKTrackAttempts;
|
||||
extern int intAccumPSKTracking;
|
||||
extern int intQAMTrackAttempts;
|
||||
extern int intAccumQAMTracking;
|
||||
extern int intOFDMTrackAttempts;
|
||||
extern int intAccumOFDMTracking;
|
||||
extern int intPSKSymbolCnt;
|
||||
extern int intQAMSymbolCnt;
|
||||
extern int intOFDMSymbolCnt;
|
||||
extern int intGoodPSKFrameDataDecodes;
|
||||
extern int intFailedPSKFrameDataDecodes;
|
||||
extern int intAvgPSKQuality;
|
||||
extern int intGoodOFDMFrameDataDecodes;
|
||||
extern int intFailedOFDMFrameDataDecodes;
|
||||
extern int intAvgOFDMQuality;
|
||||
extern float dblAvgDecodeDistance;
|
||||
extern int intDecodeDistanceCount;
|
||||
extern int intShiftUPs;
|
||||
extern int intShiftDNs;
|
||||
extern unsigned int dttStartSession;
|
||||
extern int intLinkTurnovers;
|
||||
extern int intEnvelopeCors;
|
||||
extern float dblAvgCorMaxToMaxProduct;
|
||||
extern int intConReqSN;
|
||||
extern int intConReqQuality;
|
||||
|
||||
|
||||
|
||||
extern int int4FSKQuality;
|
||||
extern int int4FSKQualityCnts;
|
||||
extern int int8FSKQuality;
|
||||
extern int int8FSKQualityCnts;
|
||||
extern int int16FSKQuality;
|
||||
extern int int16FSKQualityCnts;
|
||||
extern int intFSKSymbolsDecoded;
|
||||
extern int intPSKQuality[2];
|
||||
extern int intPSKQualityCnts[2];
|
||||
extern int intPSKSymbolsDecoded;
|
||||
|
||||
extern int intOFDMQuality[8];
|
||||
extern int intOFDMQualityCnts[8];
|
||||
extern int intOFDMSymbolsDecoded;
|
||||
|
||||
extern int intQAMQuality;
|
||||
extern int intQAMQualityCnts;
|
||||
extern int intQAMSymbolsDecoded;
|
||||
extern int intQAMSymbolCnt;
|
||||
extern int intOFDMSymbolCnt;
|
||||
extern int intGoodQAMFrameDataDecodes;
|
||||
extern int intFailedQAMFrameDataDecodes;
|
||||
extern int intGoodQAMSummationDecodes;
|
||||
|
||||
extern int dttLastBusyOn;
|
||||
extern int dttLastBusyOff;
|
||||
extern int dttLastLeaderDetect;
|
||||
|
||||
extern int LastBusyOn;
|
||||
extern int LastBusyOff;
|
||||
extern int dttLastLeaderDetect;
|
||||
|
||||
extern int pktDataLen;
|
||||
extern int pktRSLen;
|
||||
extern const char pktMod[16][12];
|
||||
extern int pktMode;
|
||||
extern int pktModeLen;
|
||||
extern const int pktBW[16];
|
||||
extern const int pktCarriers[16];
|
||||
extern const int defaultPacLen[16];
|
||||
extern const BOOL pktFSK[16];
|
||||
|
||||
extern int pktMaxFrame;
|
||||
extern int pktMaxBandwidth;
|
||||
extern int pktPacLen;
|
||||
extern int initMode; // 0 - 4PSK 1 - 8PSK 2 = 16QAM
|
||||
|
||||
extern UCHAR UnackedOFDMBlocks[128];
|
||||
extern int NextOFDMBlock;
|
||||
|
||||
|
||||
|
||||
extern BOOL SerialMode; // Set if using SCS Mode, Unset ofr TCP Mode
|
||||
|
||||
// Has to follow enum defs
|
||||
|
||||
BOOL EncodeARQConRequest(char * strMyCallsign, char * strTargetCallsign, enum _ARQBandwidth ARQBandwidth, UCHAR * bytReturn);
|
||||
|
||||
|
||||
// OFDM Modes
|
||||
|
||||
#define PSK2 0
|
||||
#define PSK4 1
|
||||
#define PSK8 2
|
||||
#define QAM16 3
|
||||
#define PSK16 4 // Experimental - is it better than 16QAM?
|
||||
#define QAM32 5
|
||||
#define PSK4S 6 // Special shorter frame for short messages
|
||||
|
||||
extern int OFDMMode; // OFDM can use various modulation modes and redundancy levels
|
||||
extern int LastSentOFDMMode; // For retries
|
||||
extern int LastSentOFDMType; // For retries
|
||||
|
||||
extern int SavedOFDMMode; // used if we switch to a more robust mode cos we don't have much to send
|
||||
extern int SavedFrameType;
|
||||
|
||||
|
||||
extern const char OFDMModes[8][6];
|
||||
|
||||
#endif
|
367
BusyDetect.c
367
BusyDetect.c
|
@ -1,367 +0,0 @@
|
|||
|
||||
|
||||
#ifdef WIN32
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "ARDOPC.h"
|
||||
|
||||
VOID SortSignals2(float * dblMag, int intStartBin, int intStopBin, int intNumBins, float * dblAVGSignalPerBin, float * dblAVGBaselinePerBin);
|
||||
|
||||
int LastBusyOn;
|
||||
int LastBusyOff;
|
||||
|
||||
BOOL blnLastBusy = FALSE;
|
||||
|
||||
float dblAvgStoNSlowNarrow;
|
||||
float dblAvgStoNFastNarrow;
|
||||
float dblAvgStoNSlowWide;
|
||||
float dblAvgStoNFastWide;
|
||||
int intLastStart = 0;
|
||||
int intLastStop = 0;
|
||||
int intBusyOnCnt = 0; // used to filter Busy ON detections
|
||||
int intBusyOffCnt = 0; // used to filter Busy OFF detections
|
||||
int dttLastBusyTrip = 0;
|
||||
int dttPriorLastBusyTrip = 0;
|
||||
int dttLastBusyClear = 0;
|
||||
int dttLastTrip;
|
||||
extern float dblAvgPk2BaselineRatio, dblAvgBaselineSlow, dblAvgBaselineFast;
|
||||
int intHoldMs = 5000;
|
||||
|
||||
|
||||
VOID ClearBusy()
|
||||
{
|
||||
dttLastBusyTrip = Now;
|
||||
dttPriorLastBusyTrip = dttLastBusyTrip;
|
||||
dttLastBusyClear = dttLastBusyTrip + 610; // This insures test in ARDOPprotocol ~ line 887 will work
|
||||
dttLastTrip = dttLastBusyTrip -intHoldMs; // This clears the busy detect immediatly (required for scanning when re enabled by Listen=True
|
||||
blnLastBusy = False;
|
||||
intBusyOnCnt = 0;
|
||||
intBusyOffCnt = 0;
|
||||
intLastStart = 0;
|
||||
intLastStop = 0; // This will force the busy detector to ignore old averages and initialze the rolling average filters
|
||||
}
|
||||
|
||||
/*
|
||||
// Function to implement a busy detector based on 1024 point FFT
|
||||
|
||||
BOOL BusyDetect2(float * dblMag, int intStart, int intStop) // this only called while searching for leader ...once leader detected, no longer called.
|
||||
{
|
||||
// each bin is about 12000/1024 or 11.72 Hz
|
||||
// this only called while searching for leader ...once leader detected, no longer called.
|
||||
// First sort signals and look at highes signals:baseline ratio..
|
||||
|
||||
float dblAVGSignalPerBinNarrow, dblAVGSignalPerBinWide, dblAVGBaselineNarrow, dblAVGBaselineWide;
|
||||
float dblFastAlpha = 0.4f;
|
||||
float dblSlowAlpha = 0.2f;
|
||||
float dblAvgStoNNarrow, dblAvgStoNWide;
|
||||
int intNarrow = 8; // 8 x 11.72 Hz about 94 z
|
||||
int intWide = ((intStop - intStart) * 2) / 3; //* 0.66);
|
||||
int blnBusy = FALSE;
|
||||
float dblAvgStoNSlowNarrow = 0;
|
||||
float dblAvgStoNFastNarrow = 0;
|
||||
float dblAvgStoNSlowWide = 0;
|
||||
float dblAvgStoNFastWide = 0;
|
||||
|
||||
// First narrow band (~94Hz)
|
||||
|
||||
SortSignals(dblMag, intStart, intStop, intNarrow, &dblAVGSignalPerBinNarrow, &dblAVGBaselineNarrow);
|
||||
|
||||
if (intLastStart == intStart && intLastStop == intStop)
|
||||
{
|
||||
dblAvgStoNSlowNarrow = (1 - dblSlowAlpha) * dblAvgStoNSlowNarrow + dblSlowAlpha * dblAVGSignalPerBinNarrow / dblAVGBaselineNarrow;
|
||||
dblAvgStoNFastNarrow = (1 - dblFastAlpha) * dblAvgStoNFastNarrow + dblFastAlpha * dblAVGSignalPerBinNarrow / dblAVGBaselineNarrow;
|
||||
}
|
||||
else
|
||||
{
|
||||
dblAvgStoNSlowNarrow = dblAVGSignalPerBinNarrow / dblAVGBaselineNarrow;
|
||||
dblAvgStoNFastNarrow = dblAVGSignalPerBinNarrow / dblAVGBaselineNarrow;
|
||||
intLastStart = intStart;
|
||||
intLastStop = intStop;
|
||||
}
|
||||
|
||||
dblAvgStoNNarrow = max(dblAvgStoNSlowNarrow, dblAvgStoNFastNarrow); // computes fast attack, slow release
|
||||
|
||||
// Wide band (66% ofr current bandwidth)
|
||||
|
||||
SortSignals(dblMag, intStart, intStop, intWide, &dblAVGSignalPerBinWide, &dblAVGBaselineWide);
|
||||
|
||||
if (intLastStart == intStart && intLastStop == intStop)
|
||||
{
|
||||
dblAvgStoNSlowWide = (1 - dblSlowAlpha) * dblAvgStoNSlowWide + dblSlowAlpha * dblAVGSignalPerBinWide / dblAVGBaselineWide;
|
||||
dblAvgStoNFastWide = (1 - dblFastAlpha) * dblAvgStoNFastWide + dblFastAlpha * dblAVGSignalPerBinWide / dblAVGBaselineWide;
|
||||
}
|
||||
else
|
||||
{
|
||||
dblAvgStoNSlowWide = dblAVGSignalPerBinWide / dblAVGBaselineWide;
|
||||
dblAvgStoNFastWide = dblAVGSignalPerBinWide / dblAVGBaselineWide;
|
||||
intLastStart = intStart;
|
||||
intLastStop = intStop;
|
||||
}
|
||||
|
||||
dblAvgStoNNarrow = max(dblAvgStoNSlowNarrow, dblAvgStoNFastNarrow); // computes fast attack, slow release
|
||||
dblAvgStoNWide = max(dblAvgStoNSlowWide, dblAvgStoNFastWide); // computes fast attack, slow release
|
||||
|
||||
// Preliminary calibration...future a function of bandwidth and BusyDet.
|
||||
|
||||
switch (ARQBandwidth)
|
||||
{
|
||||
case B200MAX:
|
||||
case B200FORCED:
|
||||
if (dblAvgStoNNarrow > 1.5 * BusyDet|| dblAvgStoNWide > 2.5 * BusyDet)
|
||||
blnBusy = True;
|
||||
break;
|
||||
|
||||
case B500MAX:
|
||||
case B500FORCED:
|
||||
if (dblAvgStoNNarrow > 1.5 * BusyDet || dblAvgStoNWide > 2.5 * BusyDet)
|
||||
blnBusy = True;
|
||||
break;
|
||||
|
||||
case B1000MAX:
|
||||
case B1000FORCED:
|
||||
|
||||
if (dblAvgStoNNarrow > 1.4 * BusyDet || dblAvgStoNWide > 2 * BusyDet)
|
||||
blnBusy = True;
|
||||
break;
|
||||
|
||||
case B2000MAX:
|
||||
case B2000FORCED:
|
||||
if (dblAvgStoNNarrow > 1.4 * BusyDet || dblAvgStoNWide > 2 * BusyDet)
|
||||
blnBusy = True;
|
||||
}
|
||||
|
||||
if (blnBusy) // This used to skip over one call busy nuisance trips. Busy must be present at least 2 consecutive times to be reported
|
||||
{
|
||||
intBusyOnCnt += 1;
|
||||
intBusyOffCnt = 0;
|
||||
if (intBusyOnCnt > 1)
|
||||
blnBusy = True;
|
||||
else if (!blnBusy)
|
||||
{
|
||||
intBusyOffCnt += 1;
|
||||
intBusyOnCnt = 0;
|
||||
if (intBusyOffCnt > 3)
|
||||
blnBusy = False;
|
||||
}
|
||||
}
|
||||
if (blnLastBusy == False && blnBusy)
|
||||
{
|
||||
int x = round(dblAvgStoNNarrow); // odd, but PI doesnt print floats properly
|
||||
int y = round(dblAvgStoNWide);
|
||||
|
||||
blnLastBusy = True;
|
||||
LastBusyOn = Now;
|
||||
#ifdef __ARM_ARCH
|
||||
WriteDebugLog(LOGDEBUG, "[BusyDetect2: BUSY ON StoN Narrow = %d StoN Wide %d", x, y);
|
||||
#else
|
||||
WriteDebugLog(LOGDEBUG, "[BusyDetect2: BUSY ON StoN Narrow = %f StoN Wide %f", dblAvgStoNNarrow, dblAvgStoNWide);
|
||||
#endif
|
||||
}
|
||||
else if (blnLastBusy == True && !blnBusy)
|
||||
{
|
||||
int x = round(dblAvgStoNNarrow); // odd, but PI doesnt print floats properly
|
||||
int y = round(dblAvgStoNWide);
|
||||
|
||||
blnLastBusy = False;
|
||||
LastBusyOff = Now;
|
||||
#ifdef __ARM_ARCH
|
||||
WriteDebugLog(LOGDEBUG, "[BusyDetect2: BUSY OFF StoN Narrow = %d StoN Wide %d", x, y);
|
||||
#else
|
||||
WriteDebugLog(LOGDEBUG, "[BusyDetect2: BUSY OFF StoN Narrow = %f StoN Wide %f", dblAvgStoNNarrow, dblAvgStoNWide);
|
||||
#endif
|
||||
}
|
||||
|
||||
return blnLastBusy;
|
||||
}
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
BOOL BusyDetect3(float * dblMag, int intStart, int intStop) // this only called while searching for leader ...once leader detected, no longer called.
|
||||
{
|
||||
// each bin is about 12000/1024 or 11.72 Hz
|
||||
// this only called while searching for leader ...once leader detected, no longer called.
|
||||
// First sort signals and look at highes signals:baseline ratio..
|
||||
|
||||
float dblAVGSignalPerBinNarrow, dblAVGSignalPerBinWide, dblAVGBaselineNarrow, dblAVGBaselineWide;
|
||||
float dblSlowAlpha = 0.2f;
|
||||
float dblAvgStoNNarrow = 0, dblAvgStoNWide = 0;
|
||||
int intNarrow = 8; // 8 x 11.72 Hz about 94 z
|
||||
int intWide = ((intStop - intStart) * 2) / 3; //* 0.66);
|
||||
int blnBusy = FALSE;
|
||||
int BusyDet4th = BusyDet * BusyDet * BusyDet * BusyDet;
|
||||
|
||||
|
||||
// First sort signals and look at highest signals:baseline ratio..
|
||||
// First narrow band (~94Hz)
|
||||
|
||||
SortSignals2(dblMag, intStart, intStop, intNarrow, &dblAVGSignalPerBinNarrow, &dblAVGBaselineNarrow);
|
||||
|
||||
if (intLastStart == intStart && intLastStop == intStop)
|
||||
dblAvgStoNNarrow = (1 - dblSlowAlpha) * dblAvgStoNNarrow + dblSlowAlpha * dblAVGSignalPerBinNarrow / dblAVGBaselineNarrow;
|
||||
else
|
||||
{
|
||||
// This initializes the Narrow average after a bandwidth change
|
||||
|
||||
dblAvgStoNNarrow = dblAVGSignalPerBinNarrow / dblAVGBaselineNarrow;
|
||||
intLastStart = intStart;
|
||||
intLastStop = intStop;
|
||||
}
|
||||
|
||||
// Wide band (66% of current bandwidth)
|
||||
|
||||
SortSignals2(dblMag, intStart, intStop, intWide, &dblAVGSignalPerBinWide, &dblAVGBaselineWide);
|
||||
|
||||
if (intLastStart == intStart && intLastStop == intStop)
|
||||
dblAvgStoNWide = (1 - dblSlowAlpha) * dblAvgStoNWide + dblSlowAlpha * dblAVGSignalPerBinWide / dblAVGBaselineWide;
|
||||
else
|
||||
{
|
||||
// This initializes the Wide average after a bandwidth change
|
||||
|
||||
dblAvgStoNWide = dblAVGSignalPerBinWide / dblAVGBaselineWide;
|
||||
intLastStart = intStart;
|
||||
intLastStop = intStop;
|
||||
}
|
||||
|
||||
// Preliminary calibration...future a function of bandwidth and BusyDet.
|
||||
|
||||
switch (ARQBandwidth)
|
||||
{
|
||||
case XB200:
|
||||
blnBusy = (dblAvgStoNNarrow > (3 + 0.008 * BusyDet4th)) || (dblAvgStoNWide > (5 + 0.02 * BusyDet4th));
|
||||
break;
|
||||
|
||||
case XB500:
|
||||
blnBusy = (dblAvgStoNNarrow > (3 + 0.008 * BusyDet4th) )|| (dblAvgStoNWide > (5 + 0.02 * BusyDet4th));
|
||||
break;
|
||||
|
||||
case XB2500:
|
||||
blnBusy = (dblAvgStoNNarrow > (3 + 0.008 * BusyDet4th)) || (dblAvgStoNWide > (5 + 0.016 * BusyDet4th));
|
||||
}
|
||||
|
||||
if (BusyDet == 0)
|
||||
blnBusy = FALSE; // 0 Disables check ?? Is this the best place to do this?
|
||||
|
||||
// WriteDebugLog(LOGDEBUG, "Busy %d Wide %f Narrow %f", blnBusy, dblAvgStoNWide, dblAvgStoNNarrow);
|
||||
|
||||
if (blnBusy)
|
||||
{
|
||||
// This requires multiple adjacent busy conditions to skip over one nuisance Busy trips.
|
||||
// Busy must be present at least 3 consecutive times ( ~250 ms) to be reported
|
||||
|
||||
intBusyOnCnt += 1;
|
||||
intBusyOffCnt = 0;
|
||||
if (intBusyOnCnt > 3)
|
||||
dttLastTrip = Now;
|
||||
}
|
||||
else
|
||||
{
|
||||
intBusyOffCnt += 1;
|
||||
intBusyOnCnt = 0;
|
||||
}
|
||||
|
||||
if (blnLastBusy == False && intBusyOnCnt >= 3)
|
||||
{
|
||||
dttPriorLastBusyTrip = dttLastBusyTrip; // save old dttLastBusyTrip for use in BUSYBLOCKING function
|
||||
dttLastBusyTrip = Now;
|
||||
blnLastBusy = True;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (blnLastBusy && (Now - dttLastTrip) > intHoldMs && intBusyOffCnt >= 3)
|
||||
{
|
||||
dttLastBusyClear = Now;
|
||||
blnLastBusy = False;
|
||||
}
|
||||
}
|
||||
return blnLastBusy;
|
||||
}
|
||||
|
||||
VOID SortSignals(float * dblMag, int intStartBin, int intStopBin, int intNumBins, float * dblAVGSignalPerBin, float * dblAVGBaselinePerBin)
|
||||
{
|
||||
// puts the top intNumber of bins between intStartBin and intStopBin into dblAVGSignalPerBin, the rest into dblAvgBaselinePerBin
|
||||
// for decent accuracy intNumBins should be < 75% of intStopBin-intStartBin)
|
||||
|
||||
float dblAVGSignal[200] = {0};//intNumBins
|
||||
float dblAVGBaseline[200] = {0};//intStopBin - intStartBin - intNumBins
|
||||
|
||||
float dblSigSum = 0;
|
||||
float dblTotalSum = 0;
|
||||
int intSigPtr = 0;
|
||||
int intBasePtr = 0;
|
||||
int i, j, k;
|
||||
|
||||
for (i = 0; i < intNumBins; i++)
|
||||
{
|
||||
for (j = intStartBin; j <= intStopBin; j++)
|
||||
{
|
||||
if (i == 0)
|
||||
{
|
||||
dblTotalSum += dblMag[j];
|
||||
if (dblMag[j] > dblAVGSignal[i])
|
||||
dblAVGSignal[i] = dblMag[j];
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dblMag[j] > dblAVGSignal[i] && dblMag[j] < dblAVGSignal[i - 1])
|
||||
dblAVGSignal[i] = dblMag[j];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(k = 0; k < intNumBins; k++)
|
||||
{
|
||||
dblSigSum += dblAVGSignal[k];
|
||||
}
|
||||
*dblAVGSignalPerBin = dblSigSum / intNumBins;
|
||||
*dblAVGBaselinePerBin = (dblTotalSum - dblSigSum) / (intStopBin - intStartBin - intNumBins + 1);
|
||||
}
|
||||
|
||||
BOOL compare(const void *p1, const void *p2)
|
||||
{
|
||||
float x = *(const float *)p1;
|
||||
float y = *(const float *)p2;
|
||||
|
||||
if (x < y)
|
||||
return -1; // Return -1 if you want ascending, 1 if you want descending order.
|
||||
else if (x > y)
|
||||
return 1; // Return 1 if you want ascending, -1 if you want descending order.
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
VOID SortSignals2(float * dblMag, int intStartBin, int intStopBin, int intNumBins, float * dblAVGSignalPerBin, float * dblAVGBaselinePerBin)
|
||||
{
|
||||
// puts the top intNumber of bins between intStartBin and intStopBin into dblAVGSignalPerBin, the rest into dblAvgBaselinePerBin
|
||||
// for decent accuracy intNumBins should be < 75% of intStopBin-intStartBin)
|
||||
|
||||
// This version uses a native sort function which is much faster and reduces CPU loading significantly on wide bandwidths.
|
||||
|
||||
float dblSort[202];
|
||||
float dblSum1 = 0, dblSum2 = 0;
|
||||
int numtoSort = (intStopBin - intStartBin) + 1, i;
|
||||
|
||||
memcpy(dblSort, &dblMag[intStartBin], numtoSort * sizeof(float));
|
||||
|
||||
qsort((void *)dblSort, numtoSort, sizeof(float), compare);
|
||||
|
||||
for (i = numtoSort -1; i >= 0; i--)
|
||||
{
|
||||
if (i >= (numtoSort - intNumBins))
|
||||
dblSum1 += dblSort[i];
|
||||
else
|
||||
dblSum2 += dblSort[i];
|
||||
}
|
||||
|
||||
*dblAVGSignalPerBin = dblSum1 / intNumBins;
|
||||
*dblAVGBaselinePerBin = dblSum2 / (intStopBin - intStartBin - intNumBins - 1);
|
||||
}
|
||||
|
||||
|
159
Calibrate.c
159
Calibrate.c
|
@ -1,159 +0,0 @@
|
|||
|
||||
#include "UZ7HOStuff.h"
|
||||
|
||||
// if in Satellite Mode look for a Tuning signal
|
||||
|
||||
// As a first try, use ardop leader pattern then single tone
|
||||
|
||||
static short rawSamples[2400]; // Get Frame Type need 2400 and we may add 1200
|
||||
static int rawSamplesLength = 0;
|
||||
static int maxrawSamplesLength;
|
||||
static float dblOffsetHz = 0;;
|
||||
static int blnLeaderFound = 0;
|
||||
|
||||
enum _ReceiveState // used for initial receive testing...later put in correct protocol states
|
||||
{
|
||||
SearchingForLeader,
|
||||
AcquireSymbolSync,
|
||||
AcquireFrameSync,
|
||||
AcquireFrameType,
|
||||
DecodeFrameType,
|
||||
AcquireFrame,
|
||||
DecodeFramestate
|
||||
};
|
||||
|
||||
static enum _ReceiveState State;
|
||||
|
||||
|
||||
void LookForCalPattern(short * Samples, int nSamples);
|
||||
|
||||
void doTuning(short * Samples, int nSamples)
|
||||
{
|
||||
short ardopbuff[2][1200];
|
||||
int i, i1 = 0;
|
||||
|
||||
if (UsingBothChannels)
|
||||
{
|
||||
for (i = 0; i < rx_bufsize; i++)
|
||||
{
|
||||
ardopbuff[0][i] = Samples[i1];
|
||||
i1++;
|
||||
ardopbuff[1][i] = Samples[i1];
|
||||
i1++;
|
||||
}
|
||||
}
|
||||
else if (UsingRight)
|
||||
{
|
||||
// Extract just right
|
||||
|
||||
i1 = 1;
|
||||
|
||||
for (i = 0; i < rx_bufsize; i++)
|
||||
{
|
||||
ardopbuff[1][i] = Samples[i1];
|
||||
i1 += 2;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Extract just left
|
||||
|
||||
for (i = 0; i < rx_bufsize; i++)
|
||||
{
|
||||
ardopbuff[0][i] = Samples[i1];
|
||||
i1 += 2;
|
||||
}
|
||||
}
|
||||
|
||||
if (UsingLeft)
|
||||
{
|
||||
LookForCalPattern(&ardopbuff[0][0], 0);
|
||||
}
|
||||
|
||||
if (UsingRight)
|
||||
{
|
||||
LookForCalPattern(&ardopbuff[0][0], 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void LookForCalPattern(short * Samples, int nSamples)
|
||||
{
|
||||
BOOL blnFrameDecodedOK = FALSE;
|
||||
|
||||
// LookforUZ7HOLeader(Samples, nSamples);
|
||||
|
||||
// printtick("Start afsk");
|
||||
// DemodAFSK(Samples, nSamples);
|
||||
// printtick("End afsk");
|
||||
|
||||
// return;
|
||||
|
||||
// Append new data to anything in rawSamples
|
||||
|
||||
memcpy(&rawSamples[rawSamplesLength], Samples, nSamples * 2);
|
||||
rawSamplesLength += nSamples;
|
||||
|
||||
if (rawSamplesLength > maxrawSamplesLength)
|
||||
maxrawSamplesLength = rawSamplesLength;
|
||||
|
||||
if (rawSamplesLength >= 2400)
|
||||
Debugprintf("Corrupt rawSamplesLength %d", rawSamplesLength);
|
||||
|
||||
|
||||
nSamples = rawSamplesLength;
|
||||
Samples = rawSamples;
|
||||
|
||||
rawSamplesLength = 0;
|
||||
|
||||
// printtick("Start Busy");
|
||||
if (nSamples >= 1024)
|
||||
UpdateBusyDetector(Samples);
|
||||
// printtick("Done Busy");
|
||||
|
||||
// it seems that searchforleader runs on unmixed and unfilered samples
|
||||
|
||||
// Searching for leader
|
||||
|
||||
if (State == SearchingForLeader)
|
||||
{
|
||||
// Search for leader as long as 960 samples (8 symbols) available
|
||||
|
||||
// printtick("Start Leader Search");
|
||||
|
||||
while (State == SearchingForLeader && nSamples >= 1200)
|
||||
{
|
||||
int intSN;
|
||||
|
||||
blnLeaderFound = SearchFor2ToneLeader4(Samples, nSamples, &dblOffsetHz, &intSN);
|
||||
// blnLeaderFound = SearchFor2ToneLeader2(Samples, nSamples, &dblOffsetHz, &intSN);
|
||||
|
||||
if (blnLeaderFound)
|
||||
{
|
||||
// Debugprintf("Got Leader");
|
||||
|
||||
nSamples -= 480;
|
||||
Samples += 480; // !!!! needs attention !!!
|
||||
}
|
||||
else
|
||||
{
|
||||
nSamples -= 240;
|
||||
Samples += 240; // !!!! needs attention !!!
|
||||
}
|
||||
}
|
||||
if (State == SearchingForLeader)
|
||||
{
|
||||
// Save unused samples
|
||||
|
||||
memmove(rawSamples, Samples, nSamples * 2);
|
||||
rawSamplesLength = nSamples;
|
||||
|
||||
// printtick("End Leader Search");
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
474
Config.cpp
474
Config.cpp
|
@ -1,474 +0,0 @@
|
|||
/*extern "C"
|
||||
Copyright (C) 2019-2020 Andrei Kopanchuk UZ7HO
|
||||
|
||||
This file is part of QtSoundModem
|
||||
|
||||
QtSoundModem is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
QtSoundModem is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QtSoundModem. If not, see http://www.gnu.org/licenses
|
||||
|
||||
*/
|
||||
|
||||
// UZ7HO Soundmodem Port by John Wiseman G8BPQ
|
||||
|
||||
#include <QSettings>
|
||||
#include <QDialog>
|
||||
|
||||
#include "UZ7HOStuff.h"
|
||||
|
||||
extern "C" void get_exclude_list(char * line, TStringList * list);
|
||||
extern "C" void get_exclude_frm(char * line, TStringList * list);
|
||||
|
||||
extern "C" int SoundMode;
|
||||
extern "C" int RX_SR;
|
||||
extern "C" int TX_SR;
|
||||
extern "C" int multiCore;
|
||||
extern "C" char * Wisdom;
|
||||
extern int WaterfallMin;
|
||||
extern int WaterfallMax;
|
||||
|
||||
extern "C" word MEMRecovery[5];
|
||||
|
||||
extern int MintoTray;
|
||||
extern "C" int UDPClientPort;
|
||||
extern "C" int UDPServerPort;
|
||||
extern "C" int TXPort;
|
||||
|
||||
extern char UDPHost[64];
|
||||
extern QDialog * constellationDialog;
|
||||
extern QRect PSKRect;
|
||||
|
||||
extern char CWIDCall[128];
|
||||
extern "C" char CWIDMark[32];
|
||||
extern int CWIDInterval;
|
||||
extern int CWIDLeft;
|
||||
extern int CWIDRight;
|
||||
extern int CWIDType;
|
||||
extern bool afterTraffic;
|
||||
|
||||
extern "C" int RSID_SABM[4];
|
||||
extern "C" int RSID_UI[4];
|
||||
extern "C" int RSID_SetModem[4];
|
||||
|
||||
extern QFont Font;
|
||||
|
||||
|
||||
QSettings* settings = new QSettings("QtSoundModem.ini", QSettings::IniFormat);
|
||||
|
||||
// This makes geting settings for more channels easier
|
||||
|
||||
char Prefix[16] = "AX25_A";
|
||||
|
||||
void GetPortSettings(int Chan);
|
||||
|
||||
QVariant getAX25Param(const char * key, QVariant Default)
|
||||
{
|
||||
char fullKey[64];
|
||||
QVariant Q;
|
||||
QByteArray x;
|
||||
sprintf(fullKey, "%s/%s", Prefix, key);
|
||||
Q = settings->value(fullKey, Default);
|
||||
x = Q.toString().toUtf8();
|
||||
|
||||
return Q;
|
||||
}
|
||||
|
||||
void getAX25Params(int chan)
|
||||
{
|
||||
Prefix[5] = chan + 'A';
|
||||
GetPortSettings(chan);
|
||||
}
|
||||
|
||||
|
||||
void GetPortSettings(int Chan)
|
||||
{
|
||||
tx_hitoneraisedb[Chan] = getAX25Param("HiToneRaise", 0).toInt();
|
||||
|
||||
maxframe[Chan] = getAX25Param("Maxframe", 3).toInt();
|
||||
fracks[Chan] = getAX25Param("Retries", 15).toInt();
|
||||
frack_time[Chan] = getAX25Param("FrackTime", 5).toInt();
|
||||
|
||||
idletime[Chan] = getAX25Param("IdleTime", 180).toInt();
|
||||
slottime[Chan] = getAX25Param("SlotTime", 100).toInt();
|
||||
persist[Chan] = getAX25Param("Persist", 128).toInt();
|
||||
resptime[Chan] = getAX25Param("RespTime", 1500).toInt();
|
||||
TXFrmMode[Chan] = getAX25Param("TXFrmMode", 1).toInt();
|
||||
max_frame_collector[Chan] = getAX25Param("FrameCollector", 6).toInt();
|
||||
KISS_opt[Chan] = getAX25Param("KISSOptimization", false).toInt();;
|
||||
dyn_frack[Chan] = getAX25Param("DynamicFrack", false).toInt();;
|
||||
recovery[Chan] = getAX25Param("BitRecovery", 0).toInt();
|
||||
NonAX25[Chan] = getAX25Param("NonAX25Frm", false).toInt();;
|
||||
MEMRecovery[Chan]= getAX25Param("MEMRecovery", 200).toInt();
|
||||
IPOLL[Chan] = getAX25Param("IPOLL", 80).toInt();
|
||||
|
||||
strcpy(MyDigiCall[Chan], getAX25Param("MyDigiCall", "").toString().toUtf8());
|
||||
strcpy(exclude_callsigns[Chan], getAX25Param("ExcludeCallsigns", "").toString().toUtf8());
|
||||
|
||||
fx25_mode[Chan] = getAX25Param("FX25", FX25_MODE_RX).toInt();
|
||||
il2p_mode[Chan] = getAX25Param("IL2P", IL2P_MODE_NONE).toInt();
|
||||
RSID_UI[Chan] = getAX25Param("RSID_UI", 0).toInt();
|
||||
RSID_SABM[Chan] = getAX25Param("RSID_SABM", 0).toInt();
|
||||
RSID_SetModem[Chan] = getAX25Param("RSID_SetModem", 0).toInt();
|
||||
}
|
||||
|
||||
void getSettings()
|
||||
{
|
||||
int snd_ch;
|
||||
|
||||
QSettings* settings = new QSettings("QtSoundModem.ini", QSettings::IniFormat);
|
||||
settings->sync();
|
||||
|
||||
PSKRect = settings->value("PSKWindow").toRect();
|
||||
|
||||
SoundMode = settings->value("Init/SoundMode", 0).toInt();
|
||||
UDPClientPort = settings->value("Init/UDPClientPort", 8888).toInt();
|
||||
UDPServerPort = settings->value("Init/UDPServerPort", 8884).toInt();
|
||||
TXPort = settings->value("Init/TXPort", UDPServerPort).toInt();
|
||||
|
||||
strcpy(UDPHost, settings->value("Init/UDPHost", "192.168.1.255").toString().toUtf8());
|
||||
UDPServ = settings->value("Init/UDPServer", FALSE).toBool();
|
||||
|
||||
RX_SR = settings->value("Init/RXSampleRate", 12000).toInt();
|
||||
TX_SR = settings->value("Init/TXSampleRate", 12000).toInt();
|
||||
|
||||
strcpy(CaptureDevice, settings->value("Init/SndRXDeviceName", "hw:1,0").toString().toUtf8());
|
||||
strcpy(PlaybackDevice, settings->value("Init/SndTXDeviceName", "hw:1,0").toString().toUtf8());
|
||||
|
||||
raduga = settings->value("Init/DispMode", DISP_RGB).toInt();
|
||||
|
||||
strcpy(PTTPort, settings->value("Init/PTT", "").toString().toUtf8());
|
||||
PTTMode = settings->value("Init/PTTMode", 19200).toInt();
|
||||
PTTBAUD = settings->value("Init/PTTBAUD", 19200).toInt();
|
||||
|
||||
strcpy(PTTOnString, settings->value("Init/PTTOnString", "").toString().toUtf8());
|
||||
strcpy(PTTOffString, settings->value("Init/PTTOffString", "").toString().toUtf8());
|
||||
|
||||
pttGPIOPin = settings->value("Init/pttGPIOPin", 17).toInt();
|
||||
pttGPIOPinR = settings->value("Init/pttGPIOPinR", 17).toInt();
|
||||
|
||||
#ifdef WIN32
|
||||
strcpy(CM108Addr, settings->value("Init/CM108Addr", "0xD8C:0x08").toString().toUtf8());
|
||||
#else
|
||||
strcpy(CM108Addr, settings->value("Init/CM108Addr", "/dev/hidraw0").toString().toUtf8());
|
||||
#endif
|
||||
|
||||
HamLibPort = settings->value("Init/HamLibPort", 4532).toInt();
|
||||
strcpy(HamLibHost, settings->value("Init/HamLibHost", "127.0.0.1").toString().toUtf8());
|
||||
|
||||
DualPTT = settings->value("Init/DualPTT", 1).toInt();
|
||||
TX_rotate = settings->value("Init/TXRotate", 0).toInt();
|
||||
multiCore = settings->value("Init/multiCore", 0).toInt();
|
||||
MintoTray = settings->value("Init/MinimizetoTray", 1).toInt();
|
||||
Wisdom = strdup(settings->value("Init/Wisdom", "").toString().toUtf8());
|
||||
WaterfallMin = settings->value("Init/WaterfallMin", 0).toInt();
|
||||
WaterfallMax = settings->value("Init/WaterfallMax", 3300).toInt();
|
||||
|
||||
|
||||
rx_freq[0] = settings->value("Modem/RXFreq1", 1700).toInt();
|
||||
rx_freq[1] = settings->value("Modem/RXFreq2", 1700).toInt();
|
||||
rx_freq[2] = settings->value("Modem/RXFreq3", 1700).toInt();
|
||||
rx_freq[3] = settings->value("Modem/RXFreq4", 1700).toInt();
|
||||
|
||||
rcvr_offset[0] = settings->value("Modem/RcvrShift1", 30).toInt();
|
||||
rcvr_offset[1] = settings->value("Modem/RcvrShift2", 30).toInt();
|
||||
rcvr_offset[2] = settings->value("Modem/RcvrShift3", 30).toInt();
|
||||
rcvr_offset[3] = settings->value("Modem/RcvrShift4", 30).toInt();
|
||||
speed[0] = settings->value("Modem/ModemType1", SPEED_1200).toInt();
|
||||
speed[1] = settings->value("Modem/ModemType2", SPEED_1200).toInt();
|
||||
speed[2] = settings->value("Modem/ModemType3", SPEED_1200).toInt();
|
||||
speed[3] = settings->value("Modem/ModemType4", SPEED_1200).toInt();
|
||||
|
||||
RCVR[0] = settings->value("Modem/NRRcvrPairs1", 0).toInt();;
|
||||
RCVR[1] = settings->value("Modem/NRRcvrPairs2", 0).toInt();;
|
||||
RCVR[2] = settings->value("Modem/NRRcvrPairs3", 0).toInt();;
|
||||
RCVR[3] = settings->value("Modem/NRRcvrPairs4", 0).toInt();;
|
||||
|
||||
soundChannel[0] = settings->value("Modem/soundChannel1", 1).toInt();
|
||||
soundChannel[1] = settings->value("Modem/soundChannel2", 0).toInt();
|
||||
soundChannel[2] = settings->value("Modem/soundChannel3", 0).toInt();
|
||||
soundChannel[3] = settings->value("Modem/soundChannel4", 0).toInt();
|
||||
|
||||
SCO = settings->value("Init/SCO", 0).toInt();
|
||||
|
||||
dcd_threshold = settings->value("Modem/DCDThreshold", 40).toInt();
|
||||
rxOffset = settings->value("Modem/rxOffset", 0).toInt();
|
||||
|
||||
AGWServ = settings->value("AGWHost/Server", TRUE).toBool();
|
||||
AGWPort = settings->value("AGWHost/Port", 8000).toInt();
|
||||
KISSServ = settings->value("KISS/Server", FALSE).toBool();
|
||||
KISSPort = settings->value("KISS/Port", 8105).toInt();
|
||||
|
||||
RX_Samplerate = RX_SR + RX_SR * 0.000001*RX_PPM;
|
||||
TX_Samplerate = TX_SR + TX_SR * 0.000001*TX_PPM;
|
||||
|
||||
emph_all[0] = settings->value("Modem/PreEmphasisAll1", FALSE).toBool();
|
||||
emph_all[1] = settings->value("Modem/PreEmphasisAll2", FALSE).toBool();
|
||||
emph_all[2] = settings->value("Modem/PreEmphasisAll3", FALSE).toBool();
|
||||
emph_all[3] = settings->value("Modem/PreEmphasisAll4", FALSE).toBool();
|
||||
|
||||
emph_db[0] = settings->value("Modem/PreEmphasisDB1", 0).toInt();
|
||||
emph_db[1] = settings->value("Modem/PreEmphasisDB2", 0).toInt();
|
||||
emph_db[2] = settings->value("Modem/PreEmphasisDB3", 0).toInt();
|
||||
emph_db[3] = settings->value("Modem/PreEmphasisDB4", 0).toInt();
|
||||
|
||||
Firstwaterfall = settings->value("Window/Waterfall1", TRUE).toInt();
|
||||
Secondwaterfall = settings->value("Window/Waterfall2", TRUE).toInt();
|
||||
|
||||
txdelay[0] = settings->value("Modem/TxDelay1", 250).toInt();
|
||||
txdelay[1] = settings->value("Modem/TxDelay2", 250).toInt();
|
||||
txdelay[2] = settings->value("Modem/TxDelay3", 250).toInt();
|
||||
txdelay[3] = settings->value("Modem/TxDelay4", 250).toInt();
|
||||
|
||||
txtail[0] = settings->value("Modem/TxTail1", 50).toInt();
|
||||
txtail[1] = settings->value("Modem/TxTail2", 50).toInt();
|
||||
txtail[2] = settings->value("Modem/TxTail3", 50).toInt();
|
||||
txtail[3] = settings->value("Modem/TxTail4", 50).toInt();
|
||||
|
||||
strcpy(CWIDCall, settings->value("Modem/CWIDCall", "").toString().toUtf8().toUpper());
|
||||
strcpy(CWIDMark, settings->value("Modem/CWIDMark", "").toString().toUtf8().toUpper());
|
||||
CWIDInterval = settings->value("Modem/CWIDInterval", 0).toInt();
|
||||
CWIDLeft = settings->value("Modem/CWIDLeft", 0).toInt();
|
||||
CWIDRight = settings->value("Modem/CWIDRight", 0).toInt();
|
||||
CWIDType = settings->value("Modem/CWIDType", 1).toInt(); // on/off
|
||||
afterTraffic = settings->value("Modem/afterTraffic", false).toBool();
|
||||
|
||||
getAX25Params(0);
|
||||
getAX25Params(1);
|
||||
getAX25Params(2);
|
||||
getAX25Params(3);
|
||||
|
||||
// Validate and process settings
|
||||
|
||||
UsingLeft = 0;
|
||||
UsingRight = 0;
|
||||
UsingBothChannels = 0;
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
if (soundChannel[i] == LEFT)
|
||||
{
|
||||
UsingLeft = 1;
|
||||
modemtoSoundLR[i] = 0;
|
||||
}
|
||||
else if (soundChannel[i] == RIGHT)
|
||||
{
|
||||
UsingRight = 1;
|
||||
modemtoSoundLR[i] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (UsingLeft && UsingRight)
|
||||
UsingBothChannels = 1;
|
||||
|
||||
for (snd_ch = 0; snd_ch < 4; snd_ch++)
|
||||
{
|
||||
tx_hitoneraise[snd_ch] = powf(10.0f, -abs(tx_hitoneraisedb[snd_ch]) / 20.0f);
|
||||
|
||||
if (IPOLL[snd_ch] < 0)
|
||||
IPOLL[snd_ch] = 0;
|
||||
else if (IPOLL[snd_ch] > 65535)
|
||||
IPOLL[snd_ch] = 65535;
|
||||
|
||||
if (MEMRecovery[snd_ch] < 1)
|
||||
MEMRecovery[snd_ch] = 1;
|
||||
|
||||
// if (MEMRecovery[snd_ch]> 65535)
|
||||
// MEMRecovery[snd_ch]= 65535;
|
||||
|
||||
/*
|
||||
if resptime[snd_ch] < 0 then resptime[snd_ch]= 0;
|
||||
if resptime[snd_ch] > 65535 then resptime[snd_ch]= 65535;
|
||||
if persist[snd_ch] > 255 then persist[snd_ch]= 255;
|
||||
if persist[snd_ch] < 32 then persist[snd_ch]= 32;
|
||||
if fracks[snd_ch] < 1 then fracks[snd_ch]= 1;
|
||||
if frack_time[snd_ch] < 1 then frack_time[snd_ch]= 1;
|
||||
if idletime[snd_ch] < frack_time[snd_ch] then idletime[snd_ch]= 180;
|
||||
*/
|
||||
|
||||
if (emph_db[snd_ch] < 0 || emph_db[snd_ch] > nr_emph)
|
||||
emph_db[snd_ch] = 0;
|
||||
|
||||
if (max_frame_collector[snd_ch] > 6) max_frame_collector[snd_ch] = 6;
|
||||
if (maxframe[snd_ch] == 0 || maxframe[snd_ch] > 7) maxframe[snd_ch] = 3;
|
||||
if (qpsk_set[snd_ch].mode > 1) qpsk_set[snd_ch].mode = 0;
|
||||
|
||||
}
|
||||
|
||||
delete(settings);
|
||||
}
|
||||
|
||||
void SavePortSettings(int Chan);
|
||||
|
||||
void saveAX25Param(const char * key, QVariant Value)
|
||||
{
|
||||
char fullKey[64];
|
||||
|
||||
sprintf(fullKey, "%s/%s", Prefix, key);
|
||||
|
||||
settings->setValue(fullKey, Value);
|
||||
}
|
||||
|
||||
void saveAX25Params(int chan)
|
||||
{
|
||||
Prefix[5] = chan + 'A';
|
||||
SavePortSettings(chan);
|
||||
}
|
||||
|
||||
void SavePortSettings(int Chan)
|
||||
{
|
||||
saveAX25Param("Retries", fracks[Chan]);
|
||||
saveAX25Param("HiToneRaise", tx_hitoneraisedb[Chan]);
|
||||
saveAX25Param("Maxframe",maxframe[Chan]);
|
||||
saveAX25Param("Retries", fracks[Chan]);
|
||||
saveAX25Param("FrackTime", frack_time[Chan]);
|
||||
saveAX25Param("IdleTime", idletime[Chan]);
|
||||
saveAX25Param("SlotTime", slottime[Chan]);
|
||||
saveAX25Param("Persist", persist[Chan]);
|
||||
saveAX25Param("RespTime", resptime[Chan]);
|
||||
saveAX25Param("TXFrmMode", TXFrmMode[Chan]);
|
||||
saveAX25Param("FrameCollector", max_frame_collector[Chan]);
|
||||
saveAX25Param("ExcludeCallsigns", exclude_callsigns[Chan]);
|
||||
saveAX25Param("ExcludeAPRSFrmType", exclude_APRS_frm[Chan]);
|
||||
saveAX25Param("KISSOptimization", KISS_opt[Chan]);
|
||||
saveAX25Param("DynamicFrack", dyn_frack[Chan]);
|
||||
saveAX25Param("BitRecovery", recovery[Chan]);
|
||||
saveAX25Param("NonAX25Frm", NonAX25[Chan]);
|
||||
saveAX25Param("MEMRecovery", MEMRecovery[Chan]);
|
||||
saveAX25Param("IPOLL", IPOLL[Chan]);
|
||||
saveAX25Param("MyDigiCall", MyDigiCall[Chan]);
|
||||
saveAX25Param("FX25", fx25_mode[Chan]);
|
||||
saveAX25Param("IL2P", il2p_mode[Chan]);
|
||||
saveAX25Param("RSID_UI", RSID_UI[Chan]);
|
||||
saveAX25Param("RSID_SABM", RSID_SABM[Chan]);
|
||||
saveAX25Param("RSID_SetModem", RSID_SetModem[Chan]);
|
||||
}
|
||||
|
||||
void saveSettings()
|
||||
{
|
||||
QSettings * settings = new QSettings("QtSoundModem.ini", QSettings::IniFormat);
|
||||
|
||||
settings->setValue("FontFamily", Font.family());
|
||||
settings->setValue("PointSize", Font.pointSize());
|
||||
settings->setValue("Weight", Font.weight());
|
||||
|
||||
settings->setValue("PSKWindow", constellationDialog->geometry());
|
||||
settings->setValue("Init/SoundMode", SoundMode);
|
||||
settings->setValue("Init/UDPClientPort", UDPClientPort);
|
||||
settings->setValue("Init/UDPServerPort", UDPServerPort);
|
||||
settings->setValue("Init/TXPort", TXPort);
|
||||
|
||||
settings->setValue("Init/UDPServer", UDPServ);
|
||||
settings->setValue("Init/UDPHost", UDPHost);
|
||||
|
||||
|
||||
settings->setValue("Init/TXSampleRate", TX_SR);
|
||||
settings->setValue("Init/RXSampleRate", RX_SR);
|
||||
|
||||
settings->setValue("Init/SndRXDeviceName", CaptureDevice);
|
||||
settings->setValue("Init/SndTXDeviceName", PlaybackDevice);
|
||||
|
||||
settings->setValue("Init/SCO", SCO);
|
||||
settings->setValue("Init/DualPTT", DualPTT);
|
||||
settings->setValue("Init/TXRotate", TX_rotate);
|
||||
|
||||
settings->setValue("Init/DispMode", raduga);
|
||||
|
||||
settings->setValue("Init/PTT", PTTPort);
|
||||
settings->setValue("Init/PTTBAUD", PTTBAUD);
|
||||
settings->setValue("Init/PTTMode", PTTMode);
|
||||
|
||||
settings->setValue("Init/PTTOffString", PTTOffString);
|
||||
settings->setValue("Init/PTTOnString", PTTOnString);
|
||||
|
||||
settings->setValue("Init/pttGPIOPin", pttGPIOPin);
|
||||
settings->setValue("Init/pttGPIOPinR", pttGPIOPinR);
|
||||
|
||||
settings->setValue("Init/CM108Addr", CM108Addr);
|
||||
settings->setValue("Init/HamLibPort", HamLibPort);
|
||||
settings->setValue("Init/HamLibHost", HamLibHost);
|
||||
settings->setValue("Init/MinimizetoTray", MintoTray);
|
||||
settings->setValue("Init/multiCore", multiCore);
|
||||
settings->setValue("Init/Wisdom", Wisdom);
|
||||
|
||||
settings->setValue("Init/WaterfallMin", WaterfallMin);
|
||||
settings->setValue("Init/WaterfallMax", WaterfallMax);
|
||||
|
||||
// Don't save freq on close as it could be offset by multiple decoders
|
||||
|
||||
settings->setValue("Modem/NRRcvrPairs1", RCVR[0]);
|
||||
settings->setValue("Modem/NRRcvrPairs2", RCVR[1]);
|
||||
settings->setValue("Modem/NRRcvrPairs3", RCVR[2]);
|
||||
settings->setValue("Modem/NRRcvrPairs4", RCVR[3]);
|
||||
|
||||
settings->setValue("Modem/RcvrShift1", rcvr_offset[0]);
|
||||
settings->setValue("Modem/RcvrShift2", rcvr_offset[1]);
|
||||
settings->setValue("Modem/RcvrShift3", rcvr_offset[2]);
|
||||
settings->setValue("Modem/RcvrShift4", rcvr_offset[3]);
|
||||
|
||||
settings->setValue("Modem/ModemType1", speed[0]);
|
||||
settings->setValue("Modem/ModemType2", speed[1]);
|
||||
settings->setValue("Modem/ModemType3", speed[2]);
|
||||
settings->setValue("Modem/ModemType4", speed[3]);
|
||||
|
||||
settings->setValue("Modem/soundChannel1", soundChannel[0]);
|
||||
settings->setValue("Modem/soundChannel2", soundChannel[1]);
|
||||
settings->setValue("Modem/soundChannel3", soundChannel[2]);
|
||||
settings->setValue("Modem/soundChannel4", soundChannel[3]);
|
||||
|
||||
settings->setValue("Modem/DCDThreshold", dcd_threshold);
|
||||
settings->setValue("Modem/rxOffset", rxOffset);
|
||||
|
||||
settings->setValue("AGWHost/Server", AGWServ);
|
||||
settings->setValue("AGWHost/Port", AGWPort);
|
||||
settings->setValue("KISS/Server", KISSServ);
|
||||
settings->setValue("KISS/Port", KISSPort);
|
||||
|
||||
settings->setValue("Modem/PreEmphasisAll1", emph_all[0]);
|
||||
settings->setValue("Modem/PreEmphasisAll2", emph_all[1]);
|
||||
settings->setValue("Modem/PreEmphasisAll3", emph_all[2]);
|
||||
settings->setValue("Modem/PreEmphasisAll4", emph_all[3]);
|
||||
|
||||
settings->setValue("Modem/PreEmphasisDB1", emph_db[0]);
|
||||
settings->setValue("Modem/PreEmphasisDB2", emph_db[1]);
|
||||
settings->setValue("Modem/PreEmphasisDB3", emph_db[2]);
|
||||
settings->setValue("Modem/PreEmphasisDB4", emph_db[3]);
|
||||
|
||||
settings->setValue("Window/Waterfall1", Firstwaterfall);
|
||||
settings->setValue("Window/Waterfall2", Secondwaterfall);
|
||||
|
||||
settings->setValue("Modem/TxDelay1", txdelay[0]);
|
||||
settings->setValue("Modem/TxDelay2", txdelay[1]);
|
||||
settings->setValue("Modem/TxDelay3", txdelay[2]);
|
||||
settings->setValue("Modem/TxDelay4", txdelay[3]);
|
||||
|
||||
settings->setValue("Modem/TxTail1", txtail[0]);
|
||||
settings->setValue("Modem/TxTail2", txtail[1]);
|
||||
settings->setValue("Modem/TxTail3", txtail[2]);
|
||||
settings->setValue("Modem/TxTail4", txtail[3]);
|
||||
|
||||
settings->setValue("Modem/CWIDCall", CWIDCall);
|
||||
settings->setValue("Modem/CWIDMark", CWIDMark);
|
||||
settings->setValue("Modem/CWIDInterval", CWIDInterval);
|
||||
settings->setValue("Modem/CWIDLeft", CWIDLeft);
|
||||
settings->setValue("Modem/CWIDRight", CWIDRight);
|
||||
settings->setValue("Modem/CWIDType", CWIDType);
|
||||
settings->setValue("Modem/afterTraffic", afterTraffic);
|
||||
|
||||
saveAX25Params(0);
|
||||
saveAX25Params(1);
|
||||
saveAX25Params(2);
|
||||
saveAX25Params(3);
|
||||
|
||||
settings->sync();
|
||||
|
||||
delete(settings);
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
<ui version="4.0">
|
||||
<author></author>
|
||||
<comment></comment>
|
||||
<exportmacro></exportmacro>
|
||||
<class>Dialog</class>
|
||||
<widget class="QDialog" name="Dialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>250</y>
|
||||
<width>351</width>
|
||||
<height>33</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout">
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>131</width>
|
||||
<height>31</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="okButton">
|
||||
<property name="text">
|
||||
<string>OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cancelButton">
|
||||
<property name="text">
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>okButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>Dialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>278</x>
|
||||
<y>253</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>96</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cancelButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>Dialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>369</x>
|
||||
<y>253</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>179</x>
|
||||
<y>282</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
674
LICENSE
Normal file
674
LICENSE
Normal file
|
@ -0,0 +1,674 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
311
LinuxBits.c
311
LinuxBits.c
|
@ -1,311 +0,0 @@
|
|||
/*
|
||||
Copyright (C) 2019-2020 Andrei Kopanchuk UZ7HO
|
||||
|
||||
This file is part of QtSoundModem
|
||||
|
||||
QtSoundModem is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
QtSoundModem is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QtSoundModem. If not, see http://www.gnu.org/licenses
|
||||
|
||||
*/
|
||||
|
||||
//#define TXSILENCE
|
||||
|
||||
// UZ7HO Soundmodem Port by John Wiseman G8BPQ
|
||||
//
|
||||
// Audio interface Routine
|
||||
|
||||
// Passes audio samples to/from the sound interface
|
||||
|
||||
// As this is platform specific it also has the main() routine, which does
|
||||
// platform specific initialisation before calling ardopmain()
|
||||
|
||||
// This is ALSASound.c for Linux
|
||||
// Windows Version is Waveout.c
|
||||
|
||||
|
||||
|
||||
|
||||
void gpioSetMode(unsigned gpio, unsigned mode);
|
||||
void gpioWrite(unsigned gpio, unsigned level);
|
||||
int _memicmp(unsigned char *a, unsigned char *b, int n);
|
||||
int stricmp(const unsigned char * pStr1, const unsigned char *pStr2);
|
||||
int gpioInitialise(void);
|
||||
|
||||
void Sleep(int mS)
|
||||
{
|
||||
usleep(mS * 1000);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// GPIO access stuff for PTT on PI
|
||||
|
||||
#ifdef __ARM_ARCH
|
||||
|
||||
/*
|
||||
tiny_gpio.c
|
||||
2016-04-30
|
||||
Public Domain
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#define GPSET0 7
|
||||
#define GPSET1 8
|
||||
|
||||
#define GPCLR0 10
|
||||
#define GPCLR1 11
|
||||
|
||||
#define GPLEV0 13
|
||||
#define GPLEV1 14
|
||||
|
||||
#define GPPUD 37
|
||||
#define GPPUDCLK0 38
|
||||
#define GPPUDCLK1 39
|
||||
|
||||
unsigned piModel;
|
||||
unsigned piRev;
|
||||
|
||||
static volatile uint32_t *gpioReg = MAP_FAILED;
|
||||
|
||||
#define PI_BANK (gpio>>5)
|
||||
#define PI_BIT (1<<(gpio&0x1F))
|
||||
|
||||
/* gpio modes. */
|
||||
|
||||
// PTT via GPIO code
|
||||
|
||||
#ifdef __ARM_ARCH
|
||||
|
||||
#define PI_INPUT 0
|
||||
#define PI_OUTPUT 1
|
||||
#define PI_ALT0 4
|
||||
#define PI_ALT1 5
|
||||
#define PI_ALT2 6
|
||||
#define PI_ALT3 7
|
||||
#define PI_ALT4 3
|
||||
#define PI_ALT5 2
|
||||
|
||||
// Set GPIO pin as output and set low
|
||||
|
||||
void SetupGPIOPTT()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
void gpioSetMode(unsigned gpio, unsigned mode)
|
||||
{
|
||||
int reg, shift;
|
||||
|
||||
reg = gpio/10;
|
||||
shift = (gpio%10) * 3;
|
||||
|
||||
gpioReg[reg] = (gpioReg[reg] & ~(7<<shift)) | (mode<<shift);
|
||||
}
|
||||
|
||||
int gpioGetMode(unsigned gpio)
|
||||
{
|
||||
int reg, shift;
|
||||
|
||||
reg = gpio/10;
|
||||
shift = (gpio%10) * 3;
|
||||
|
||||
return (*(gpioReg + reg) >> shift) & 7;
|
||||
}
|
||||
|
||||
/* Values for pull-ups/downs off, pull-down and pull-up. */
|
||||
|
||||
#define PI_PUD_OFF 0
|
||||
#define PI_PUD_DOWN 1
|
||||
#define PI_PUD_UP 2
|
||||
|
||||
void gpioSetPullUpDown(unsigned gpio, unsigned pud)
|
||||
{
|
||||
*(gpioReg + GPPUD) = pud;
|
||||
|
||||
usleep(20);
|
||||
|
||||
*(gpioReg + GPPUDCLK0 + PI_BANK) = PI_BIT;
|
||||
|
||||
usleep(20);
|
||||
|
||||
*(gpioReg + GPPUD) = 0;
|
||||
|
||||
*(gpioReg + GPPUDCLK0 + PI_BANK) = 0;
|
||||
}
|
||||
|
||||
int gpioRead(unsigned gpio)
|
||||
{
|
||||
if ((*(gpioReg + GPLEV0 + PI_BANK) & PI_BIT) != 0) return 1;
|
||||
else return 0;
|
||||
}
|
||||
void gpioWrite(unsigned gpio, unsigned level)
|
||||
{
|
||||
if (level == 0)
|
||||
*(gpioReg + GPCLR0 + PI_BANK) = PI_BIT;
|
||||
else
|
||||
*(gpioReg + GPSET0 + PI_BANK) = PI_BIT;
|
||||
}
|
||||
|
||||
void gpioTrigger(unsigned gpio, unsigned pulseLen, unsigned level)
|
||||
{
|
||||
if (level == 0) *(gpioReg + GPCLR0 + PI_BANK) = PI_BIT;
|
||||
else *(gpioReg + GPSET0 + PI_BANK) = PI_BIT;
|
||||
|
||||
usleep(pulseLen);
|
||||
|
||||
if (level != 0) *(gpioReg + GPCLR0 + PI_BANK) = PI_BIT;
|
||||
else *(gpioReg + GPSET0 + PI_BANK) = PI_BIT;
|
||||
}
|
||||
|
||||
/* Bit (1<<x) will be set if gpio x is high. */
|
||||
|
||||
uint32_t gpioReadBank1(void) { return (*(gpioReg + GPLEV0)); }
|
||||
uint32_t gpioReadBank2(void) { return (*(gpioReg + GPLEV1)); }
|
||||
|
||||
/* To clear gpio x bit or in (1<<x). */
|
||||
|
||||
void gpioClearBank1(uint32_t bits) { *(gpioReg + GPCLR0) = bits; }
|
||||
void gpioClearBank2(uint32_t bits) { *(gpioReg + GPCLR1) = bits; }
|
||||
|
||||
/* To set gpio x bit or in (1<<x). */
|
||||
|
||||
void gpioSetBank1(uint32_t bits) { *(gpioReg + GPSET0) = bits; }
|
||||
void gpioSetBank2(uint32_t bits) { *(gpioReg + GPSET1) = bits; }
|
||||
|
||||
unsigned gpioHardwareRevision(void)
|
||||
{
|
||||
static unsigned rev = 0;
|
||||
|
||||
FILE * filp;
|
||||
char buf[512];
|
||||
char term;
|
||||
int chars=4; /* number of chars in revision string */
|
||||
|
||||
if (rev) return rev;
|
||||
|
||||
piModel = 0;
|
||||
|
||||
filp = fopen ("/proc/cpuinfo", "r");
|
||||
|
||||
if (filp != NULL)
|
||||
{
|
||||
while (fgets(buf, sizeof(buf), filp) != NULL)
|
||||
{
|
||||
if (piModel == 0)
|
||||
{
|
||||
if (!strncasecmp("model name", buf, 10))
|
||||
{
|
||||
if (strstr (buf, "ARMv6") != NULL)
|
||||
{
|
||||
piModel = 1;
|
||||
chars = 4;
|
||||
}
|
||||
else if (strstr (buf, "ARMv7") != NULL)
|
||||
{
|
||||
piModel = 2;
|
||||
chars = 6;
|
||||
}
|
||||
else if (strstr (buf, "ARMv8") != NULL)
|
||||
{
|
||||
piModel = 2;
|
||||
chars = 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!strncasecmp("revision", buf, 8))
|
||||
{
|
||||
if (sscanf(buf+strlen(buf)-(chars+1),
|
||||
"%x%c", &rev, &term) == 2)
|
||||
{
|
||||
if (term != '\n') rev = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fclose(filp);
|
||||
}
|
||||
return rev;
|
||||
}
|
||||
|
||||
int gpioInitialise(void)
|
||||
{
|
||||
int fd;
|
||||
|
||||
piRev = gpioHardwareRevision(); /* sets piModel and piRev */
|
||||
|
||||
fd = open("/dev/gpiomem", O_RDWR | O_SYNC) ;
|
||||
|
||||
if (fd < 0)
|
||||
{
|
||||
fprintf(stderr, "failed to open /dev/gpiomem\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
gpioReg = (uint32_t *)mmap(NULL, 0xB4, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
|
||||
close(fd);
|
||||
|
||||
if (gpioReg == MAP_FAILED)
|
||||
{
|
||||
fprintf(stderr, "Bad, mmap failed\n");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
int stricmp(const unsigned char * pStr1, const unsigned char *pStr2)
|
||||
{
|
||||
unsigned char c1, c2;
|
||||
int v;
|
||||
|
||||
if (pStr1 == NULL)
|
||||
{
|
||||
if (pStr2)
|
||||
Debugprintf("stricmp called with NULL 1st param - 2nd %s ", pStr2);
|
||||
else
|
||||
Debugprintf("stricmp called with two NULL params");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
do {
|
||||
c1 = *pStr1++;
|
||||
c2 = *pStr2++;
|
||||
/* The casts are necessary when pStr1 is shorter & char is signed */
|
||||
v = tolower(c1) - tolower(c2);
|
||||
} while ((v == 0) && (c1 != '\0') && (c2 != '\0') );
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
|
3194
ModemDialog.ui
3194
ModemDialog.ui
File diff suppressed because it is too large
Load diff
1089
Modulate.c
1089
Modulate.c
File diff suppressed because it is too large
Load diff
|
@ -1,292 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{4EDE958E-D0AC-37B4-81F7-78313A262DCD}</ProjectGuid>
|
||||
<RootNamespace>QtSoundModem</RootNamespace>
|
||||
<Keyword>QtVS_v304</Keyword>
|
||||
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformMinVersion>10.0.19041.0</WindowsTargetPlatformMinVersion>
|
||||
<QtMsBuild Condition="'$(QtMsBuild)'=='' or !Exists('$(QtMsBuild)\qt.targets')">$(MSBuildProjectDirectory)\QtMsBuild</QtMsBuild>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>release\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>release\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>debug\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>debug\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">
|
||||
<Message Importance="High" Text="QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly." />
|
||||
</Target>
|
||||
<ImportGroup Label="ExtensionSettings" />
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')">
|
||||
<Import Project="$(QtMsBuild)\qt_defaults.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtInstall>5.14</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtInstall>5.14.2</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.props')">
|
||||
<Import Project="$(QtMsBuild)\qt.props" />
|
||||
</ImportGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>rsid;.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;release;/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>$(OutDir)QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;debug;/include;rsid;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<OutputFile>$(OutDir)\QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="ARDOPC.c" />
|
||||
<ClCompile Include="BusyDetect.c" />
|
||||
<ClCompile Include="Config.cpp" />
|
||||
<ClCompile Include="dw9600.c" />
|
||||
<ClCompile Include="hid.c" />
|
||||
<ClCompile Include="il2p.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Modulate.c" />
|
||||
<ClCompile Include="QtSoundModem.cpp" />
|
||||
<ClCompile Include="rsid.c" />
|
||||
<ClCompile Include="RSUnit.c" />
|
||||
<ClCompile Include="SMMain.c" />
|
||||
<ClCompile Include="ShowFilter.cpp" />
|
||||
<ClCompile Include="SoundInput.c" />
|
||||
<ClCompile Include="UZ7HOUtils.c" />
|
||||
<ClCompile Include="ardopSampleArrays.c" />
|
||||
<ClCompile Include="ax25.c" />
|
||||
<ClCompile Include="ax25_agw.c" />
|
||||
<ClCompile Include="ax25_demod.c" />
|
||||
<ClCompile Include="ax25_fec.c" />
|
||||
<ClCompile Include="ax25_l2.c" />
|
||||
<ClCompile Include="ax25_mod.c" />
|
||||
<ClCompile Include="berlekamp.c" />
|
||||
<ClCompile Include="galois.c" />
|
||||
<ClCompile Include="kiss_mode.c" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="ofdm.c" />
|
||||
<ClCompile Include="pktARDOP.c" />
|
||||
<ClCompile Include="rs.c" />
|
||||
<ClCompile Include="sm_main.c" />
|
||||
<ClCompile Include="tcpCode.cpp" />
|
||||
<ClCompile Include="Waveout.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="QtSoundModem.h">
|
||||
</QtMoc>
|
||||
<ClInclude Include="UZ7HOStuff.h" />
|
||||
<QtMoc Include="tcpCode.h">
|
||||
</QtMoc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="debug\moc_predefs.h.cbt">
|
||||
<FileType>Document</FileType>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs)</AdditionalInputs>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h</Command>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generate moc_predefs.h</Message>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">debug\moc_predefs.h;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="release\moc_predefs.h.cbt">
|
||||
<FileType>Document</FileType>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs)</AdditionalInputs>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MD -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >release\moc_predefs.h</Command>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Generate moc_predefs.h</Message>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">release\moc_predefs.h;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtUic Include="ModemDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="QtSoundModem.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="calibrateDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="devicesDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="filterWindow.ui">
|
||||
</QtUic>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtRcc Include="QtSoundModem.qrc">
|
||||
</QtRcc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include=".\QtSoundModem_resource.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="QtSoundModem.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.targets')">
|
||||
<Import Project="$(QtMsBuild)\qt.targets" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="ExtensionTargets" />
|
||||
</Project>
|
|
@ -1,288 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{4EDE958E-D0AC-37B4-81F7-78313A262DCD}</ProjectGuid>
|
||||
<RootNamespace>QtSoundModem</RootNamespace>
|
||||
<Keyword>QtVS_v304</Keyword>
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformMinVersion>10.0.19041.0</WindowsTargetPlatformMinVersion>
|
||||
<QtMsBuild Condition="'$(QtMsBuild)'=='' or !Exists('$(QtMsBuild)\qt.targets')">$(MSBuildProjectDirectory)\QtMsBuild</QtMsBuild>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>release\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>release\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>debug\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>debug\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">
|
||||
<Message Importance="High" Text="QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly." />
|
||||
</Target>
|
||||
<ImportGroup Label="ExtensionSettings" />
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')">
|
||||
<Import Project="$(QtMsBuild)\qt_defaults.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>C:\Dev\Msdev2005\projects\QT\QtSoundModem\Win32\Debug\</OutDir>
|
||||
<IntDir>C:\Dev\Msdev2005\projects\QT\QtSoundModem\Intermed\Win32\Debug\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>C:\Dev\Msdev2005\projects\QT\QtSoundModem\Win32\Release\</OutDir>
|
||||
<IntDir>C:\Dev\Msdev2005\projects\QT\QtSoundModem\Intermed\Win32\Release\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtInstall>5.14.2_msvc2017</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtInstall>5.14.2_msvc2017</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.props')">
|
||||
<Import Project="$(QtMsBuild)\qt.props" />
|
||||
</ImportGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>rsid;.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;release;/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>$(OutDir)\QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;debug;/include;rsid;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<OutputFile>$(OutDir)\QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="ARDOPC.c" />
|
||||
<ClCompile Include="BusyDetect.c" />
|
||||
<ClCompile Include="Config.cpp" />
|
||||
<ClCompile Include="hid.c" />
|
||||
<ClCompile Include="Modulate.c" />
|
||||
<ClCompile Include="QtSoundModem.cpp" />
|
||||
<ClCompile Include="rsid.c" />
|
||||
<ClCompile Include="RSUnit.c" />
|
||||
<ClCompile Include="SMMain.c" />
|
||||
<ClCompile Include="ShowFilter.cpp" />
|
||||
<ClCompile Include="SoundInput.c" />
|
||||
<ClCompile Include="UZ7HOUtils.c" />
|
||||
<ClCompile Include="ardopSampleArrays.c" />
|
||||
<ClCompile Include="ax25.c" />
|
||||
<ClCompile Include="ax25_agw.c" />
|
||||
<ClCompile Include="ax25_demod.c" />
|
||||
<ClCompile Include="ax25_fec.c" />
|
||||
<ClCompile Include="ax25_l2.c" />
|
||||
<ClCompile Include="ax25_mod.c" />
|
||||
<ClCompile Include="berlekamp.c" />
|
||||
<ClCompile Include="galois.c" />
|
||||
<ClCompile Include="kiss_mode.c" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="ofdm.c" />
|
||||
<ClCompile Include="pktARDOP.c" />
|
||||
<ClCompile Include="rs.c" />
|
||||
<ClCompile Include="sm_main.c" />
|
||||
<ClCompile Include="tcpCode.cpp" />
|
||||
<ClCompile Include="Waveout.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="QtSoundModem.h">
|
||||
</QtMoc>
|
||||
<ClInclude Include="UZ7HOStuff.h" />
|
||||
<QtMoc Include="tcpCode.h">
|
||||
</QtMoc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="debug\moc_predefs.h.cbt">
|
||||
<FileType>Document</FileType>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs)</AdditionalInputs>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h</Command>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generate moc_predefs.h</Message>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">debug\moc_predefs.h;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="release\moc_predefs.h.cbt">
|
||||
<FileType>Document</FileType>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs)</AdditionalInputs>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MD -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >release\moc_predefs.h</Command>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Generate moc_predefs.h</Message>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">release\moc_predefs.h;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtUic Include="ModemDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="QtSoundModem.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="calibrateDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="devicesDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="filterWindow.ui">
|
||||
</QtUic>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtRcc Include="QtSoundModem.qrc">
|
||||
</QtRcc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include=".\QtSoundModem_resource.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="QtSoundModem.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.targets')">
|
||||
<Import Project="$(QtMsBuild)\qt.targets" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="ExtensionTargets" />
|
||||
</Project>
|
BIN
QtSoundModem.aps
BIN
QtSoundModem.aps
Binary file not shown.
3307
QtSoundModem.cpp
3307
QtSoundModem.cpp
File diff suppressed because it is too large
Load diff
2866
QtSoundModem.cpp.bak
2866
QtSoundModem.cpp.bak
File diff suppressed because it is too large
Load diff
113
QtSoundModem.h
113
QtSoundModem.h
|
@ -1,113 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include "ui_QtSoundModem.h"
|
||||
#include "ui_calibrateDialog.h"
|
||||
#include "ui_devicesDialog.h"
|
||||
#include "ui_filterWindow.h"
|
||||
#include "ui_ModemDialog.h"
|
||||
#include "QThread"
|
||||
#include <QLabel>
|
||||
#include <QTableWidget>
|
||||
#include <QTcpServer>
|
||||
#include <QTcpSocket>
|
||||
#include <QUdpSocket>
|
||||
#include <QSystemTrayIcon>
|
||||
|
||||
#include "tcpCode.h"
|
||||
|
||||
|
||||
class QtSoundModem : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
QtSoundModem(QWidget *parent = Q_NULLPTR);
|
||||
void changeEvent(QEvent * e);
|
||||
void closeEvent(QCloseEvent * event);
|
||||
~QtSoundModem();
|
||||
|
||||
void RefreshWaterfall(int snd_ch, unsigned char * Data);
|
||||
void initWaterfall(int chan, int state);
|
||||
void show_grid();
|
||||
void checkforCWID();
|
||||
|
||||
public slots:
|
||||
|
||||
private slots:
|
||||
|
||||
void CWIDTimer();
|
||||
void doDevices();
|
||||
void updateFont();
|
||||
void MinimizetoTray();
|
||||
void TrayActivated(QSystemTrayIcon::ActivationReason reason);
|
||||
void MyTimerSlot();
|
||||
void returnPressed();
|
||||
void clickedSlotI(int i);
|
||||
void doModems();
|
||||
void doFilter(int Chan, int Filter);
|
||||
void SoundModeChanged(bool State);
|
||||
void DualPTTChanged(bool State);
|
||||
void CATChanged(bool State);
|
||||
void PTTPortChanged(int);
|
||||
void deviceaccept();
|
||||
void devicereject();
|
||||
void modemaccept();
|
||||
void modemSave();
|
||||
void modemreject();
|
||||
void doRSIDA();
|
||||
void doRSIDB();
|
||||
void doRSIDC();
|
||||
void doRSIDD();
|
||||
void handleButton(int Port, int Act);
|
||||
void doCalibrate();
|
||||
void RefreshSpectrum(unsigned char * Data);
|
||||
void doAbout();
|
||||
void doRestartWF();
|
||||
void doupdateDCD(int, int);
|
||||
void sendtoTrace(char * Msg, int tx);
|
||||
void preEmphAllAChanged(int);
|
||||
void preEmphAllBChanged(int);
|
||||
void preEmphAllCChanged(int state);
|
||||
void preEmphAllDChanged(int state);
|
||||
void menuChecked();
|
||||
void onTEselectionChanged();
|
||||
void clickedSlot();
|
||||
void startCWIDTimerSlot();
|
||||
|
||||
protected:
|
||||
|
||||
bool eventFilter(QObject * obj, QEvent * evt);
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
private:
|
||||
Ui::QtSoundModemClass ui;
|
||||
QTableWidget* sessionTable;
|
||||
QStringList m_TableHeader;
|
||||
|
||||
QMenu *setupMenu;
|
||||
QMenu *viewMenu;
|
||||
|
||||
QAction *actDevices;
|
||||
QAction *actModems;
|
||||
QAction *actFont;
|
||||
QAction *actMintoTray;
|
||||
QAction *actCalib;
|
||||
QAction *actAbout;
|
||||
QAction *actRestartWF;
|
||||
QAction *actWaterfall1;
|
||||
QAction *actWaterfall2;
|
||||
|
||||
signals:
|
||||
|
||||
};
|
||||
|
||||
class myResize : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||
};
|
||||
|
BIN
QtSoundModem.ico
BIN
QtSoundModem.ico
Binary file not shown.
Before (image error) Size: 766 B |
195
QtSoundModem.ini
195
QtSoundModem.ini
|
@ -1,195 +0,0 @@
|
|||
[General]
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\xb5\0\0\0\xa1\0\0\x4\xb2\0\0\x3v\0\0\0\xb6\0\0\0\xc0\0\0\x4\xb1\0\0\x3u\0\0\0\0\0\0\0\0\x5\0\0\0\0\xb6\0\0\0\xc0\0\0\x4\xb1\0\0\x3u)
|
||||
windowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3\xfc\0\0\x2\xa1\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
|
||||
|
||||
[Init]
|
||||
TXSampleRate=12000
|
||||
RXSampleRate=12000
|
||||
SndRXDeviceName="CABLE-A OUTPUT (VB-AUDIO CABLE "
|
||||
SndTXDeviceName=CABLE INPUT (VB-AUDIO VIRTUAL C
|
||||
DualChan=2
|
||||
SCO=0
|
||||
DualPTT=1
|
||||
PTT=HAMLIB
|
||||
TXRotate=1
|
||||
DispMode=1
|
||||
SoundMode=0
|
||||
UDPClientPort=8888
|
||||
UDPServerPort=8884
|
||||
UDPServer=0
|
||||
PTTBAUD=19200
|
||||
PTTMode=17
|
||||
PTTOffString=
|
||||
PTTOnString=127.0.0.1
|
||||
pttGPIOPin=17
|
||||
pttGPIOPinR=17
|
||||
CM108Addr=0xD8C:0x08
|
||||
HamLibPort=4532
|
||||
HamLibHost=127.0.0.1
|
||||
MinimizetoTray=0
|
||||
multiCore=0
|
||||
UDPHost=127.0.0.1
|
||||
TXPort=8888
|
||||
|
||||
[Modem]
|
||||
RXFreq1=1100
|
||||
RXFreq2=2000
|
||||
ModemType1=0
|
||||
ModemType2=0
|
||||
DCDThreshold=36
|
||||
NRRcvrPairs1=2
|
||||
NRRcvrPairs2=2
|
||||
RcvrShift1=30
|
||||
RcvrShift2=30
|
||||
soundChannel1=1
|
||||
soundChannel2=1
|
||||
RawPktMinLen=17
|
||||
SwapPTTPins=0
|
||||
PreEmphasisDB1=0
|
||||
PreEmphasisDB2=0
|
||||
PreEmphasisAll1=1
|
||||
PreEmphasisAll2=0
|
||||
Default1=1
|
||||
Default2=1
|
||||
HoldPnt=0
|
||||
AFC=32
|
||||
TxDelay1=250
|
||||
TxDelay2=250
|
||||
TxTail1=50
|
||||
TxTail2=50
|
||||
Diddles=0
|
||||
InvPTTPins=0
|
||||
RXFreq3=2000
|
||||
NRRcvrPairs3=2
|
||||
NRRcvrPairs4=0
|
||||
RcvrShift3=30
|
||||
RcvrShift4=30
|
||||
ModemType3=0
|
||||
ModemType4=0
|
||||
soundChannel3=0
|
||||
soundChannel4=0
|
||||
PreEmphasisAll3=1
|
||||
PreEmphasisAll4=0
|
||||
PreEmphasisDB3=0
|
||||
PreEmphasisDB4=0
|
||||
TxDelay3=250
|
||||
TxDelay4=250
|
||||
TxTail3=50
|
||||
TxTail4=50
|
||||
RXFreq4=2700
|
||||
CWIDCall=
|
||||
CWIDInterval=0
|
||||
CWIDLeft=0
|
||||
CWIDRight=0
|
||||
CWIDType=1
|
||||
|
||||
[AGWHost]
|
||||
Server=1
|
||||
Port=8009
|
||||
|
||||
[KISS]
|
||||
Server=0
|
||||
Port=8100
|
||||
|
||||
[AX25_A]
|
||||
Maxframe=2
|
||||
Retries=8
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=2000
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=1
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=1
|
||||
MEMRecovery=200
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
HiToneRaise=0
|
||||
soundChannel=1
|
||||
FX25=2
|
||||
|
||||
[AX25_B]
|
||||
Maxframe=2
|
||||
Retries=5
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=2000
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=1
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=1
|
||||
MEMRecovery=200
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
HiToneRaise=0
|
||||
soundChannel=0
|
||||
FX25=2
|
||||
|
||||
[Window]
|
||||
Top=281
|
||||
Left=73
|
||||
Height=735
|
||||
Width=810
|
||||
Waterfall1=1
|
||||
Waterfall2=1
|
||||
StatTable=1
|
||||
Monitor=1
|
||||
MinimizedOnStartup=0
|
||||
|
||||
[Font]
|
||||
Size=8
|
||||
Name=MS Sans Serif
|
||||
|
||||
[AX25_C]
|
||||
Retries=15
|
||||
HiToneRaise=0
|
||||
Maxframe=3
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=1500
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=0
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=0
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
FX25=1
|
||||
|
||||
[AX25_D]
|
||||
Retries=15
|
||||
HiToneRaise=0
|
||||
Maxframe=3
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=1500
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=0
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=0
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
FX25=1
|
|
@ -1,36 +0,0 @@
|
|||
# ----------------------------------------------------
|
||||
# This file is generated by the Qt Visual Studio Tools.
|
||||
# ------------------------------------------------------
|
||||
|
||||
# This is a reminder that you are using a generated .pro file.
|
||||
# Remove it when you are finished editing this file.
|
||||
message("You are running qmake on a generated .pro file. This may not work!")
|
||||
|
||||
|
||||
HEADERS += ./UZ7HOStuff.h \
|
||||
./QtSoundModem.h \
|
||||
./tcpCode.h
|
||||
SOURCES += ./ax25.c \
|
||||
./ax25_agw.c \
|
||||
./ax25_demod.c \
|
||||
./ax25_l2.c \
|
||||
./ax25_mod.c \
|
||||
./berlekamp.c \
|
||||
./Config.cpp \
|
||||
./galois.c \
|
||||
./kiss_mode.c \
|
||||
./main.cpp \
|
||||
./QtSoundModem.cpp \
|
||||
./rs.c \
|
||||
./ShowFilter.cpp \
|
||||
./SMMain.c \
|
||||
./sm_main.c \
|
||||
./UZ7HOUtils.c \
|
||||
./Waveout.c \
|
||||
./tcpCode.cpp
|
||||
FORMS += ./calibrateDialog.ui \
|
||||
./devicesDialog.ui \
|
||||
./filterWindow.ui \
|
||||
./ModemDialog.ui \
|
||||
./QtSoundModem.ui
|
||||
RESOURCES += QtSoundModem.qrc
|
|
@ -1,64 +0,0 @@
|
|||
|
||||
QT += core gui
|
||||
QT += network
|
||||
QT += serialport
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = QtSoundModem
|
||||
TEMPLATE = app
|
||||
|
||||
|
||||
HEADERS += ./UZ7HOStuff.h \
|
||||
./QtSoundModem.h \
|
||||
./tcpCode.h
|
||||
|
||||
SOURCES += ./audio.c \
|
||||
./pulse.c \
|
||||
./ax25.c \
|
||||
./ax25_demod.c \
|
||||
./ax25_l2.c \
|
||||
./ax25_mod.c \
|
||||
./Config.cpp \
|
||||
./kiss_mode.c \
|
||||
./main.cpp \
|
||||
./QtSoundModem.cpp \
|
||||
./ShowFilter.cpp \
|
||||
./SMMain.c \
|
||||
./sm_main.c \
|
||||
./UZ7HOUtils.c \
|
||||
./ALSASound.c \
|
||||
./ax25_agw.c \
|
||||
./berlekamp.c \
|
||||
./galois.c \
|
||||
./rs.c \
|
||||
./rsid.c \
|
||||
./il2p.c \
|
||||
./tcpCode.cpp \
|
||||
./ax25_fec.c \
|
||||
./RSUnit.c \
|
||||
./ARDOPC.c \
|
||||
./ardopSampleArrays.c \
|
||||
./SoundInput.c \
|
||||
./Modulate.c \
|
||||
./ofdm.c \
|
||||
./pktARDOP.c \
|
||||
./BusyDetect.c \
|
||||
./DW9600.c
|
||||
|
||||
|
||||
|
||||
FORMS += ./calibrateDialog.ui \
|
||||
./devicesDialog.ui \
|
||||
./filterWindow.ui \
|
||||
./ModemDialog.ui \
|
||||
./QtSoundModem.ui
|
||||
|
||||
RESOURCES += QtSoundModem.qrc
|
||||
RC_ICONS = QtSoundModem.ico
|
||||
|
||||
QMAKE_CFLAGS += -g
|
||||
#QMAKE_LFLAGS += -lasound -lpulse-simple -lpulse -lfftw3f
|
||||
QMAKE_LIBS += -lasound -lfftw3f -ldl
|
||||
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<RCC>
|
||||
<qresource prefix="/QtSoundModem">
|
||||
<file>soundmodem.ico</file>
|
||||
</qresource>
|
||||
</RCC>
|
BIN
QtSoundModem.rc
BIN
QtSoundModem.rc
Binary file not shown.
546
QtSoundModem.ui
546
QtSoundModem.ui
|
@ -1,546 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>QtSoundModemClass</class>
|
||||
<widget class="QMainWindow" name="QtSoundModemClass">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>962</width>
|
||||
<height>721</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>1024</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>QtSoundModem</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="QtSoundModem.qrc">
|
||||
<normaloff>:/QtSoundModem/soundmodem.ico</normaloff>:/QtSoundModem/soundmodem.ico</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<widget class="QSpinBox" name="centerA">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>174</x>
|
||||
<y>6</y>
|
||||
<width>56</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>3000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>1500</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="modeB">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>316</x>
|
||||
<y>6</y>
|
||||
<width>145</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="WaterfallB">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>586</y>
|
||||
<width>959</width>
|
||||
<height>80</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>600</width>
|
||||
<height>80</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>5000</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>8</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Waterfall</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>6</x>
|
||||
<y>7</y>
|
||||
<width>16</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>A:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="centerB">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>468</x>
|
||||
<y>6</y>
|
||||
<width>56</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>3000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>1500</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="WaterfallA">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>80</x>
|
||||
<y>488</y>
|
||||
<width>881</width>
|
||||
<height>80</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>600</width>
|
||||
<height>80</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>5000</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>8</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Waterfall</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="modeA">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>22</x>
|
||||
<y>6</y>
|
||||
<width>145</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>690</x>
|
||||
<y>0</y>
|
||||
<width>73</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>DCD Level</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="labelB">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
<y>9</y>
|
||||
<width>16</width>
|
||||
<height>14</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>B:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSlider" name="DCDSlider">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>690</x>
|
||||
<y>18</y>
|
||||
<width>73</width>
|
||||
<height>14</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="tickPosition">
|
||||
<enum>QSlider::NoTicks</enum>
|
||||
</property>
|
||||
<property name="tickInterval">
|
||||
<number>10</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="HeaderA">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>25</x>
|
||||
<y>460</y>
|
||||
<width>1076</width>
|
||||
<height>38</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>600</width>
|
||||
<height>10</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>5000</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>8</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Waterfall</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="HeaderB">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>560</y>
|
||||
<width>1076</width>
|
||||
<height>38</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>600</width>
|
||||
<height>10</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>5000</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>8</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Waterfall</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="monWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>-6</x>
|
||||
<y>60</y>
|
||||
<width>971</width>
|
||||
<height>201</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="labelC">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>5</x>
|
||||
<y>32</y>
|
||||
<width>16</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>C:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="modeC">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>22</x>
|
||||
<y>31</y>
|
||||
<width>145</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="centerD">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>468</x>
|
||||
<y>31</y>
|
||||
<width>56</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>3000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>1500</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="modeD">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>316</x>
|
||||
<y>31</y>
|
||||
<width>145</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="labelD">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>298</x>
|
||||
<y>33</y>
|
||||
<width>16</width>
|
||||
<height>14</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>D:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="centerC">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>174</x>
|
||||
<y>31</y>
|
||||
<width>56</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>3000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>1500</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSlider" name="RXOffset">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>600</x>
|
||||
<y>18</y>
|
||||
<width>63</width>
|
||||
<height>14</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>-200</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>200</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="tickPosition">
|
||||
<enum>QSlider::NoTicks</enum>
|
||||
</property>
|
||||
<property name="tickInterval">
|
||||
<number>10</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="RXOffsetLabel">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>600</x>
|
||||
<y>2</y>
|
||||
<width>87</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>RX Offset 0</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="RXOffsetA">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>238</x>
|
||||
<y>6</y>
|
||||
<width>37</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="RXOffsetB">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>532</x>
|
||||
<y>6</y>
|
||||
<width>37</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="RXOffsetC">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>238</x>
|
||||
<y>31</y>
|
||||
<width>37</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="RXOffsetD">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>532</x>
|
||||
<y>31</y>
|
||||
<width>37</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="RXLevel">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>780</x>
|
||||
<y>17</y>
|
||||
<width>150</width>
|
||||
<height>12</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>780</x>
|
||||
<y>0</y>
|
||||
<width>91</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>8</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Rcv Level:</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::PlainText</enum>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>962</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources>
|
||||
<include location="QtSoundModem.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
|
@ -1,469 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{4EDE958E-D0AC-37B4-81F7-78313A262DCD}</ProjectGuid>
|
||||
<RootNamespace>QtSoundModem</RootNamespace>
|
||||
<Keyword>QtVS_v304</Keyword>
|
||||
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformMinVersion>10.0.19041.0</WindowsTargetPlatformMinVersion>
|
||||
<QtMsBuild Condition="'$(QtMsBuild)'=='' or !Exists('$(QtMsBuild)\qt.targets')">$(MSBuildProjectDirectory)\QtMsBuild</QtMsBuild>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>release\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>release\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>release\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>release\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>debug\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>debug\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<OutputDirectory>debug\</OutputDirectory>
|
||||
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<IntermediateDirectory>debug\</IntermediateDirectory>
|
||||
<PrimaryOutput>QtSoundModem</PrimaryOutput>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">
|
||||
<Message Importance="High" Text="QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly." />
|
||||
</Target>
|
||||
<ImportGroup Label="ExtensionSettings" />
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')">
|
||||
<Import Project="$(QtMsBuild)\qt_defaults.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\\</IntDir>
|
||||
<TargetName>QtSoundModem</TargetName>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtInstall>5.14.2</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
|
||||
<QtInstall>msvc 2017 5.1464</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtInstall>5.14.2</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
|
||||
<QtInstall>5.14.2</QtInstall>
|
||||
<QtModules>core;network;gui;widgets;serialport</QtModules>
|
||||
</PropertyGroup>
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.props')">
|
||||
<Import Project="$(QtMsBuild)\qt.props" />
|
||||
</ImportGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>rsid;.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;release;/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>$(OutDir)QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>rsid;.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;release;/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>$(OutDir)QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;NDEBUG;QT_NO_DEBUG;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;debug;/include;rsid;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<OutputFile>$(OutDir)\QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>.\GeneratedFiles\$(ConfigurationName);.\GeneratedFiles;.;debug;/include;rsid;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>-Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<BrowseInformation>false</BrowseInformation>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4577;4467;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessToFile>false</PreprocessToFile>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libfftw3f-64-3.lib;shell32.lib;setupapi.lib;WS2_32.Lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalOptions>"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)</AdditionalOptions>
|
||||
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<OutputFile>$(OutDir)\QtSoundModem.exe</OutputFile>
|
||||
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Midl>
|
||||
<DefaultCharType>Unsigned</DefaultCharType>
|
||||
<EnableErrorChecks>None</EnableErrorChecks>
|
||||
<WarningLevel>0</WarningLevel>
|
||||
</Midl>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_WIDGETS_LIB;QT_GUI_LIB;QT_NETWORK_LIB;QT_SERIALPORT_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<QtMoc>
|
||||
<CompilerFlavor>msvc</CompilerFlavor>
|
||||
<Include>./$(Configuration)/moc_predefs.h</Include>
|
||||
<ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription>
|
||||
<DynamicSource>output</DynamicSource>
|
||||
<QtMocDir>$(IntDir)</QtMocDir>
|
||||
<QtMocFileName>moc_%(Filename).cpp</QtMocFileName>
|
||||
</QtMoc>
|
||||
<QtRcc>
|
||||
<InitFuncName>QtSoundModem</InitFuncName>
|
||||
<Compression>default</Compression>
|
||||
<ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription>
|
||||
<QtRccDir>$(IntDir)</QtRccDir>
|
||||
<QtRccFileName>qrc_%(Filename).cpp</QtRccFileName>
|
||||
</QtRcc>
|
||||
<QtUic>
|
||||
<ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription>
|
||||
<QtUicDir>$(IntDir)</QtUicDir>
|
||||
<QtUicFileName>ui_%(Filename).h</QtUicFileName>
|
||||
</QtUic>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="ARDOPC.c" />
|
||||
<ClCompile Include="BusyDetect.c" />
|
||||
<ClCompile Include="Config.cpp" />
|
||||
<ClCompile Include="dw9600.c" />
|
||||
<ClCompile Include="hid.c" />
|
||||
<ClCompile Include="il2p.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Modulate.c" />
|
||||
<ClCompile Include="QtSoundModem.cpp" />
|
||||
<ClCompile Include="rsid.c" />
|
||||
<ClCompile Include="RSUnit.c" />
|
||||
<ClCompile Include="SMMain.c" />
|
||||
<ClCompile Include="ShowFilter.cpp" />
|
||||
<ClCompile Include="SoundInput.c" />
|
||||
<ClCompile Include="UZ7HOUtils.c" />
|
||||
<ClCompile Include="ardopSampleArrays.c" />
|
||||
<ClCompile Include="ax25.c" />
|
||||
<ClCompile Include="ax25_agw.c" />
|
||||
<ClCompile Include="ax25_demod.c" />
|
||||
<ClCompile Include="ax25_fec.c" />
|
||||
<ClCompile Include="ax25_l2.c" />
|
||||
<ClCompile Include="ax25_mod.c" />
|
||||
<ClCompile Include="berlekamp.c" />
|
||||
<ClCompile Include="galois.c" />
|
||||
<ClCompile Include="kiss_mode.c" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="ofdm.c" />
|
||||
<ClCompile Include="pktARDOP.c" />
|
||||
<ClCompile Include="rs.c" />
|
||||
<ClCompile Include="sm_main.c" />
|
||||
<ClCompile Include="tcpCode.cpp" />
|
||||
<ClCompile Include="Waveout.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="QtSoundModem.h">
|
||||
</QtMoc>
|
||||
<ClInclude Include="UZ7HOStuff.h" />
|
||||
<QtMoc Include="tcpCode.h">
|
||||
</QtMoc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="debug\moc_predefs.h.cbt">
|
||||
<FileType>Document</FileType>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs)</AdditionalInputs>
|
||||
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs)</AdditionalInputs>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h</Command>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h</Command>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generate moc_predefs.h</Message>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Generate moc_predefs.h</Message>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">debug\moc_predefs.h;%(Outputs)</Outputs>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">debug\moc_predefs.h;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtUic Include="ModemDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="QtSoundModem.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="calibrateDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="devicesDialog.ui">
|
||||
</QtUic>
|
||||
<QtUic Include="filterWindow.ui">
|
||||
</QtUic>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtRcc Include="QtSoundModem.qrc">
|
||||
</QtRcc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include=".\QtSoundModem_resource.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="QtSoundModem.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.targets')">
|
||||
<Import Project="$(QtMsBuild)\qt.targets" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="ExtensionTargets" />
|
||||
</Project>
|
|
@ -1,34 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LocalDebuggerWorkingDirectory>C:\DevProgs\BPQ32\SMTest</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerCommandArguments>
|
||||
</LocalDebuggerCommandArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerWorkingDirectory>c:\devprogs\bpq32\SMSAT2</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerCommandArguments>< d:\samples.wav</LocalDebuggerCommandArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LocalDebuggerWorkingDirectory>.\debug</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerWorkingDirectory>C:\DevProgs\BPQ32\SMSat</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtLastBackgroundBuild>2023-08-21T20:12:53.1523329Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2022-03-11T19:38:31.5906689Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtLastBackgroundBuild>2023-08-18T07:29:42.4175478Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2022-03-11T19:38:33.3845083Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -1,34 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LocalDebuggerWorkingDirectory>C:\Devprogs\bpq32\SMSat2</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerCommandArguments>
|
||||
</LocalDebuggerCommandArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerWorkingDirectory>c:\devprogs\bpq32\SMSAT2</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerCommandArguments>< d:\samples.wav</LocalDebuggerCommandArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LocalDebuggerWorkingDirectory>C:\DevProgs\BPQ32\SMSat</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerWorkingDirectory>C:\DevProgs\BPQ32\SMSat</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtLastBackgroundBuild>2022-12-30T15:55:55.0433562Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2022-03-11T19:38:31.5906689Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtLastBackgroundBuild>2022-12-30T15:55:55.2283725Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2022-03-11T19:38:33.3845083Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -1,190 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Form Files">
|
||||
<UniqueIdentifier>{99349809-55BA-4b9d-BF79-8FDBB0286EB3}</UniqueIdentifier>
|
||||
<Extensions>ui</Extensions>
|
||||
<ParseFiles>false</ParseFiles>
|
||||
</Filter>
|
||||
<Filter Include="Form Files">
|
||||
<UniqueIdentifier>{99349809-55BA-4b9d-BF79-8FDBB0286EB3}</UniqueIdentifier>
|
||||
<Extensions>ui</Extensions>
|
||||
<ParseFiles>false</ParseFiles>
|
||||
</Filter>
|
||||
<Filter Include="Generated Files">
|
||||
<UniqueIdentifier>{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;moc;h;def;odl;idl;res;</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Generated Files">
|
||||
<UniqueIdentifier>{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;moc;h;def;odl;idl;res;</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E}</UniqueIdentifier>
|
||||
<Extensions>qrc;*</Extensions>
|
||||
<ParseFiles>false</ParseFiles>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E}</UniqueIdentifier>
|
||||
<Extensions>qrc;*</Extensions>
|
||||
<ParseFiles>false</ParseFiles>
|
||||
</Filter>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="ARDOPC.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="BusyDetect.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Config.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Modulate.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="QtSoundModem.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="RSUnit.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SMMain.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ShowFilter.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SoundInput.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="UZ7HOUtils.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ardopSampleArrays.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ax25.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ax25_agw.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ax25_demod.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ax25_fec.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ax25_l2.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ax25_mod.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="berlekamp.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="galois.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="kiss_mode.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ofdm.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="pktARDOP.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="rs.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="sm_main.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="tcpCode.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Waveout.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="hid.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="rsid.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="il2p.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="dw9600.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="QtSoundModem.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</QtMoc>
|
||||
<ClInclude Include="UZ7HOStuff.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<QtMoc Include="tcpCode.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</QtMoc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="debug\moc_predefs.h.cbt">
|
||||
<Filter>Generated Files</Filter>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtUic Include="ModemDialog.ui">
|
||||
<Filter>Form Files</Filter>
|
||||
</QtUic>
|
||||
<QtUic Include="QtSoundModem.ui">
|
||||
<Filter>Form Files</Filter>
|
||||
</QtUic>
|
||||
<QtUic Include="calibrateDialog.ui">
|
||||
<Filter>Form Files</Filter>
|
||||
</QtUic>
|
||||
<QtUic Include="devicesDialog.ui">
|
||||
<Filter>Form Files</Filter>
|
||||
</QtUic>
|
||||
<QtUic Include="filterWindow.ui">
|
||||
<Filter>Form Files</Filter>
|
||||
</QtUic>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtRcc Include="QtSoundModem.qrc">
|
||||
<Filter>Resource Files</Filter>
|
||||
</QtRcc>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include=".\QtSoundModem_resource.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="QtSoundModem.ico">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,34 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LocalDebuggerWorkingDirectory>C:\DevProgs\BPQ32\SMTest</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerCommandArguments>
|
||||
</LocalDebuggerCommandArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerWorkingDirectory>c:\devprogs\bpq32\SMSAT2</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerCommandArguments>< d:\samples.wav</LocalDebuggerCommandArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LocalDebuggerWorkingDirectory>.\debug</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerWorkingDirectory>C:\DevProgs\BPQ32\SMSat</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtLastBackgroundBuild>2023-09-26T11:58:59.9128543Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2023-09-26T11:59:00.0378577Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtLastBackgroundBuild>2023-09-26T11:59:00.1388610Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2023-09-26T11:59:00.2228656Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -1,175 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{B12702AD-ABFB-343A-A199-8E24837244A3}</ProjectGuid>
|
||||
<Keyword>QtVS_v301</Keyword>
|
||||
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<PropertyGroup Condition="'$(QtMsBuild)'=='' or !Exists('$(QtMsBuild)\qt.targets')">
|
||||
<QtMsBuild>$(MSBuildProjectDirectory)\QtMsBuild</QtMsBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\Copy\</OutDir>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\Copy\</IntDir>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\Copy\</OutDir>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IntDir>$(SolutionDir)Intermed\$(Platform)\$(Configuration)\Copy\</IntDir>
|
||||
</PropertyGroup>
|
||||
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">
|
||||
<Message Importance="High" Text="QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly." />
|
||||
</Target>
|
||||
<ImportGroup Label="ExtensionSettings" />
|
||||
<ImportGroup Label="Shared" />
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')">
|
||||
<Import Project="$(QtMsBuild)\qt_defaults.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtInstall>msvc2017</QtInstall>
|
||||
<QtModules>core;gui;network;widgets</QtModules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtInstall>msvc2017</QtInstall>
|
||||
<QtModules>core;gui;network;widgets</QtModules>
|
||||
</PropertyGroup>
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.props')">
|
||||
<Import Project="$(QtMsBuild)\qt.props" />
|
||||
</ImportGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OutputFile>$(OutDir)\$(ProjectName).exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;setupapi.lib;WS2_32.Lib;$(QtDir)\lib\Qt5SerialPort.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OutputFile>$(OutDir)\$(ProjectName).exe</OutputFile>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
<AdditionalDependencies>libfftw3f-3.lib;setupapi.lib;WS2_32.Lib;$(QtDir)\lib\Qt5SerialPort.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="ARDOPC.c" />
|
||||
<ClCompile Include="ardopSampleArrays.c" />
|
||||
<ClCompile Include="ax25.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ax25_agw.c" />
|
||||
<ClCompile Include="ax25_demod.c" />
|
||||
<ClCompile Include="ax25_fec.c" />
|
||||
<ClCompile Include="ax25_l2.c" />
|
||||
<ClCompile Include="ax25_mod.c" />
|
||||
<ClCompile Include="berlekamp.c" />
|
||||
<ClCompile Include="BusyDetect.c" />
|
||||
<ClCompile Include="Config.cpp">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="galois.c" />
|
||||
<ClCompile Include="hid.c" />
|
||||
<ClCompile Include="kiss_mode.c" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="Modulate.c" />
|
||||
<ClCompile Include="ofdm.c" />
|
||||
<ClCompile Include="pktARDOP.c" />
|
||||
<ClCompile Include="QtSoundModem.cpp">
|
||||
<DynamicSource Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">input</DynamicSource>
|
||||
<QtMocFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(Filename).moc</QtMocFileName>
|
||||
<DynamicSource Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">input</DynamicSource>
|
||||
<QtMocFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(Filename).moc</QtMocFileName>
|
||||
</ClCompile>
|
||||
<ClCompile Include="rs.c" />
|
||||
<ClCompile Include="RSUnit.c" />
|
||||
<ClCompile Include="ShowFilter.cpp" />
|
||||
<ClCompile Include="SMMain.c" />
|
||||
<ClCompile Include="sm_main.c" />
|
||||
<ClCompile Include="SoundInput.c" />
|
||||
<ClCompile Include="tcpCode.cpp" />
|
||||
<ClCompile Include="UZ7HOUtils.c" />
|
||||
<ClCompile Include="Waveout.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="QtSoundModem.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtUic Include="calibrateDialog.ui" />
|
||||
<QtUic Include="devicesDialog.ui">
|
||||
<SubType>Designer</SubType>
|
||||
</QtUic>
|
||||
<QtUic Include="filterWindow.ui" />
|
||||
<QtUic Include="ModemDialog.ui">
|
||||
<SubType>Designer</SubType>
|
||||
</QtUic>
|
||||
<QtUic Include="QtSoundModem.ui">
|
||||
<SubType>Designer</SubType>
|
||||
</QtUic>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtRcc Include="QtSoundModem.qrc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="tcpCode.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
<ClInclude Include="resource1.h" />
|
||||
<ClInclude Include="UZ7HOStuff.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="QtSoundModem.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="icon1.ico" />
|
||||
<Image Include="soundmodem.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Condition="Exists('$(QtMsBuild)\qt.targets')">
|
||||
<Import Project="$(QtMsBuild)\qt.targets" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -1,37 +0,0 @@
|
|||
#include <windows.h>
|
||||
|
||||
IDI_ICON1 ICON DISCARDABLE "SoundModem.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 0,0,0,0
|
||||
PRODUCTVERSION 0,0,0,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS VS_FF_DEBUG
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "\0"
|
||||
VALUE "FileVersion", "0.0.0.0\0"
|
||||
VALUE "LegalCopyright", "\0"
|
||||
VALUE "OriginalFilename", "QtSoundModem.exe\0"
|
||||
VALUE "ProductName", "QtSoundModem\0"
|
||||
VALUE "ProductVersion", "0.0.0.0\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x0409, 1200
|
||||
END
|
||||
END
|
||||
/* End of Version info */
|
||||
|
768
RSUnit.c
768
RSUnit.c
|
@ -1,768 +0,0 @@
|
|||
/*
|
||||
Copyright (C) 2019-2020 Andrei Kopanchuk UZ7HO
|
||||
|
||||
This file is part of QtSoundModem
|
||||
|
||||
QtSoundModem is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
QtSoundModem is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QtSoundModem. If not, see http://www.gnu.org/licenses
|
||||
|
||||
*/
|
||||
|
||||
// UZ7HO Soundmodem Port by John Wiseman G8BPQ
|
||||
|
||||
#include "UZ7HOStuff.h"
|
||||
|
||||
/*{***********************************************************************
|
||||
* *
|
||||
* RSUnit.pas *
|
||||
* *
|
||||
* (C) Copyright 1990-1999 Bruce K. Christensen *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************}
|
||||
|
||||
{ This program is an encoder/decoder for Reed-Solomon codes. Encoding
|
||||
is in systematic form, decoding via the Berlekamp iterative algorithm.
|
||||
In the present form , the constants mm, nn, tt, and kk=nn-2tt must be
|
||||
specified (the double letters are used simply to avoid clashes with
|
||||
other n,k,t used in other programs into which this was incorporated!)
|
||||
Also, the irreducible polynomial used to generate GF(2**mm) must also
|
||||
be entered -- these can be found in Lin and Costello, and also Clark
|
||||
and Cain.
|
||||
|
||||
The representation of the elements of GF(2**m) is either in index
|
||||
form, where the number is the power of the primitive element alpha,
|
||||
which is convenient for multiplication (add the powers
|
||||
modulo 2**m-1) or in polynomial form, where the bits represent the
|
||||
coefficients of the polynomial representation of the number, which
|
||||
is the most convenient form for addition. The two forms are swapped
|
||||
between via lookup tables. This leads to fairly messy looking
|
||||
expressions, but unfortunately, there is no easy alternative when
|
||||
working with Galois arithmetic.
|
||||
|
||||
The code is not written in the most elegant way, but to the best of
|
||||
my knowledge, (no absolute guarantees!), it works. However, when
|
||||
including it into a simulation program, you may want to do some
|
||||
conversion of global variables (used here because I am lazy!) to
|
||||
local variables where appropriate, and passing parameters (eg array
|
||||
addresses) to the functions may be a sensible move to reduce the
|
||||
number of global variables and thus decrease the chance of a bug
|
||||
being introduced.
|
||||
|
||||
This program does not handle erasures at present, but should not be
|
||||
hard to adapt to do this, as it is just an adjustment to the
|
||||
Berlekamp-Massey algorithm. It also does not attempt to decode past
|
||||
the BCH bound.
|
||||
-- see Blahut "Theory and practiceof error control codes"
|
||||
for how to do this.
|
||||
|
||||
Simon Rockliff, University of Adelaide 21/9/89 }
|
||||
*/
|
||||
|
||||
|
||||
#define mm 8 // { RS code over GF(2**mm) - change to suit }
|
||||
#define nn (1 << mm) - 1 // { nn=2**mm -1 length of codeword }
|
||||
#define MaxErrors 4 // { number of errors that can be corrected }
|
||||
#define np 2 * MaxErrors // { number of parity symbols }
|
||||
#define kk nn - np //{ data symbols, kk = nn-2*MaxErrors }
|
||||
|
||||
/*
|
||||
short = short ;
|
||||
|
||||
TReedSolomon = Class(TComponent)
|
||||
Procedure generate_gf ;
|
||||
Procedure gen_poly ;
|
||||
|
||||
Procedure SetPrimitive(Var PP ;
|
||||
nIdx : Integer ) ;
|
||||
|
||||
Public
|
||||
Procedure InitBuffers ;
|
||||
|
||||
Procedure EncodeRS(Var xData ;
|
||||
Var xEncoded ) ;
|
||||
Function DecodeRS(Var xData ;
|
||||
Var xDecoded ) : Integer ;
|
||||
|
||||
Constructor Create(AOwner : TComponent) ; Reintroduce ;
|
||||
Destructor Destroy ; Reintroduce ;
|
||||
End ;
|
||||
*/
|
||||
// specify irreducible polynomial coeffts }
|
||||
|
||||
Byte PP[17];
|
||||
|
||||
Byte CodeWord[256];
|
||||
short Original_Recd[256];
|
||||
|
||||
short bb[np];
|
||||
short data[256]; //
|
||||
short recd[nn];
|
||||
|
||||
short alpha_to[nn + 1];
|
||||
short index_of[nn + 1];
|
||||
short gg[np + 1];
|
||||
|
||||
string cDuring;
|
||||
string cName;
|
||||
|
||||
|
||||
//aPPType = Array[2..16] of Pointer;
|
||||
|
||||
void * pPP[17];
|
||||
|
||||
Byte PP2[] = { 1 , 1 , 1 };
|
||||
|
||||
// { 1 + x + x^3 }
|
||||
|
||||
Byte PP3[] = { 1 , 1 , 0 , 1 };
|
||||
|
||||
// { 1 + x + x^4 }
|
||||
Byte PP4[] = { 1 , 1 , 0 , 0 , 1 };
|
||||
|
||||
// { 1 + x^2 + x^5 }
|
||||
Byte PP5[] = { 1 , 0 , 1 , 0 , 0 , 1 };
|
||||
|
||||
// { 1 + x + x^6 }
|
||||
Byte PP6[] = { 1 , 1 , 0 , 0 , 0 , 0 , 1 };
|
||||
|
||||
// { 1 + x^3 + x^7 }
|
||||
Byte PP7[] = { 1, 0, 0, 1, 0, 0, 0, 1 };
|
||||
|
||||
// { 1+x^2+x^3+x^4+x^8 }
|
||||
Byte PP8[] = { 1 , 0 , 1 , 1 , 1 , 0 , 0 , 0 , 1 };
|
||||
|
||||
// { 1+x^4+x^9 }
|
||||
Byte PP9[] = { 1, 0, 0, 0, 1, 0, 0, 0, 0, 1 };
|
||||
|
||||
// { 1+x^3+x^10 }
|
||||
Byte PP10[] = { 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1 };
|
||||
|
||||
// { 1+x^2+x^11 }
|
||||
Byte PP11[] = { 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
|
||||
|
||||
// { 1+x+x^4+x^6+x^12 }
|
||||
Byte PP12[] = { 1, 1, 0, 0, 1, 0, 1, 0, 0,
|
||||
0, 0, 0, 1 };
|
||||
|
||||
// { 1+x+x^3+x^4+x^13 }
|
||||
Byte PP13[] = { 1, 1, 0, 1, 1, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 1 };
|
||||
|
||||
// { 1+x+x^6+x^10+x^14 }
|
||||
Byte PP14[] = { 1, 1, 0, 0, 0, 0, 1, 0, 0,
|
||||
0, 1, 0, 0, 0, 1 };
|
||||
|
||||
// { 1+x+x^15 }
|
||||
Byte PP15[] = { 1, 1, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 1 };
|
||||
// { 1+x+x^3+x^12+x^16 }
|
||||
Byte PP16[] = { 1, 1, 0, 1, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 1, 0, 0, 0, 1 };
|
||||
|
||||
|
||||
void InitBuffers();
|
||||
|
||||
/***********************************************************************
|
||||
* *
|
||||
* TReedSolomon.SetPrimitive *
|
||||
* *
|
||||
* Primitive polynomials - see Lin & Costello, Appendix A, *
|
||||
* and Lee & Messerschmitt, p. 453. *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************/
|
||||
|
||||
void SetPrimitive(void* PP, int nIdx)
|
||||
{
|
||||
move(pPP[nIdx], PP, (nIdx + 1));
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
* *
|
||||
* Generate_GF *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************/
|
||||
|
||||
void Generate_gf()
|
||||
{
|
||||
/* generate GF(2**mm) from the irreducible polynomial p(X)
|
||||
in pp[0]..pp[mm]
|
||||
|
||||
lookup tables:
|
||||
index->polynomial form alpha_to[] contains j=alpha**i ;
|
||||
polynomial form -> index form index_of[j=alpha**i] = i
|
||||
alpha = 2 is the primitive element of GF(2**mm)
|
||||
*/
|
||||
|
||||
int i;
|
||||
short mask;
|
||||
|
||||
SetPrimitive(PP, mm);
|
||||
|
||||
mask = 1;
|
||||
alpha_to[mm] = 0;
|
||||
for (i = 0; i < mm; i++)
|
||||
{
|
||||
alpha_to[i] = mask;
|
||||
index_of[alpha_to[i]] = i;
|
||||
|
||||
if (PP[i] != 0)
|
||||
alpha_to[mm] = alpha_to[mm] ^ mask;
|
||||
mask = mask << 1;
|
||||
}
|
||||
|
||||
|
||||
index_of[alpha_to[mm]] = mm;
|
||||
mask = mask >> 1;
|
||||
|
||||
for (i = mm + 1; i < nn; i++)
|
||||
{
|
||||
if (alpha_to[i - 1] >= mask)
|
||||
alpha_to[i] = alpha_to[mm] ^ ((alpha_to[i - 1] ^ mask) << 1);
|
||||
else
|
||||
alpha_to[i] = alpha_to[i - 1] << 1;
|
||||
|
||||
index_of[alpha_to[i]] = i;
|
||||
}
|
||||
index_of[0] = -1;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* *
|
||||
* Gen_Poly *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************/
|
||||
|
||||
void gen_poly()
|
||||
{
|
||||
/* Obtain the generator polynomial of the tt-error correcting, length
|
||||
nn=(2**mm -1) Reed Solomon code from the product of
|
||||
(X+alpha**i), i=1..2*tt
|
||||
*/
|
||||
|
||||
short i, j;
|
||||
|
||||
gg[0] = 2; //{ primitive element alpha = 2 for GF(2**mm) }
|
||||
gg[1] = 1; //{ g(x) = (X+alpha) initially }
|
||||
|
||||
i = nn;
|
||||
j = kk;
|
||||
|
||||
j = i - j;
|
||||
|
||||
for (i = 2; i <= 8; i++)
|
||||
{
|
||||
gg[i] = 1;
|
||||
|
||||
for (j = (i - 1); j > 0; j--)
|
||||
{
|
||||
if (gg[j] != 0)
|
||||
gg[j] = gg[j - 1] ^ alpha_to[(index_of[gg[j]] + i) % nn];
|
||||
else
|
||||
gg[j] = gg[j - 1];
|
||||
}
|
||||
|
||||
// { gg[0] can never be zero }
|
||||
|
||||
gg[0] = alpha_to[(index_of[gg[0]] + i) % nn];
|
||||
}
|
||||
|
||||
// { Convert gg[] to index form for quicker encoding. }
|
||||
|
||||
for (i = 0; i <= np; i++)
|
||||
gg[i] = index_of[gg[i]];
|
||||
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* *
|
||||
* TxBase.Create *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************/
|
||||
|
||||
void RsCreate()
|
||||
{
|
||||
InitBuffers();
|
||||
|
||||
//{ generate the Galois Field GF(2**mm) }
|
||||
Generate_gf();
|
||||
gen_poly();
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* *
|
||||
* TReedSolomon.Destroy *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
************************************************************************/
|
||||
|
||||
/***********************************************************************
|
||||
* *
|
||||
* TReedSolomon.EncodeRS *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************/
|
||||
|
||||
void EncodeRS(Byte * xData, Byte * xEncoded)
|
||||
{
|
||||
|
||||
/* take the string of symbols in data[i], i=0..(k-1) and encode
|
||||
systematically to produce 2*tt parity symbols in bb[0]..bb[2*tt-1]
|
||||
|
||||
data[] is input and bb[] is output in polynomial form. Encoding is
|
||||
done by using a feedback shift register with appropriate connections
|
||||
specified by the elements of gg[], which was generated above.
|
||||
|
||||
Codeword is c(X) = data(X)*X**(np)+ b(X) }
|
||||
*/
|
||||
|
||||
// Type
|
||||
// bArrType = Array[0..16383] of Byte;
|
||||
|
||||
int nI, i, j;
|
||||
|
||||
short feedback;
|
||||
|
||||
// absolute means variables share the same data
|
||||
|
||||
//axData : bArrType absolute xData ;
|
||||
|
||||
|
||||
memset(bb, 0, sizeof(bb));
|
||||
|
||||
for (nI = 0; nI < nn; nI++)
|
||||
data[nI] = xData[nI];
|
||||
|
||||
for (i = (kk - 1); i >= 0; i--)
|
||||
{
|
||||
feedback = index_of[data[i] ^ bb[np - 1]];
|
||||
|
||||
if (feedback != -1)
|
||||
{
|
||||
for (j = (np - 1); j > 0; j--)
|
||||
{
|
||||
if (gg[j] != -1)
|
||||
bb[j] = bb[j - 1] ^ alpha_to[(gg[j] + feedback) % nn];
|
||||
else
|
||||
bb[j] = bb[j - 1];
|
||||
}
|
||||
bb[0] = alpha_to[(gg[0] + feedback) % nn];
|
||||
}
|
||||
else
|
||||
{
|
||||
for (j = (np - 1); j > 0; j--)
|
||||
bb[j] = bb[j - 1];
|
||||
bb[0] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//{ put the transmitted codeword, made up of data }
|
||||
//{ plus parity, in CodeWord }
|
||||
|
||||
for (nI = 0; nI < np; nI++)
|
||||
recd[nI] = bb[nI];
|
||||
|
||||
for (nI = 0; nI < kk; nI++)
|
||||
recd[nI + np] = data[nI];
|
||||
|
||||
for (nI = 0; nI < nn; nI++)
|
||||
CodeWord[nI] = recd[nI];
|
||||
|
||||
move(CodeWord, xEncoded, nn);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* *
|
||||
* DecodeRS *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************}
|
||||
|
||||
Function TReedSolomon.DecodeRS(Var xData ;
|
||||
Var xDecoded ) : Integer ;
|
||||
{ assume we have received bits grouped into mm-bit symbols in recd[i],
|
||||
i=0..(nn-1), and recd[i] is index form (ie as powers of alpha).
|
||||
We first compute the 2*tt syndromes by substituting alpha**i into
|
||||
rec(X) and evaluating, storing the syndromes in s[i], i=1..2tt
|
||||
(leave s[0] zero). Then we use the Berlekamp iteration to find the
|
||||
error location polynomial elp[i]. If the degree of the elp is >tt,
|
||||
we cannot correct all the errors and hence just put out the information
|
||||
symbols uncorrected. If the degree of elp is <=tt, we substitute
|
||||
alpha**i , i=1..n into the elp to get the roots, hence the inverse
|
||||
roots, the error location numbers. If the number of errors located
|
||||
does not equal the degree of the elp, we have more than tt errors and
|
||||
cannot correct them. Otherwise, we then solve for the error value at
|
||||
the error location and correct the error. The procedure is that found
|
||||
in Lin and Costello. for the cases where the number of errors is known
|
||||
to be too large to correct, the information symbols as received are
|
||||
output (the advantage of systematic encoding is that hopefully some
|
||||
of the information symbols will be okay and that if we are in luck, the
|
||||
errors are in the parity part of the transmitted codeword). Of course,
|
||||
these insoluble cases can be returned as error flags to the calling
|
||||
routine if desired. */
|
||||
|
||||
|
||||
int DecodeRS(Byte * xData, Byte * xDecoded)
|
||||
{
|
||||
UNUSED(xDecoded);
|
||||
|
||||
// string cStr;
|
||||
int nI; // , nJ, nK;
|
||||
|
||||
int i, j;
|
||||
// short u, q;
|
||||
|
||||
// short elp[np + 2][np];
|
||||
// short d[np + 2];
|
||||
// short l[np + 2];
|
||||
// short u_lu[np + 2];
|
||||
short s[np + 1];
|
||||
|
||||
// short count;
|
||||
short syn_error;
|
||||
|
||||
// short root[MaxErrors];
|
||||
// short loc[MaxErrors];
|
||||
// short z[MaxErrors];
|
||||
// short err[nn];
|
||||
// short reg[MaxErrors + 1];
|
||||
|
||||
for (nI = 0; nI < nn; nI++)
|
||||
recd[nI] = xData[nI];
|
||||
|
||||
for (i = 0; i < nn; i++)
|
||||
recd[i] = index_of[recd[i]]; // { put recd[i] into index form }
|
||||
|
||||
// count = 0;
|
||||
syn_error = 0;
|
||||
|
||||
// { first form the syndromes }
|
||||
|
||||
for (i = 0; i < np; i++)
|
||||
{
|
||||
s[i] = 0;
|
||||
|
||||
for (j = 0; j < nn; j++)
|
||||
{
|
||||
if (recd[j] != -1)
|
||||
// { recd[j] in index form }
|
||||
{
|
||||
s[i] = s[i] ^ alpha_to[(recd[j] + i * j) % nn];
|
||||
}
|
||||
}
|
||||
|
||||
//{ convert syndrome from polynomial form to index form }
|
||||
if (s[i] != 0)
|
||||
{
|
||||
syn_error = 1; // { set flag if non-zero syndrome => error }
|
||||
}
|
||||
s[i] = index_of[s[i]];
|
||||
}
|
||||
|
||||
if (syn_error != 0) // { if errors, try and correct }
|
||||
{
|
||||
/*
|
||||
{ Compute the error location polynomial via the Berlekamp }
|
||||
{ iterative algorithm, following the terminology of Lin and }
|
||||
{ Costello: d[u] is the 'mu'th discrepancy, where u = 'mu' + 1 }
|
||||
{ and 'mu' (the Greek letter!) is the step number ranging from }
|
||||
{ -1 to 2 * tt(see L&C), l[u] is the degree of the elp at that }
|
||||
{ step, and u_l[u] is the difference between the step number }
|
||||
{and the degree of the elp. }
|
||||
|
||||
{ Initialize table entries }
|
||||
d[0] : = 0; { index form }
|
||||
d[1] : = s[1]; { index form }
|
||||
elp[0][0] : = 0; { index form }
|
||||
elp[1][0] : = 1; { polynomial form }
|
||||
|
||||
for i : = 1 to(np - 1) do
|
||||
Begin
|
||||
elp[0][i] : = -1; { index form }
|
||||
elp[1][i] : = 0; { polynomial form }
|
||||
End;
|
||||
|
||||
l[0] : = 0;
|
||||
l[1] : = 0;
|
||||
u_lu[0] : = -1;
|
||||
u_lu[1] : = 0;
|
||||
u: = 0;
|
||||
|
||||
While((u < np) and (l[u + 1] <= MaxErrors)) do
|
||||
Begin
|
||||
Inc(u);
|
||||
|
||||
If(d[u] = -1) then
|
||||
Begin
|
||||
l[u + 1] : = l[u];
|
||||
|
||||
for i : = 0 to l[u] do
|
||||
Begin
|
||||
elp[u + 1][i] : = elp[u][i];
|
||||
elp[u][i] : = index_of[elp[u][i]];
|
||||
End;
|
||||
End
|
||||
Else
|
||||
{ search for words with greatest u_lu[q] for which d[q] != 0 }
|
||||
Begin
|
||||
q : = u - 1;
|
||||
|
||||
While((d[q] = -1) and (q > 0)) do
|
||||
Dec(q);
|
||||
|
||||
{ have found first non - zero d[q] }
|
||||
If(q > 0) then
|
||||
Begin
|
||||
j : = q;
|
||||
|
||||
While j > 0 do
|
||||
Begin
|
||||
Dec(j);
|
||||
If((d[j] != -1) and (u_lu[q] < u_lu[j])) then
|
||||
q : = j;
|
||||
End;
|
||||
End;
|
||||
|
||||
{ have now found q such that d[u] != 0 and u_lu[q] is maximum }
|
||||
{ store degree of new elp polynomial }
|
||||
If(l[u] > l[q] + u - q) then
|
||||
l[u + 1] : = l[u]
|
||||
Else
|
||||
l[u + 1] : = l[q] + u - q;
|
||||
|
||||
{ form new elp(x) }
|
||||
for i : = 0 to(np - 1) do
|
||||
elp[u + 1][i] : = 0;
|
||||
|
||||
for i : = 0 to l[q] do
|
||||
If(elp[q][i] != -1) then
|
||||
elp[u + 1][i + u - q] : = alpha_to[(d[u] + nn - d[q] + elp[q][i]) mod nn];
|
||||
|
||||
for i : = 0 to l[u] do
|
||||
Begin
|
||||
elp[u + 1][i] : = elp[u + 1][i] ^ elp[u][i];
|
||||
{ convert old elp value to index }
|
||||
elp[u][i] : = index_of[elp[u][i]];
|
||||
End;
|
||||
End;
|
||||
|
||||
u_lu[u + 1] : = u - l[u + 1];
|
||||
|
||||
{ form(u + 1)th discrepancy }
|
||||
If u < np then{ no discrepancy computed on last iteration }
|
||||
Begin
|
||||
If(s[u + 1] != -1) then
|
||||
d[u + 1] : = alpha_to[s[u + 1]]
|
||||
Else
|
||||
d[u + 1] : = 0;
|
||||
|
||||
for i : = 1 to l[u + 1] do
|
||||
If((s[u + 1 - i] != -1) and (elp[u + 1][i] != 0)) then
|
||||
d[u + 1] : = d[u + 1] ^ alpha_to[(s[u + 1 - i] + index_of[elp[u + 1][i]]) mod nn];
|
||||
{ put d[u + 1] into index form }
|
||||
d[u + 1] : = index_of[d[u + 1]];
|
||||
End;
|
||||
End; { end While }
|
||||
|
||||
Inc(u);
|
||||
If l[u] <= MaxErrors then{ can correct error }
|
||||
Begin
|
||||
{ put elp into index form }
|
||||
for i : = 0 to l[u]do
|
||||
elp[u][i] : = index_of[elp[u][i]];
|
||||
|
||||
{ find roots of the error location polynomial }
|
||||
for i : = 1 to l[u] do
|
||||
Begin
|
||||
reg[i] : = elp[u][i];
|
||||
End;
|
||||
|
||||
for i : = 1 to nn do
|
||||
Begin
|
||||
q : = 1;
|
||||
|
||||
for j : = 1 to l[u] do
|
||||
If reg[j] != -1 then
|
||||
Begin
|
||||
reg[j] : = (reg[j] + j) mod nn;
|
||||
q: = q ^ alpha_to[reg[j]];
|
||||
End;
|
||||
|
||||
If q = 0 then{ store root and error location number indices }
|
||||
Begin
|
||||
root[count] : = i;
|
||||
loc[count] : = nn - i;
|
||||
Inc(count);
|
||||
End;
|
||||
End;
|
||||
|
||||
If count = l[u] then{ no.roots = degree of elp hence <= tt errors }
|
||||
Begin
|
||||
Result : = count;
|
||||
|
||||
{ form polynomial z(x) }
|
||||
for i : = 1 to l[u] do { Z[0] = 1 always - do not need }
|
||||
Begin
|
||||
If((s[i] != -1) and (elp[u][i] != -1)) then
|
||||
z[i] : = alpha_to[s[i]] ^ alpha_to[elp[u][i]]
|
||||
Else
|
||||
If((s[i] != -1) and (elp[u][i] = -1)) then
|
||||
z[i] : = alpha_to[s[i]]
|
||||
Else
|
||||
If((s[i] = -1) and (elp[u][i] != -1)) then
|
||||
z[i] : = alpha_to[elp[u][i]]
|
||||
Else
|
||||
z[i] : = 0;
|
||||
|
||||
for j : = 1 to(i - 1) do
|
||||
if ((s[j] != -1) and (elp[u][i - j] != -1)) then
|
||||
z[i] : = z[i] ^ alpha_to[(elp[u][i - j] + s[j]) mod nn];
|
||||
|
||||
{ put into index form }
|
||||
z[i] : = index_of[z[i]];
|
||||
End;
|
||||
|
||||
{ evaluate errors at locations given by }
|
||||
{ error location numbers loc[i] }
|
||||
for i : = 0 to(nn - 1) do
|
||||
Begin
|
||||
err[i] : = 0;
|
||||
If recd[i] != -1 then{ convert recd[] to polynomial form }
|
||||
recd[i] : = alpha_to[recd[i]]
|
||||
Else
|
||||
recd[i] : = 0;
|
||||
End;
|
||||
|
||||
for i : = 0 to(l[u] - 1) do { compute numerator of error term first }
|
||||
Begin
|
||||
err[loc[i]] : = 1; { accounts for z[0] }
|
||||
for j : = 1 to l[u] do
|
||||
If z[j] != -1 then
|
||||
err[loc[i]] : = err[loc[i]] ^ alpha_to[(z[j] + j * root[i]) mod nn];
|
||||
|
||||
If err[loc[i]] != 0 then
|
||||
Begin
|
||||
err[loc[i]] : = index_of[err[loc[i]]];
|
||||
|
||||
q: = 0; { form denominator of error term }
|
||||
|
||||
for j : = 0 to(l[u] - 1) do
|
||||
If j != i then
|
||||
q : = q + index_of[1 ^ alpha_to[(loc[j] + root[i]) mod nn]];
|
||||
q: = q mod nn;
|
||||
|
||||
err[loc[i]] : = alpha_to[(err[loc[i]] - q + nn) mod nn];
|
||||
{ recd[i] must be in polynomial form }
|
||||
recd[loc[i]] : = recd[loc[i]] ^ err[loc[i]];
|
||||
End;
|
||||
End;
|
||||
End
|
||||
Else{ no.roots != degree of elp = > > tt errors and cannot solve }
|
||||
Begin
|
||||
Result : = -1; { Signal an error. }
|
||||
|
||||
for i : = 0 to(nn - 1) do { could return error flag if desired }
|
||||
If recd[i] != -1 then{ convert recd[] to polynomial form }
|
||||
recd[i] : = alpha_to[recd[i]]
|
||||
Else
|
||||
recd[i] : = 0; { just output received codeword as is }
|
||||
End;
|
||||
End{ if l[u] <= tt then }
|
||||
Else{ elp has degree has degree > tt hence cannot solve }
|
||||
for i : = 0 to(nn - 1) do { could return error flag if desired }
|
||||
If recd[i] != -1 then{ convert recd[] to polynomial form }
|
||||
recd[i] : = alpha_to[recd[i]]
|
||||
Else
|
||||
recd[i] : = 0; { just output received codeword as is }
|
||||
End{ If syn_error != 0 then }
|
||||
{ no non - zero syndromes = > no errors : output received codeword }
|
||||
Else
|
||||
Begin
|
||||
for i : = 0 to(nn - 1) do
|
||||
If recd[i] != -1 then{ convert recd[] to polynomial form }
|
||||
recd[i] : = alpha_to[recd[i]]
|
||||
Else
|
||||
recd[i] : = 0;
|
||||
|
||||
Result: = 0; { No errors ocurred. }
|
||||
End;
|
||||
|
||||
for nI : = 0 to(NN - 1) do
|
||||
axDecoded[nI] : = Recd[nI];
|
||||
End; { TReedSolomon.DecodeRS }
|
||||
*/
|
||||
|
||||
return syn_error;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* *
|
||||
* TReedSolomon.InitBuffers *
|
||||
* *
|
||||
* Modifications *
|
||||
* ============= *
|
||||
* *
|
||||
***********************************************************************/
|
||||
|
||||
void InitBuffers()
|
||||
{
|
||||
memset(data, 0, sizeof(data));
|
||||
memset(recd, 0, sizeof(recd));
|
||||
memset(CodeWord, 0, sizeof(CodeWord));
|
||||
|
||||
//{ Initialize the Primitive Polynomial vector. }
|
||||
pPP[2] = PP2;
|
||||
pPP[3] = PP3;
|
||||
pPP[4] = PP4;
|
||||
pPP[5] = PP5;
|
||||
pPP[6] = PP6;
|
||||
pPP[7] = PP7;
|
||||
pPP[8] = PP8;
|
||||
pPP[9] = PP9;
|
||||
pPP[10] = PP10;
|
||||
pPP[11] = PP11;
|
||||
pPP[12] = PP12;
|
||||
pPP[13] = PP13;
|
||||
pPP[14] = PP14;
|
||||
pPP[15] = PP15;
|
||||
pPP[16] = PP16;
|
||||
}
|
||||
|
BIN
Resource.aps
BIN
Resource.aps
Binary file not shown.
File diff suppressed because it is too large
Load diff
1381
SMMain-HPLaptop.c
1381
SMMain-HPLaptop.c
File diff suppressed because it is too large
Load diff
234
ShowFilter.cpp
234
ShowFilter.cpp
|
@ -1,234 +0,0 @@
|
|||
/*
|
||||
Copyright (C) 2019-2020 Andrei Kopanchuk UZ7HO
|
||||
|
||||
This file is part of QtSoundModem
|
||||
|
||||
QtSoundModem is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
QtSoundModem is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QtSoundModem. If not, see http://www.gnu.org/licenses
|
||||
|
||||
*/
|
||||
|
||||
// UZ7HO Soundmodem Port by John Wiseman G8BPQ
|
||||
|
||||
#include "UZ7HOStuff.h"
|
||||
#include <QPainter>
|
||||
|
||||
// This displays a graph of the filter characteristics
|
||||
|
||||
#define c3 -1.5000000000000E+00f // cos(2*pi / 3) - 1;
|
||||
#define c32 8.6602540378444E-01f // sin(2*pi / 3);
|
||||
|
||||
#define u5 1.2566370614359E+00f // 2*pi / 5;
|
||||
#define c51 -1.2500000000000E+00f // (cos(u5) + cos(2*u5))/2 - 1;
|
||||
#define c52 5.5901699437495E-01f // (cos(u5) - cos(2*u5))/2;
|
||||
#define c53 -9.5105651629515E-0f //- sin(u5);
|
||||
#define c54 -1.5388417685876E+00f //-(sin(u5) + sin(2*u5));
|
||||
#define c55 3.6327126400268E-01f // (sin(u5) - sin(2*u5));
|
||||
#define c8 = 7.0710678118655E-01f // 1 / sqrt(2);
|
||||
|
||||
|
||||
float pnt_graph_buf[4096];
|
||||
float graph_buf[4096];
|
||||
float prev_graph_buf[4096];
|
||||
float src_graph_buf[4096];
|
||||
float graph_f;
|
||||
float RealOut[4096];
|
||||
short RealIn[4096];
|
||||
float ImagOut[4096];
|
||||
|
||||
#define Image1Width 642
|
||||
#define Image1Height 312
|
||||
|
||||
void filter_grid(QPainter * Painter)
|
||||
{
|
||||
int col = 20;
|
||||
int row = 8;
|
||||
int top_margin = 10;
|
||||
int bottom_margin = 20;
|
||||
int left_margin = 30;
|
||||
int right_margin = 10;
|
||||
|
||||
int x, y;
|
||||
float kx, ky;
|
||||
|
||||
QPen pen; // creates a default pen
|
||||
|
||||
pen.setStyle(Qt::DotLine);
|
||||
Painter->setPen(pen);
|
||||
|
||||
|
||||
ky = 35;
|
||||
|
||||
kx = (Image1Width - left_margin - right_margin - 2) / col;
|
||||
|
||||
for (y = 0; y < row; y++)
|
||||
{
|
||||
Painter->drawLine(
|
||||
left_margin + 1,
|
||||
top_margin + round(ky*y) + 1,
|
||||
Image1Width - right_margin - 1,
|
||||
top_margin + round(ky*y) + 1);
|
||||
}
|
||||
|
||||
for (x = 0; x < col; x++)
|
||||
{
|
||||
Painter->drawLine(
|
||||
left_margin + round(kx*x) + 1,
|
||||
top_margin + 1,
|
||||
left_margin + round(kx*x) + 1,
|
||||
Image1Height - bottom_margin - 1);
|
||||
}
|
||||
|
||||
pen.setStyle(Qt::SolidLine);
|
||||
Painter->setPen(pen);
|
||||
|
||||
for (y = 0; y < row / 2; y++)
|
||||
{
|
||||
char Textxx[20];
|
||||
|
||||
sprintf(Textxx, "%d", y * -20);
|
||||
|
||||
Painter->drawLine(
|
||||
left_margin + 1,
|
||||
top_margin + round(ky*y * 2) + 1,
|
||||
Image1Width - right_margin - 1,
|
||||
top_margin + round(ky*y * 2) + 1);
|
||||
|
||||
Painter->drawText(
|
||||
1,
|
||||
top_margin + round(ky*y * 2) + 1,
|
||||
100, 20, 0, Textxx);
|
||||
|
||||
}
|
||||
|
||||
|
||||
for (x = 0; x <= col / 5; x++)
|
||||
{
|
||||
char Textxx[20];
|
||||
|
||||
sprintf(Textxx, "%d", x * 1000);
|
||||
|
||||
Painter->drawLine(
|
||||
left_margin + round(kx*x * 5) + 1,
|
||||
top_margin + 1,
|
||||
left_margin + round(kx*x * 5) + 1,
|
||||
Image1Height - bottom_margin - 1);
|
||||
|
||||
Painter->drawText(
|
||||
top_margin + round(kx*x * 5) + 8,
|
||||
Image1Height - 15,
|
||||
100, 20, 0, Textxx);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void FourierTransform(int NumSamples, short * RealIn, float * RealOut, float * ImagOut, int InverseTransform);
|
||||
|
||||
|
||||
void make_graph(float * buf, int buflen, QPainter * Painter)
|
||||
{
|
||||
int top_margin = 10;
|
||||
int bottom_margin = 20;
|
||||
int left_margin = 30;
|
||||
|
||||
int i, y1, y2;
|
||||
float pixel;
|
||||
|
||||
if (buflen == 0)
|
||||
return;
|
||||
|
||||
for (i = 0; i <= buflen - 2; i++)
|
||||
{
|
||||
y1 = 1 - round(buf[i]);
|
||||
|
||||
if (y1 > Image1Height - top_margin - bottom_margin - 2)
|
||||
y1 = Image1Height - top_margin - bottom_margin - 2;
|
||||
|
||||
y2 = 1 - round(buf[i + 1]);
|
||||
|
||||
if (y2 > Image1Height - top_margin - bottom_margin - 2)
|
||||
y2 = Image1Height - top_margin - bottom_margin - 2;
|
||||
|
||||
// 150 pixels for 1000 Hz
|
||||
|
||||
// i is the bin number, but bin is not 10 Hz but 12000 /1024
|
||||
// so freq = i * 12000 / 1024;
|
||||
// and pixel is freq * 300 /1000
|
||||
|
||||
pixel = i * 12000.0f / 1024.0f;
|
||||
pixel = pixel * 150.0f /1000.0f;
|
||||
|
||||
Painter->drawLine(
|
||||
left_margin + pixel,
|
||||
top_margin + y1,
|
||||
left_margin + pixel + 1,
|
||||
top_margin + y2);
|
||||
}
|
||||
}
|
||||
|
||||
void make_graph_buf(float * buf, short tap, QPainter * Painter)
|
||||
{
|
||||
int fft_size;
|
||||
float max;
|
||||
int i, k;
|
||||
|
||||
fft_size = 1024; // 12000 / 10; // 10hz on sample;
|
||||
|
||||
for (i = 0; i < tap; i++)
|
||||
prev_graph_buf[i]= 0;
|
||||
|
||||
for (i = 0; i < fft_size; i++)
|
||||
src_graph_buf[i] = 0;
|
||||
|
||||
src_graph_buf[0]= 1;
|
||||
|
||||
FIR_filter(src_graph_buf, fft_size, tap, buf, graph_buf, prev_graph_buf);
|
||||
|
||||
|
||||
for (k = 0; k < fft_size; k++)
|
||||
RealIn[k] = graph_buf[k] * 32768;
|
||||
|
||||
FourierTransform(fft_size, RealIn, RealOut, ImagOut, 0);
|
||||
|
||||
for (k = 0; k < (fft_size / 2) - 1; k++)
|
||||
pnt_graph_buf[k] = powf(RealOut[k], 2) + powf(ImagOut[k], 2);
|
||||
|
||||
max = 0;
|
||||
|
||||
for (i = 0; i < (fft_size / 2) - 1; i++)
|
||||
{
|
||||
if (pnt_graph_buf[i] > max)
|
||||
max = pnt_graph_buf[i];
|
||||
}
|
||||
|
||||
if (max > 0)
|
||||
{
|
||||
for (i = 0; i < (fft_size / 2) - 1; i++)
|
||||
pnt_graph_buf[i] = pnt_graph_buf[i] / max;
|
||||
}
|
||||
|
||||
for (i = 0; i < (fft_size / 2) - 1; i++)
|
||||
{
|
||||
if (pnt_graph_buf[i] > 0)
|
||||
pnt_graph_buf[i] = 70 * log10(pnt_graph_buf[i]);
|
||||
|
||||
else
|
||||
|
||||
pnt_graph_buf[i] = 0;
|
||||
}
|
||||
|
||||
filter_grid(Painter);
|
||||
|
||||
Painter->setPen(Qt::blue);
|
||||
|
||||
make_graph(pnt_graph_buf, 400, Painter);
|
||||
}
|
5253
SoundInput.c
5253
SoundInput.c
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
1130
UZ7HOStuff.h
1130
UZ7HOStuff.h
File diff suppressed because it is too large
Load diff
1049
UZ7HOStuff.h.bak
1049
UZ7HOStuff.h.bak
File diff suppressed because it is too large
Load diff
321
UZ7HOUtils.c
321
UZ7HOUtils.c
|
@ -1,321 +0,0 @@
|
|||
/*
|
||||
Copyright (C) 2019-2020 Andrei Kopanchuk UZ7HO
|
||||
|
||||
This file is part of QtSoundModem
|
||||
|
||||
QtSoundModem is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
QtSoundModem is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QtSoundModem. If not, see http://www.gnu.org/licenses
|
||||
|
||||
*/
|
||||
|
||||
// UZ7HO Soundmodem Port by John Wiseman G8BPQ
|
||||
#include "UZ7HOStuff.h"
|
||||
|
||||
// TStringlist And String emulation Functions
|
||||
|
||||
// Dephi seems to mix starting counts at 0 or 1. I'll try making everything
|
||||
// base zero.
|
||||
|
||||
// Initialise a list
|
||||
|
||||
void CreateStringList(TStringList * List)
|
||||
{
|
||||
List->Count = 0;
|
||||
List->Items = 0;
|
||||
}
|
||||
|
||||
|
||||
int Count(TStringList * List)
|
||||
{
|
||||
return List->Count;
|
||||
}
|
||||
|
||||
string * newString()
|
||||
{
|
||||
// Creates and Initialises a string
|
||||
|
||||
UCHAR * ptr = malloc(sizeof(string)); // Malloc Data separately so it can be ralloc'ed
|
||||
string * New = (string *)ptr;
|
||||
New->Length = 0;
|
||||
New->AllocatedLength = 256;
|
||||
New->Data = malloc(256);
|
||||
|
||||
return New;
|
||||
}
|
||||
|
||||
void initString(string * S)
|
||||
{
|
||||
S->Length = 0;
|
||||
S->AllocatedLength = 256;
|
||||
S->Data = malloc(256);
|
||||
}
|
||||
|
||||
void initTStringList(TStringList* T)
|
||||
{
|
||||
//string * New = newString();
|
||||
|
||||
T->Count = 0;
|
||||
T->Items = NULL;
|
||||
|
||||
//Add(T, New);
|
||||
}
|
||||
|
||||
|
||||
|
||||
TStringList * newTStringList()
|
||||
{
|
||||
TStringList * T = (TStringList *) malloc(sizeof(TStringList));
|
||||
string * New = newString();
|
||||
|
||||
T->Count = 0;
|
||||
T->Items = NULL;
|
||||
|
||||
Add(T, New);
|
||||
|
||||
return T;
|
||||
}
|
||||
|
||||
|
||||
void freeString(string * Msg)
|
||||
{
|
||||
if (Msg->Data)
|
||||
free(Msg->Data);
|
||||
|
||||
free(Msg);
|
||||
}
|
||||
|
||||
string * Strings(TStringList * Q, int Index)
|
||||
{
|
||||
if (Index >= Q->Count)
|
||||
return NULL;
|
||||
|
||||
return Q->Items[Index];
|
||||
}
|
||||
|
||||
int Add(TStringList * Q, string * Entry)
|
||||
{
|
||||
Q->Items = realloc(Q->Items,(Q->Count + 1) * sizeof(void *));
|
||||
Q->Items[Q->Count++] = Entry;
|
||||
|
||||
return (Q->Count);
|
||||
}
|
||||
|
||||
|
||||
void mydelete(string * Source, int StartChar, int Count)
|
||||
{
|
||||
//Description
|
||||
//The Delete procedure deletes up to Count characters from the passed parameter Source string starting
|
||||
//from position StartChar.
|
||||
|
||||
if (StartChar > Source->Length)
|
||||
return;
|
||||
|
||||
int left = Source->Length - StartChar;
|
||||
|
||||
if (Count > left)
|
||||
Count = left;
|
||||
|
||||
memmove(&Source->Data[StartChar], &Source->Data[StartChar + Count], left - Count);
|
||||
|
||||
Source->Length -= Count;
|
||||
}
|
||||
|
||||
|
||||
void Delete(TStringList * Q, int Index)
|
||||
{
|
||||
// Remove item at Index and move rest up list
|
||||
// Index starts at zero
|
||||
|
||||
if (Index >= Q->Count)
|
||||
return;
|
||||
|
||||
// We should free it, so user must duplicate msg if needed after delete
|
||||
|
||||
freeString(Q->Items[Index]);
|
||||
// free(Q->Items[Index]);
|
||||
|
||||
Q->Count--;
|
||||
|
||||
while (Index < Q->Count)
|
||||
{
|
||||
Q->Items[Index] = Q->Items[Index + 1];
|
||||
Index++;
|
||||
}
|
||||
}
|
||||
|
||||
void setlength(string * Msg, int Count)
|
||||
{
|
||||
// Set length, allocating more space if needed
|
||||
|
||||
if (Count > Msg->AllocatedLength)
|
||||
{
|
||||
Msg->AllocatedLength = Count + 256;
|
||||
Msg->Data = realloc(Msg->Data, Msg->AllocatedLength);
|
||||
}
|
||||
|
||||
Msg->Length = Count;
|
||||
}
|
||||
|
||||
string * stringAdd(string * Msg, UCHAR * Chars, int Count)
|
||||
{
|
||||
// Add Chars to string
|
||||
|
||||
if (Msg->Length + Count > Msg->AllocatedLength)
|
||||
{
|
||||
Msg->AllocatedLength += Count + 256;
|
||||
Msg->Data = realloc(Msg->Data, Msg->AllocatedLength);
|
||||
}
|
||||
|
||||
memcpy(&Msg->Data[Msg->Length], Chars, Count);
|
||||
Msg->Length += Count;
|
||||
|
||||
return Msg;
|
||||
}
|
||||
|
||||
void Clear(TStringList * Q)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
if (Q->Items == NULL)
|
||||
return;
|
||||
|
||||
while (Q->Count)
|
||||
{
|
||||
freeString(Q->Items[i++]);
|
||||
Q->Count--;
|
||||
}
|
||||
|
||||
free(Q->Items);
|
||||
|
||||
Q->Items = NULL;
|
||||
}
|
||||
|
||||
// procedure move ( const SourcePointer; var DestinationPointer; CopyCount : Integer ) ;
|
||||
// Description
|
||||
// The move procedure is a badly named method of copying a section of memory from one place to another.
|
||||
|
||||
// CopyCount bytes are copied from storage referenced by SourcePointer and written to DestinationPointer
|
||||
|
||||
void move(UCHAR * SourcePointer, UCHAR * DestinationPointer, int CopyCount)
|
||||
{
|
||||
memmove(DestinationPointer, SourcePointer, CopyCount);
|
||||
}
|
||||
|
||||
void fmove(float * SourcePointer, float * DestinationPointer, int CopyCount)
|
||||
{
|
||||
memmove(DestinationPointer, SourcePointer, CopyCount);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Description
|
||||
//The copy function has 2 forms. In the first, it creates a new string from part of an existing string. In the second, it creates a new array from part of an existing array.
|
||||
|
||||
//1.String copy
|
||||
|
||||
//The first character of a string has index = 1.
|
||||
|
||||
//Up to Count characters are copied from the StartChar of the Source string to the returned string.
|
||||
//Less than Count characters if the end of the Source string is encountered before Count characters have been copied.
|
||||
|
||||
|
||||
string * copy(string * Source, int StartChar, int Count)
|
||||
{
|
||||
string * NewString = newString();
|
||||
int end = StartChar + Count;
|
||||
|
||||
if (end > Source->Length)
|
||||
Count = Source->Length - StartChar;
|
||||
|
||||
memcpy(NewString->Data, &Source->Data[StartChar], Count);
|
||||
|
||||
NewString->Length = Count;
|
||||
|
||||
return NewString;
|
||||
}
|
||||
|
||||
// Duplicate from > to
|
||||
|
||||
void Assign(TStringList * to, TStringList * from)
|
||||
{
|
||||
int i;
|
||||
|
||||
Clear(to);
|
||||
|
||||
if (from->Count == 0)
|
||||
return;
|
||||
|
||||
// Duplicate each item
|
||||
|
||||
for (i = 0; i < from->Count; i++)
|
||||
{
|
||||
string * new = newString();
|
||||
|
||||
stringAdd(new, from->Items[i]->Data, from->Items[i]->Length);
|
||||
Add(to, new);
|
||||
}
|
||||
}
|
||||
|
||||
string * duplicateString(string * in)
|
||||
{
|
||||
string * new = newString();
|
||||
|
||||
stringAdd(new, in->Data, in->Length);
|
||||
|
||||
return new;
|
||||
}
|
||||
|
||||
|
||||
double pila(double x)
|
||||
{
|
||||
//x : = frac(x); The frac function returns the fractional part of a floating point number.
|
||||
|
||||
double whole;
|
||||
double rem;
|
||||
|
||||
rem = modf(x, &whole); // returns fraction, writes whole to whole
|
||||
|
||||
if (rem != rem)
|
||||
rem = 0;
|
||||
|
||||
if (rem > 0.5)
|
||||
rem = 1 - rem;
|
||||
|
||||
return 2 * rem;
|
||||
}
|
||||
|
||||
boolean compareStrings(string * a, string * b)
|
||||
{
|
||||
if (a->Length == b->Length && memcmp(a->Data, b->Data, a->Length) == 0)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// This looks for a string in a stringlist. Returns index if found, otherwise -1
|
||||
|
||||
int my_indexof(TStringList * l, string * s)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < l->Count; i++)
|
||||
{
|
||||
// Need to compare count and data - C doesn't allow struct compare
|
||||
|
||||
if (l->Items[i]->Length == s->Length && memcmp(l->Items[i]->Data, s->Data, s->Length) == 0)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
45
agwlib.h
45
agwlib.h
|
@ -1,45 +0,0 @@
|
|||
|
||||
#ifndef AGWLIB_H
|
||||
#define AGWLIB_H 1
|
||||
|
||||
|
||||
// Call at beginning to start it up.
|
||||
|
||||
int agwlib_init (char *host, char *port, int (*init_func)(void));
|
||||
|
||||
|
||||
|
||||
// Send commands to TNC.
|
||||
|
||||
|
||||
int agwlib_X_register_callsign (int chan, char *call_from);
|
||||
|
||||
int agwlib_x_unregister_callsign (int chan, char *call_from);
|
||||
|
||||
int agwlib_G_ask_port_information (void);
|
||||
|
||||
int agwlib_C_connect (int chan, char *call_from, char *call_to);
|
||||
|
||||
int agwlib_d_disconnect (int chan, char *call_from, char *call_to);
|
||||
|
||||
int agwlib_D_send_connected_data (int chan, int pid, char *call_from, char *call_to, int data_len, char *data);
|
||||
|
||||
int agwlib_Y_outstanding_frames_for_station (int chan, char *call_from, char *call_to);
|
||||
|
||||
|
||||
|
||||
// The application must define these.
|
||||
|
||||
void agw_cb_C_connection_received (int chan, char *call_from, char *call_to, int data_len, char *data);
|
||||
void on_C_connection_received (int chan, char *call_from, char *call_to, int incoming, char *data);
|
||||
|
||||
void agw_cb_d_disconnected (int chan, char *call_from, char *call_to, int data_len, char *data);
|
||||
|
||||
void agw_cb_D_connected_data (int chan, char *call_from, char *call_to, int data_len, char *data);
|
||||
|
||||
void agw_cb_G_port_information (int num_chan, char *chan_descriptions[]);
|
||||
|
||||
void agw_cb_Y_outstanding_frames_for_station (int chan, char *call_from, char *call_to, int frame_count);
|
||||
|
||||
|
||||
#endif
|
8
ais.h
8
ais.h
|
@ -1,8 +0,0 @@
|
|||
|
||||
|
||||
void ais_to_nmea (unsigned char *ais, int ais_len, char *nema, int nema_size);
|
||||
|
||||
int ais_parse (char *sentence, int quiet, char *descr, int descr_size, char *mssi, int mssi_size, double *odlat, double *odlon,
|
||||
float *ofknots, float *ofcourse, float *ofalt_m, char *symtab, char *symbol, char *comment, int comment_size);
|
||||
|
||||
int ais_check_length (int type, int length);
|
191
aprs_tt.h
191
aprs_tt.h
|
@ -1,191 +0,0 @@
|
|||
|
||||
/* aprs_tt.h */
|
||||
|
||||
#ifndef APRS_TT_H
|
||||
#define APRS_TT_H 1
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* For holding location format specifications from config file.
|
||||
* Same thing is also useful for macro definitions.
|
||||
* We have exactly the same situation of looking for a pattern
|
||||
* match and extracting fixed size groups of digits.
|
||||
*/
|
||||
|
||||
struct ttloc_s {
|
||||
enum { TTLOC_POINT, TTLOC_VECTOR, TTLOC_GRID, TTLOC_UTM, TTLOC_MGRS, TTLOC_USNG, TTLOC_MACRO, TTLOC_MHEAD, TTLOC_SATSQ, TTLOC_AMBIG } type;
|
||||
|
||||
char pattern[20]; /* e.g. B998, B5bbbdddd, B2xxyy, Byyyxxx, BAxxxx */
|
||||
/* For macros, it should be all fixed digits, */
|
||||
/* and the letters x, y, z. e.g. 911, xxyyyz */
|
||||
|
||||
union {
|
||||
|
||||
struct {
|
||||
double lat; /* Specific locations. */
|
||||
double lon;
|
||||
} point;
|
||||
|
||||
struct {
|
||||
double lat; /* For bearing/direction. */
|
||||
double lon;
|
||||
double scale; /* conversion to meters */
|
||||
} vector;
|
||||
|
||||
struct {
|
||||
double lat0; /* yyy all zeros. */
|
||||
double lon0; /* xxx */
|
||||
double lat9; /* yyy all nines. */
|
||||
double lon9; /* xxx */
|
||||
} grid;
|
||||
|
||||
struct {
|
||||
double scale;
|
||||
double x_offset;
|
||||
double y_offset;
|
||||
long lzone; /* UTM zone, should be 1-60 */
|
||||
char latband; /* Latitude band if specified, otherwise space or - */
|
||||
char hemi; /* UTM Hemisphere, should be 'N' or 'S'. */
|
||||
} utm;
|
||||
|
||||
struct {
|
||||
char zone[8]; /* Zone and square for USNG/MGRS */
|
||||
} mgrs;
|
||||
|
||||
struct {
|
||||
char prefix[24]; /* should be 10, 6, or 4 digits to be */
|
||||
/* prepended to the received sequence. */
|
||||
} mhead;
|
||||
|
||||
struct {
|
||||
char *definition;
|
||||
} macro;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
/* Error codes for sending responses to user. */
|
||||
|
||||
#define TT_ERROR_OK 0 /* Success. */
|
||||
#define TT_ERROR_D_MSG 1 /* D was first char of field. Not implemented yet. */
|
||||
#define TT_ERROR_INTERNAL 2 /* Internal error. Shouldn't be here. */
|
||||
#define TT_ERROR_MACRO_NOMATCH 3 /* No definition for digit sequence. */
|
||||
#define TT_ERROR_BAD_CHECKSUM 4 /* Bad checksum on call. */
|
||||
#define TT_ERROR_INVALID_CALL 5 /* Invalid callsign. */
|
||||
#define TT_ERROR_INVALID_OBJNAME 6 /* Invalid object name. */
|
||||
#define TT_ERROR_INVALID_SYMBOL 7 /* Invalid symbol specification. */
|
||||
#define TT_ERROR_INVALID_LOC 8 /* Invalid location. */
|
||||
#define TT_ERROR_NO_CALL 9 /* No call or object name included. */
|
||||
#define TT_ERROR_INVALID_MHEAD 10 /* Invalid Maidenhead Locator. */
|
||||
#define TT_ERROR_INVALID_SATSQ 11 /* Satellite square must be 4 digits. */
|
||||
#define TT_ERROR_SUFFIX_NO_CALL 12 /* No known callsign for suffix. */
|
||||
|
||||
#define TT_ERROR_MAXP1 13 /* Number of items above. i.e. Last number plus 1. */
|
||||
|
||||
|
||||
#if CONFIG_C /* Is this being included from config.c? */
|
||||
|
||||
/* Must keep in sync with above !!! */
|
||||
|
||||
static const char *tt_msg_id[TT_ERROR_MAXP1] = {
|
||||
"OK",
|
||||
"D_MSG",
|
||||
"INTERNAL",
|
||||
"MACRO_NOMATCH",
|
||||
"BAD_CHECKSUM",
|
||||
"INVALID_CALL",
|
||||
"INVALID_OBJNAME",
|
||||
"INVALID_SYMBOL",
|
||||
"INVALID_LOC",
|
||||
"NO_CALL",
|
||||
"INVALID_MHEAD",
|
||||
"INVALID_SATSQ",
|
||||
"SUFFIX_NO_CALL"
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Configuration options for APRStt.
|
||||
*/
|
||||
|
||||
#define TT_MAX_XMITS 10
|
||||
|
||||
#define TT_MTEXT_LEN 64
|
||||
|
||||
|
||||
struct tt_config_s {
|
||||
|
||||
int gateway_enabled; /* Send DTMF sequences to APRStt gateway. */
|
||||
|
||||
int obj_recv_chan; /* Channel to listen for tones. */
|
||||
|
||||
int obj_xmit_chan; /* Channel to transmit object report. */
|
||||
/* -1 for none. This could happen if we */
|
||||
/* are only sending to application */
|
||||
/* and/or IGate. */
|
||||
|
||||
int obj_send_to_app; /* send to attached application(s). */
|
||||
|
||||
int obj_send_to_ig; /* send to IGate. */
|
||||
|
||||
char obj_xmit_via[AX25_MAX_REPEATERS * (AX25_MAX_ADDR_LEN+1)];
|
||||
/* e.g. empty or "WIDE2-1,WIDE1-1" */
|
||||
|
||||
int retain_time; /* Seconds to keep information about a user. */
|
||||
|
||||
int num_xmits; /* Number of times to transmit object report. */
|
||||
|
||||
int xmit_delay[TT_MAX_XMITS]; /* Delay between them. */
|
||||
/* e.g. 3 seconds before first transmission then */
|
||||
/* delays of 16, 32, seconds etc. in between repeats. */
|
||||
|
||||
struct ttloc_s *ttloc_ptr; /* Pointer to variable length array of above. */
|
||||
int ttloc_size; /* Number of elements allocated. */
|
||||
int ttloc_len; /* Number of elements actually used. */
|
||||
|
||||
double corral_lat; /* The "corral" for unknown locations. */
|
||||
double corral_lon;
|
||||
double corral_offset;
|
||||
int corral_ambiguity;
|
||||
|
||||
char status[10][TT_MTEXT_LEN]; /* Up to 9 status messages. e.g. "/enroute" */
|
||||
/* Position 0 means none and can't be changed. */
|
||||
|
||||
struct {
|
||||
char method[AX25_MAX_ADDR_LEN]; /* SPEECH or MORSE[-n] */
|
||||
char mtext[TT_MTEXT_LEN]; /* Message text. */
|
||||
} response[TT_ERROR_MAXP1];
|
||||
|
||||
char ttcmd[80]; /* Command to generate custom audible response. */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
void aprs_tt_init (struct tt_config_s *p_config, int debug);
|
||||
|
||||
void aprs_tt_button (int chan, char button);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define APRSTT_LOC_DESC_LEN 32 /* Need at least 26 */
|
||||
|
||||
#define APRSTT_DEFAULT_SYMTAB '\\'
|
||||
#define APRSTT_DEFAULT_SYMBOL 'A'
|
||||
|
||||
|
||||
void aprs_tt_dao_to_desc (char *dao, char *str);
|
||||
|
||||
void aprs_tt_sequence (int chan, char *msg);
|
||||
|
||||
int dw_run_cmd (char *cmd, int oneline, char *result, size_t resultsiz);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* end aprs_tt.h */
|
16077
ardopSampleArrays.c
16077
ardopSampleArrays.c
File diff suppressed because it is too large
Load diff
327
audio.c
327
audio.c
|
@ -1,327 +0,0 @@
|
|||
|
||||
|
||||
//
|
||||
// This file is part of Dire Wolf, an amateur radio packet TNC.
|
||||
//
|
||||
// Copyright (C) 2011, 2012, 2013, 2014, 2015 John Langner, WB2OSZ
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
|
||||
// I've extracted the OSS bits from Direwolf's audio.c for use in QtSoundModem
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <fcntl.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <errno.h>
|
||||
#ifdef __OpenBSD__
|
||||
#include <soundcard.h>
|
||||
#else
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
|
||||
void Debugprintf(const char * format, ...);
|
||||
|
||||
extern int Closing;
|
||||
|
||||
int oss_fd = -1; /* Single device, both directions. */
|
||||
|
||||
int insize = 0;
|
||||
short rxbuffer[2400]; // 1200 stereo samples
|
||||
|
||||
int num_channels = 2; /* Should be 1 for mono or 2 for stereo. */
|
||||
int samples_per_sec = 12000; /* Audio sampling rate. Typically 11025, 22050, or 44100. */
|
||||
int bits_per_sample = 16; /* 8 (unsigned char) or 16 (signed short). */
|
||||
|
||||
// Originally 40. Version 1.2, try 10 for lower latency.
|
||||
|
||||
#define ONE_BUF_TIME 10
|
||||
|
||||
static int set_oss_params(int fd);
|
||||
|
||||
#define roundup1k(n) (((n) + 0x3ff) & ~0x3ff)
|
||||
|
||||
static int calcbufsize(int rate, int chans, int bits)
|
||||
{
|
||||
int size1 = (rate * chans * bits / 8 * ONE_BUF_TIME) / 1000;
|
||||
int size2 = roundup1k(size1);
|
||||
#if DEBUG
|
||||
text_color_set(DW_COLOR_DEBUG);
|
||||
printf("audio_open: calcbufsize (rate=%d, chans=%d, bits=%d) calc size=%d, round up to %d\n",
|
||||
rate, chans, bits, size1, size2);
|
||||
#endif
|
||||
return (size2);
|
||||
}
|
||||
|
||||
|
||||
int oss_audio_open(char * adevice_in, char * adevice_out)
|
||||
{
|
||||
char audio_in_name[30];
|
||||
char audio_out_name[30];
|
||||
|
||||
strcpy(audio_in_name, adevice_in);
|
||||
strcpy(audio_out_name, adevice_out);
|
||||
|
||||
if (strcmp(audio_in_name, audio_out_name) == 0)
|
||||
{
|
||||
printf("Audio device for both receive and transmit: %s \n", audio_in_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Audio input device for receive: %s\n", audio_in_name);
|
||||
printf("Audio out device for transmit: %s\n", audio_out_name);
|
||||
}
|
||||
|
||||
oss_fd = open(audio_in_name, O_RDWR);
|
||||
|
||||
if (oss_fd < 0)
|
||||
{
|
||||
printf("Could not open audio device %s\n", audio_in_name);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
printf("OSS fd = %d\n", oss_fd);
|
||||
|
||||
return set_oss_params(oss_fd);
|
||||
}
|
||||
|
||||
|
||||
static int set_oss_params(int fd)
|
||||
{
|
||||
int err;
|
||||
int devcaps;
|
||||
int asked_for;
|
||||
int ossbuf_size_in_bytes;
|
||||
int frag = (5 << 16) | (11);
|
||||
|
||||
err = ioctl(fd, SNDCTL_DSP_SETFRAGMENT, &frag);
|
||||
|
||||
if (err == -1)
|
||||
{
|
||||
perror("Not able to set fragment size");
|
||||
// ossbuf_size_in_bytes = 2048; /* pick something reasonable */
|
||||
}
|
||||
|
||||
err = ioctl(fd, SNDCTL_DSP_CHANNELS, &num_channels);
|
||||
if (err == -1)
|
||||
{
|
||||
perror("Not able to set audio device number of channels");
|
||||
return (0);
|
||||
}
|
||||
|
||||
asked_for = samples_per_sec;
|
||||
|
||||
err = ioctl(fd, SNDCTL_DSP_SPEED, &samples_per_sec);
|
||||
if (err == -1)
|
||||
{
|
||||
|
||||
perror("Not able to set audio device sample rate");
|
||||
return (0);
|
||||
}
|
||||
|
||||
printf("Asked for %d samples/sec but actually using %d.\n", asked_for, samples_per_sec);
|
||||
|
||||
|
||||
/* This is actually a bit mask but it happens that */
|
||||
/* 0x8 is unsigned 8 bit samples and */
|
||||
/* 0x10 is signed 16 bit little endian. */
|
||||
|
||||
err = ioctl(fd, SNDCTL_DSP_SETFMT, &bits_per_sample);
|
||||
|
||||
if (err == -1)
|
||||
{
|
||||
perror("Not able to set audio device sample size");
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine capabilities.
|
||||
*/
|
||||
err = ioctl(fd, SNDCTL_DSP_GETCAPS, &devcaps);
|
||||
if (err == -1)
|
||||
{
|
||||
perror("Not able to get audio device capabilities");
|
||||
// Is this fatal? // return (-1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
printf("audio_open(): devcaps = %08x\n", devcaps);
|
||||
if (devcaps & DSP_CAP_DUPLEX) printf("Full duplex record/playback.\n");
|
||||
if (devcaps & DSP_CAP_BATCH) printf("Device has some kind of internal buffers which may cause delays.\n");
|
||||
if (devcaps & ~(DSP_CAP_DUPLEX | DSP_CAP_BATCH)) printf("Others...\n");
|
||||
|
||||
if (!(devcaps & DSP_CAP_DUPLEX))
|
||||
{
|
||||
printf("Audio device does not support full duplex\n");
|
||||
// Do we care? // return (-1);
|
||||
}
|
||||
|
||||
err = ioctl(fd, SNDCTL_DSP_SETDUPLEX, NULL);
|
||||
if (err == -1)
|
||||
{
|
||||
perror("Not able to set audio full duplex mode");
|
||||
// Unfortunate but not a disaster.
|
||||
}
|
||||
|
||||
/*
|
||||
* Get preferred block size.
|
||||
* Presumably this will provide the most efficient transfer.
|
||||
*
|
||||
* In my particular situation, this turned out to be
|
||||
* 2816 for 11025 Hz 16 bit mono
|
||||
* 5568 for 11025 Hz 16 bit stereo
|
||||
* 11072 for 44100 Hz 16 bit mono
|
||||
*
|
||||
* This was long ago under different conditions.
|
||||
* Should study this again some day.
|
||||
*
|
||||
* Your milage may vary.
|
||||
*/
|
||||
|
||||
|
||||
err = ioctl(fd, SNDCTL_DSP_GETBLKSIZE, &ossbuf_size_in_bytes);
|
||||
if (err == -1)
|
||||
{
|
||||
perror("Not able to get audio block size");
|
||||
ossbuf_size_in_bytes = 2048; /* pick something reasonable */
|
||||
}
|
||||
|
||||
printf("audio_open(): suggestd block size is %d\n", ossbuf_size_in_bytes);
|
||||
|
||||
/*
|
||||
* That's 1/8 of a second which seems rather long if we want to
|
||||
* respond quickly.
|
||||
*/
|
||||
|
||||
ossbuf_size_in_bytes = calcbufsize(samples_per_sec, num_channels, bits_per_sample);
|
||||
|
||||
printf("audio_open(): using block size of %d\n", ossbuf_size_in_bytes);
|
||||
|
||||
/* Version 1.3 - after a report of this situation for Mac OSX version. */
|
||||
if (ossbuf_size_in_bytes < 256 || ossbuf_size_in_bytes > 32768)
|
||||
{
|
||||
printf("Audio buffer has unexpected extreme size of %d bytes.\n", ossbuf_size_in_bytes);
|
||||
printf("Detected at %s, line %d.\n", __FILE__, __LINE__);
|
||||
printf("This might be caused by unusual audio device configuration values.\n");
|
||||
ossbuf_size_in_bytes = 2048;
|
||||
printf("Using %d to attempt recovery.\n", ossbuf_size_in_bytes);
|
||||
}
|
||||
return (ossbuf_size_in_bytes);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int oss_read(short * samples, int nSamples)
|
||||
{
|
||||
int n;
|
||||
int nBytes = nSamples * 4;
|
||||
|
||||
if (oss_fd < 0)
|
||||
return 0;
|
||||
|
||||
// printf("audio_get(): read %d\n", nBytes - insize);
|
||||
|
||||
n = read(oss_fd, &rxbuffer[insize], nBytes - insize);
|
||||
|
||||
if (n < 0)
|
||||
{
|
||||
perror("Can't read from audio device");
|
||||
insize = 0;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
insize += n;
|
||||
|
||||
if (n == nSamples * 4)
|
||||
{
|
||||
memcpy(samples, rxbuffer, insize);
|
||||
insize = 0;
|
||||
return nSamples;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int oss_write(short * ptr, int len)
|
||||
{
|
||||
int k;
|
||||
|
||||
// int delay;
|
||||
// ioctl(oss_fd, SNDCTL_DSP_GETODELAY, &delay);
|
||||
// Debugprintf("Delay %d", delay);
|
||||
|
||||
k = write(oss_fd, ptr, len * 4);
|
||||
|
||||
//
|
||||
if (k < 0)
|
||||
{
|
||||
perror("Can't write to audio device");
|
||||
return (-1);
|
||||
}
|
||||
if (k < len * 4)
|
||||
{
|
||||
printf("oss_write(): write %d returns %d\n", len * 4, k);
|
||||
/* presumably full but didn't block. */
|
||||
usleep(10000);
|
||||
}
|
||||
ptr += k;
|
||||
len -= k;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void oss_flush()
|
||||
{
|
||||
int delay;
|
||||
|
||||
if (oss_fd < 0)
|
||||
{
|
||||
Debugprintf("OSS Flush Called when OSS closed");
|
||||
return;
|
||||
}
|
||||
|
||||
ioctl(oss_fd, SNDCTL_DSP_GETODELAY, &delay);
|
||||
Debugprintf("OSS Flush Delay %d", delay);
|
||||
|
||||
while (delay)
|
||||
{
|
||||
Sleep(10);
|
||||
ioctl(oss_fd, SNDCTL_DSP_GETODELAY, &delay);
|
||||
// Debugprintf("Flush Delay %d", delay);
|
||||
}
|
||||
}
|
||||
|
||||
void oss_audio_close(void)
|
||||
{
|
||||
if (oss_fd > 0)
|
||||
{
|
||||
close(oss_fd);
|
||||
oss_fd = -1;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
|
||||
|
||||
/* audio_stats.h */
|
||||
|
||||
|
||||
extern void audio_stats (int adev, int nchan, int nsamp, int interval);
|
||||
|
1500
ax25_agw.c
1500
ax25_agw.c
File diff suppressed because it is too large
Load diff
4417
ax25_demod.c
4417
ax25_demod.c
File diff suppressed because it is too large
Load diff
417
ax25_fec.c
417
ax25_fec.c
|
@ -1,417 +0,0 @@
|
|||
/*
|
||||
Copyright (C) 2019-2020 Andrei Kopanchuk UZ7HO
|
||||
|
||||
This file is part of QtSoundModem
|
||||
|
||||
QtSoundModem is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
QtSoundModem is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QtSoundModem. If not, see http://www.gnu.org/licenses
|
||||
|
||||
*/
|
||||
|
||||
// UZ7HO Soundmodem Port by John Wiseman G8BPQ
|
||||
|
||||
#include "UZ7HOStuff.h"
|
||||
|
||||
//void fx25_encode_rs(byte * data, byte * parity, int pad, int rs_size);
|
||||
|
||||
//int fx25_decode_rs(byte * data, int * eras_pos, int no_eras, int pad, int rs_size);
|
||||
|
||||
#define FX25_FCR 1
|
||||
#define FX25_PRIM 1
|
||||
#define FX25_IPRIM 1
|
||||
#define FX25_MM 8
|
||||
#define FX25_NN 255
|
||||
#define FX25_A0 FX25_NN
|
||||
|
||||
Byte FX25_ALPHA_TO[256] = {
|
||||
|
||||
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1d, 0x3a, 0x74, 0xe8, 0xcd, 0x87, 0x13, 0x26,
|
||||
0x4c, 0x98, 0x2d, 0x5a, 0xb4, 0x75, 0xea, 0xc9, 0x8f, 0x03, 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0,
|
||||
0x9d, 0x27, 0x4e, 0x9c, 0x25, 0x4a, 0x94, 0x35, 0x6a, 0xd4, 0xb5, 0x77, 0xee, 0xc1, 0x9f, 0x23,
|
||||
0x46, 0x8c, 0x05, 0x0a, 0x14, 0x28, 0x50, 0xa0, 0x5d, 0xba, 0x69, 0xd2, 0xb9, 0x6f, 0xde, 0xa1,
|
||||
0x5f, 0xbe, 0x61, 0xc2, 0x99, 0x2f, 0x5e, 0xbc, 0x65, 0xca, 0x89, 0x0f, 0x1e, 0x3c, 0x78, 0xf0,
|
||||
0xfd, 0xe7, 0xd3, 0xbb, 0x6b, 0xd6, 0xb1, 0x7f, 0xfe, 0xe1, 0xdf, 0xa3, 0x5b, 0xb6, 0x71, 0xe2,
|
||||
0xd9, 0xaf, 0x43, 0x86, 0x11, 0x22, 0x44, 0x88, 0x0d, 0x1a, 0x34, 0x68, 0xd0, 0xbd, 0x67, 0xce,
|
||||
0x81, 0x1f, 0x3e, 0x7c, 0xf8, 0xed, 0xc7, 0x93, 0x3b, 0x76, 0xec, 0xc5, 0x97, 0x33, 0x66, 0xcc,
|
||||
0x85, 0x17, 0x2e, 0x5c, 0xb8, 0x6d, 0xda, 0xa9, 0x4f, 0x9e, 0x21, 0x42, 0x84, 0x15, 0x2a, 0x54,
|
||||
0xa8, 0x4d, 0x9a, 0x29, 0x52, 0xa4, 0x55, 0xaa, 0x49, 0x92, 0x39, 0x72, 0xe4, 0xd5, 0xb7, 0x73,
|
||||
0xe6, 0xd1, 0xbf, 0x63, 0xc6, 0x91, 0x3f, 0x7e, 0xfc, 0xe5, 0xd7, 0xb3, 0x7b, 0xf6, 0xf1, 0xff,
|
||||
0xe3, 0xdb, 0xab, 0x4b, 0x96, 0x31, 0x62, 0xc4, 0x95, 0x37, 0x6e, 0xdc, 0xa5, 0x57, 0xae, 0x41,
|
||||
0x82, 0x19, 0x32, 0x64, 0xc8, 0x8d, 0x07, 0x0e, 0x1c, 0x38, 0x70, 0xe0, 0xdd, 0xa7, 0x53, 0xa6,
|
||||
0x51, 0xa2, 0x59, 0xb2, 0x79, 0xf2, 0xf9, 0xef, 0xc3, 0x9b, 0x2b, 0x56, 0xac, 0x45, 0x8a, 0x09,
|
||||
0x12, 0x24, 0x48, 0x90, 0x3d, 0x7a, 0xf4, 0xf5, 0xf7, 0xf3, 0xfb, 0xeb, 0xcb, 0x8b, 0x0b, 0x16,
|
||||
0x2c, 0x58, 0xb0, 0x7d, 0xfa, 0xe9, 0xcf, 0x83, 0x1b, 0x36, 0x6c, 0xd8, 0xad, 0x47, 0x8e, 0x00
|
||||
};
|
||||
|
||||
Byte FX25_INDEX_OF[256] = {
|
||||
|
||||
255, 0, 1, 25, 2, 50, 26,198, 3,223, 51,238, 27,104,199, 75,
|
||||
4,100,224, 14, 52,141,239,129, 28,193,105,248,200, 8, 76,113,
|
||||
5,138,101, 47,225, 36, 15, 33, 53,147,142,218,240, 18,130, 69,
|
||||
29,181,194,125,106, 39,249,185,201,154, 9,120, 77,228,114,166,
|
||||
6,191,139, 98,102,221, 48,253,226,152, 37,179, 16,145, 34,136,
|
||||
54,208,148,206,143,150,219,189,241,210, 19, 92,131, 56, 70, 64,
|
||||
30, 66,182,163,195, 72,126,110,107, 58, 40, 84,250,133,186, 61,
|
||||
202, 94,155,159, 10, 21,121, 43, 78,212,229,172,115,243,167, 87,
|
||||
7,112,192,247,140,128, 99, 13,103, 74,222,237, 49,197,254, 24,
|
||||
227,165,153,119, 38,184,180,124, 17, 68,146,217, 35, 32,137, 46,
|
||||
55, 63,209, 91,149,188,207,205,144,135,151,178,220,252,190, 97,
|
||||
242, 86,211,171, 20, 42, 93,158,132, 60, 57, 83, 71,109, 65,162,
|
||||
31, 45, 67,216,183,123,164,118,196, 23, 73,236,127, 12,111,246,
|
||||
108,161, 59, 82, 41,157, 85,170,251, 96,134,177,187,204, 62, 90,
|
||||
203, 89, 95,176,156,169,160, 81, 11,245, 22,235,122,117, 44,215,
|
||||
79,174,213,233,230,231,173,232,116,214,244,234,168, 80, 88,175
|
||||
};
|
||||
|
||||
|
||||
Byte FX25_CCSDS_poly_8[9] =
|
||||
{ 29, 188, 142, 221, 118, 206, 52, 168, 0 };
|
||||
|
||||
Byte FX25_CCSDS_poly_16[17] =
|
||||
{136,240,208,195,181,158,201,100, 11, 83,167,107,113,110,106,121, 0 };
|
||||
|
||||
|
||||
Byte FX25_CCSDS_poly_32[33] = {
|
||||
18,251,215, 28, 80,107,248, 53, 84,194, 91, 59,176, 99,203,137,
|
||||
43,104,137, 0, 44,149,148,218, 75, 11,173,254,194,109, 8, 11,
|
||||
0 };
|
||||
|
||||
Byte FX25_CCSDS_poly_64[65] = {
|
||||
40, 21,218, 23, 48,237, 69, 6, 87, 42, 29,193,160,150,113, 32,
|
||||
35,172,241,240,184, 90,188,225, 87,130,254, 41,245,253,184,241,
|
||||
188,176, 54, 58,240,226,119,185, 77,150, 48,140,169,160, 96,217,
|
||||
15,202,218,190,135,103,129, 77, 57,166,164, 12, 13,178, 53, 46,
|
||||
0 };
|
||||
|
||||
|
||||
|
||||
integer FX25_NROOTS ;
|
||||
Byte FX25_GENPOLY[256];
|
||||
|
||||
Byte MODNN(int x)
|
||||
{
|
||||
return x % 255;
|
||||
}
|
||||
|
||||
|
||||
void encode_rs(Byte * data, Byte * parity, int pad)
|
||||
{
|
||||
int i, j;
|
||||
Byte feedback;
|
||||
|
||||
memset(parity, 0, FX25_NROOTS);
|
||||
|
||||
i = 0;
|
||||
|
||||
while (i < FX25_NN - FX25_NROOTS - pad)
|
||||
{
|
||||
feedback = FX25_INDEX_OF[data[i] ^ parity[0]];
|
||||
|
||||
if (feedback != FX25_A0)
|
||||
{
|
||||
j = 1;
|
||||
while (j < FX25_NROOTS)
|
||||
{
|
||||
parity[j] = parity[j] ^ FX25_ALPHA_TO[MODNN(feedback + FX25_GENPOLY[FX25_NROOTS - j])];
|
||||
j++;
|
||||
}
|
||||
}
|
||||
move(&parity[1], &parity[0], FX25_NROOTS - 1);
|
||||
|
||||
if (feedback != FX25_A0)
|
||||
parity[FX25_NROOTS - 1] = FX25_ALPHA_TO[MODNN(feedback + FX25_GENPOLY[0])];
|
||||
else
|
||||
parity[FX25_NROOTS - 1] = 0;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int FX25_MIN(int a, int b)
|
||||
{
|
||||
if (a > b)
|
||||
return b;
|
||||
else
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
int decode_rs(Byte * data, int * eras_pos, int no_eras, int pad)
|
||||
{
|
||||
int deg_lambda, el, deg_omega;
|
||||
int i, j, r, k;
|
||||
Byte q, tmp, num1, num2, den, discr_r;
|
||||
Byte s[256];
|
||||
Byte lambda[256];
|
||||
Byte b[256];
|
||||
Byte t[256];
|
||||
Byte omega[256];
|
||||
Byte root[256];
|
||||
Byte reg[256];
|
||||
Byte loc[256];
|
||||
int syn_error, count = 0;
|
||||
|
||||
if (pad < 0 || pad>238)
|
||||
return -1;
|
||||
|
||||
i = 0;
|
||||
while (i < FX25_NROOTS)
|
||||
{
|
||||
s[i] = data[0];
|
||||
i++;
|
||||
|
||||
}
|
||||
j = 1;
|
||||
while (j < FX25_NN - pad)
|
||||
{
|
||||
i = 0;
|
||||
while (i < FX25_NROOTS)
|
||||
{
|
||||
if (s[i] == 0)
|
||||
s[i] = data[j];
|
||||
else
|
||||
s[i] = data[j] ^ FX25_ALPHA_TO[MODNN(FX25_INDEX_OF[s[i]] + (FX25_FCR + i)*FX25_PRIM)];
|
||||
i++;
|
||||
}
|
||||
j++;
|
||||
|
||||
}
|
||||
syn_error = 0;
|
||||
i = 0;
|
||||
while (i < FX25_NROOTS)
|
||||
{
|
||||
syn_error = syn_error | s[i];
|
||||
s[i] = FX25_INDEX_OF[s[i]];
|
||||
i++;
|
||||
}
|
||||
if (syn_error == 0)
|
||||
return count;
|
||||
|
||||
memset(&lambda[1], 0, FX25_NROOTS);
|
||||
lambda[0] = 1;
|
||||
i = 0;
|
||||
while (i < FX25_NROOTS + 1)
|
||||
{
|
||||
b[i] = FX25_INDEX_OF[lambda[i]];
|
||||
i++;
|
||||
}
|
||||
|
||||
r = no_eras;
|
||||
el = no_eras;
|
||||
r++;
|
||||
while (r <= FX25_NROOTS)
|
||||
{
|
||||
discr_r = 0;
|
||||
i = 0;
|
||||
while (i < r)
|
||||
{
|
||||
if (lambda[i] != 0 && s[r - i - 1] != FX25_A0)
|
||||
discr_r = discr_r ^ FX25_ALPHA_TO[MODNN(FX25_INDEX_OF[lambda[i]] + s[r - i - 1])];
|
||||
i++;
|
||||
}
|
||||
discr_r = FX25_INDEX_OF[discr_r];
|
||||
if (discr_r == FX25_A0)
|
||||
{
|
||||
move(&b[0], &b[1], FX25_NROOTS);
|
||||
b[0] = FX25_A0;
|
||||
}
|
||||
else
|
||||
{
|
||||
t[0] = lambda[0];
|
||||
i = 0;
|
||||
while (i < FX25_NROOTS)
|
||||
{
|
||||
if (b[i] != FX25_A0)
|
||||
t[i + 1] = lambda[i + 1] ^ FX25_ALPHA_TO[MODNN(discr_r + b[i])];
|
||||
else
|
||||
t[i + 1] = lambda[i + 1];
|
||||
i++;
|
||||
}
|
||||
|
||||
if (2 * el <= r + no_eras - 1)
|
||||
{
|
||||
el = r + no_eras - el;
|
||||
i = 0;
|
||||
while (i <= FX25_NROOTS)
|
||||
{
|
||||
if (lambda[i] == 0)
|
||||
b[i] = FX25_A0;
|
||||
else
|
||||
b[i] = MODNN(FX25_INDEX_OF[lambda[i]] - discr_r + FX25_NN);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
move(&b[0], &b[1], FX25_NROOTS);
|
||||
b[0] = FX25_A0;
|
||||
}
|
||||
move(t, lambda, FX25_NROOTS + 1);
|
||||
}
|
||||
r++;
|
||||
}
|
||||
deg_lambda = 0;
|
||||
i = 0;
|
||||
while (i < FX25_NROOTS + 1)
|
||||
{
|
||||
lambda[i] = FX25_INDEX_OF[lambda[i]];
|
||||
if (lambda[i] != FX25_A0)
|
||||
deg_lambda = i;
|
||||
i++;
|
||||
}
|
||||
move(&lambda[1], ®[1], FX25_NROOTS);
|
||||
count = 0;
|
||||
i = 1;
|
||||
k = FX25_IPRIM - 1;
|
||||
while (i <= FX25_NN)
|
||||
{
|
||||
q = 1;
|
||||
j = deg_lambda;
|
||||
while (j > 0)
|
||||
{
|
||||
if (reg[j] != FX25_A0)
|
||||
{
|
||||
reg[j] = MODNN(reg[j] + j);
|
||||
q = q ^ FX25_ALPHA_TO[reg[j]];
|
||||
}
|
||||
j--;
|
||||
}
|
||||
if (q == 0)
|
||||
{
|
||||
root[count] = i;
|
||||
loc[count] = k;
|
||||
count++;
|
||||
if (count == deg_lambda)
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
k = MODNN(k + FX25_IPRIM);
|
||||
}
|
||||
if (deg_lambda != count)
|
||||
return -1;
|
||||
|
||||
deg_omega = deg_lambda - 1;
|
||||
i = 0;
|
||||
while (i <= deg_omega)
|
||||
{
|
||||
tmp = 0;
|
||||
j = i;
|
||||
while (j >= 0)
|
||||
{
|
||||
if (s[i - j] != FX25_A0 && lambda[j] != FX25_A0)
|
||||
tmp = tmp ^ FX25_ALPHA_TO[MODNN(s[i - j] + lambda[j])];
|
||||
j--;
|
||||
}
|
||||
omega[i] = FX25_INDEX_OF[tmp];
|
||||
i++;
|
||||
}
|
||||
j = count - 1;
|
||||
while (j >= 0)
|
||||
{
|
||||
num1 = 0;
|
||||
i = deg_omega;
|
||||
while (i >= 0)
|
||||
{
|
||||
if (omega[i] != FX25_A0)
|
||||
num1 = num1 ^ FX25_ALPHA_TO[MODNN(omega[i] + i * root[j])];
|
||||
i--;
|
||||
}
|
||||
|
||||
num2 = FX25_ALPHA_TO[MODNN(root[j] * (FX25_FCR - 1) + FX25_NN)];
|
||||
den = 0;
|
||||
i = FX25_MIN(deg_lambda, FX25_NROOTS - 1) & 0xFE;
|
||||
while (i >= 0)
|
||||
{
|
||||
if (lambda[i + 1] != FX25_A0)
|
||||
den = den ^ FX25_ALPHA_TO[MODNN(lambda[i + 1] + i * root[j])];
|
||||
i = i - 2;
|
||||
}
|
||||
if (num1 != 0 && loc[j] >= pad)
|
||||
data[loc[j] - pad] = data[loc[j] - pad] ^ FX25_ALPHA_TO[MODNN(FX25_INDEX_OF[num1] + FX25_INDEX_OF[num2] + FX25_NN - FX25_INDEX_OF[den])];
|
||||
j--;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
void fx25_encode_rs(Byte * data, Byte *parity, int pad, int rs_size)
|
||||
{
|
||||
switch (rs_size)
|
||||
{
|
||||
case 8:
|
||||
move(&FX25_CCSDS_poly_8[0], &FX25_GENPOLY[0], 9);
|
||||
FX25_NROOTS = rs_size;
|
||||
encode_rs(data, parity, 0);
|
||||
return;
|
||||
|
||||
case 16:
|
||||
move(&FX25_CCSDS_poly_16[0], &FX25_GENPOLY[0], 17);
|
||||
FX25_NROOTS = rs_size;
|
||||
encode_rs(data, parity, 0);
|
||||
return;
|
||||
|
||||
|
||||
|
||||
case 32:
|
||||
|
||||
move(&FX25_CCSDS_poly_32[0], &FX25_GENPOLY[0], 33);
|
||||
FX25_NROOTS = rs_size;
|
||||
encode_rs(data, parity, 0);
|
||||
return;
|
||||
|
||||
case 64:
|
||||
|
||||
move(&FX25_CCSDS_poly_64[0], &FX25_GENPOLY[0], 65);
|
||||
FX25_NROOTS = rs_size;
|
||||
encode_rs(data, parity, 0);
|
||||
return;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
int fx25_decode_rs(Byte * data, int * eras_pos, int no_eras, int pad, int rs_size)
|
||||
{
|
||||
switch (rs_size)
|
||||
{
|
||||
case 8:
|
||||
|
||||
move(&FX25_CCSDS_poly_8[0], &FX25_GENPOLY[0], 9);
|
||||
FX25_NROOTS = rs_size;
|
||||
return decode_rs(data, eras_pos, no_eras, pad);
|
||||
|
||||
case 16:
|
||||
|
||||
move(&FX25_CCSDS_poly_16[0], &FX25_GENPOLY[0], 17);
|
||||
FX25_NROOTS = rs_size;
|
||||
return decode_rs(data, eras_pos, no_eras, pad);
|
||||
|
||||
case 32:
|
||||
|
||||
move(&FX25_CCSDS_poly_32[0], &FX25_GENPOLY[0], 33);
|
||||
FX25_NROOTS = rs_size;
|
||||
return decode_rs(data, eras_pos, no_eras, pad);
|
||||
|
||||
case 64:
|
||||
|
||||
move(&FX25_CCSDS_poly_64[0], &FX25_GENPOLY[0], 65);
|
||||
FX25_NROOTS = rs_size;
|
||||
return decode_rs(data, eras_pos, no_eras, pad);
|
||||
|
||||
default:
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
88
ax25_link.h
88
ax25_link.h
|
@ -1,88 +0,0 @@
|
|||
|
||||
/* ax25_link.h */
|
||||
|
||||
|
||||
#ifndef AX25_LINK_H
|
||||
#define AX25_LINK_H 1
|
||||
|
||||
#include "ax25_pad.h" // for AX25_MAX_INFO_LEN
|
||||
|
||||
#include "dlq.h" // for dlq_item_t
|
||||
|
||||
#include "config.h" // for struct misc_config_s
|
||||
|
||||
|
||||
|
||||
// Limits and defaults for parameters.
|
||||
|
||||
|
||||
#define AX25_N1_PACLEN_MIN 1 // Max bytes in Information part of frame.
|
||||
#define AX25_N1_PACLEN_DEFAULT 256 // some v2.0 implementations have 128
|
||||
#define AX25_N1_PACLEN_MAX AX25_MAX_INFO_LEN // from ax25_pad.h
|
||||
|
||||
|
||||
#define AX25_N2_RETRY_MIN 1 // Number of times to retry before giving up.
|
||||
#define AX25_N2_RETRY_DEFAULT 10
|
||||
#define AX25_N2_RETRY_MAX 15
|
||||
|
||||
|
||||
#define AX25_T1V_FRACK_MIN 1 // Number of seconds to wait before retrying.
|
||||
#define AX25_T1V_FRACK_DEFAULT 3 // KPC-3+ has 4. TM-D710A has 3.
|
||||
#define AX25_T1V_FRACK_MAX 15
|
||||
|
||||
|
||||
#define AX25_K_MAXFRAME_BASIC_MIN 1 // Window size - number of I frames to send before waiting for ack.
|
||||
#define AX25_K_MAXFRAME_BASIC_DEFAULT 4
|
||||
#define AX25_K_MAXFRAME_BASIC_MAX 7
|
||||
|
||||
#define AX25_K_MAXFRAME_EXTENDED_MIN 1
|
||||
#define AX25_K_MAXFRAME_EXTENDED_DEFAULT 32
|
||||
#define AX25_K_MAXFRAME_EXTENDED_MAX 63 // In theory 127 but I'm restricting as explained in SREJ handling.
|
||||
|
||||
|
||||
|
||||
// Call once at startup time.
|
||||
|
||||
void ax25_link_init (struct misc_config_s *pconfig);
|
||||
|
||||
|
||||
|
||||
// IMPORTANT:
|
||||
|
||||
// These functions must be called on a single thread, one at a time.
|
||||
// The Data Link Queue (DLQ) is used to serialize events from multiple sources.
|
||||
|
||||
// Maybe the dispatch switch should be moved to ax25_link.c so they can all
|
||||
// be made static and they can't be called from the wrong place accidentally.
|
||||
|
||||
void dl_connect_request (dlq_item_t *E);
|
||||
|
||||
void dl_disconnect_request (dlq_item_t *E);
|
||||
|
||||
void dl_data_request (dlq_item_t *E);
|
||||
|
||||
void dl_register_callsign (dlq_item_t *E);
|
||||
|
||||
void dl_unregister_callsign (dlq_item_t *E);
|
||||
|
||||
void dl_outstanding_frames_request (dlq_item_t *E);
|
||||
|
||||
void dl_client_cleanup (dlq_item_t *E);
|
||||
|
||||
|
||||
void lm_data_indication (dlq_item_t *E);
|
||||
|
||||
void lm_seize_confirm (dlq_item_t *E);
|
||||
|
||||
void lm_channel_busy (dlq_item_t *E);
|
||||
|
||||
|
||||
void dl_timer_expiry (void);
|
||||
|
||||
|
||||
double ax25_link_get_next_timer_expiry (void);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* end ax25_link.h */
|
File diff suppressed because it is too large
Load diff
1831
ax25_mod.c
1831
ax25_mod.c
File diff suppressed because it is too large
Load diff
55
ax25_pad2.h
55
ax25_pad2.h
|
@ -1,55 +0,0 @@
|
|||
/*-------------------------------------------------------------------
|
||||
*
|
||||
* Name: ax25_pad2.h
|
||||
*
|
||||
* Purpose: Header file for using ax25_pad2.c
|
||||
* ax25_pad dealt only with UI frames.
|
||||
* This adds a facility for the other types: U, s, I.
|
||||
*
|
||||
*------------------------------------------------------------------*/
|
||||
|
||||
#ifndef AX25_PAD2_H
|
||||
#define AX25_PAD2_H 1
|
||||
|
||||
#include "ax25_pad.h"
|
||||
|
||||
|
||||
|
||||
|
||||
#if AX25MEMDEBUG // to investigate a memory leak problem
|
||||
|
||||
|
||||
|
||||
packet_t ax25_u_frame_debug (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int pf, int pid, unsigned char *pinfo, int info_len, char *src_file, int src_line);
|
||||
|
||||
packet_t ax25_s_frame_debug (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int modulo, int nr, int pf, unsigned char *pinfo, int info_len, char *src_file, int src_line);
|
||||
|
||||
packet_t ax25_i_frame_debug (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, int modulo, int nr, int ns, int pf, int pid, unsigned char *pinfo, int info_len, char *src_file, int src_line);
|
||||
|
||||
|
||||
#define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__)
|
||||
|
||||
#define ax25_s_frame(a,n,c,f,m,r,p,i,l) ax25_s_frame_debug(a,n,c,f,m,r,p,i,l,__FILE__,__LINE__)
|
||||
|
||||
#define ax25_i_frame(a,n,c,m,r,s,p,q,i,l) ax25_i_frame_debug(a,n,c,m,r,s,p,q,i,l,__FILE__,__LINE__)
|
||||
|
||||
|
||||
#else
|
||||
|
||||
packet_t ax25_u_frame (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int pf, int pid, unsigned char *pinfo, int info_len);
|
||||
|
||||
packet_t ax25_s_frame (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int modulo, int nr, int pf, unsigned char *pinfo, int info_len);
|
||||
|
||||
packet_t ax25_i_frame (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, int modulo, int nr, int ns, int pf, int pid, unsigned char *pinfo, int info_len);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* AX25_PAD2_H */
|
||||
|
||||
/* end ax25_pad2.h */
|
||||
|
||||
|
6
beacon.h
6
beacon.h
|
@ -1,6 +0,0 @@
|
|||
|
||||
/* beacon.h */
|
||||
|
||||
void beacon_init (struct audio_s *pmodem, struct misc_config_s *pconfig, struct igate_config_s *pigate);
|
||||
|
||||
void beacon_tracker_set_debug (int level);
|
329
berlekamp.c
329
berlekamp.c
|
@ -1,329 +0,0 @@
|
|||
/***********************************************************************
|
||||
* Copyright Henry Minsky (hqm@alum.mit.edu) 1991-2009
|
||||
*
|
||||
* This software library is licensed under terms of the GNU GENERAL
|
||||
* PUBLIC LICENSE
|
||||
*
|
||||
*
|
||||
* RSCODE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* RSCODE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Rscode. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Commercial licensing is available under a separate license, please
|
||||
* contact author for details.
|
||||
*
|
||||
* Source code is available at http://rscode.sourceforge.net
|
||||
* Berlekamp-Peterson and Berlekamp-Massey Algorithms for error-location
|
||||
*
|
||||
* From Cain, Clark, "Error-Correction Coding For Digital Communications", pp. 205.
|
||||
*
|
||||
* This finds the coefficients of the error locator polynomial.
|
||||
*
|
||||
* The roots are then found by looking for the values of a^n
|
||||
* where evaluating the polynomial yields zero.
|
||||
*
|
||||
* Error correction is done using the error-evaluator equation on pp 207.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "ecc.h"
|
||||
|
||||
/* The Error Locator Polynomial, also known as Lambda or Sigma. Lambda[0] == 1 */
|
||||
static int Lambda[MAXDEG];
|
||||
|
||||
/* The Error Evaluator Polynomial */
|
||||
static int Omega[MAXDEG];
|
||||
|
||||
/* local ANSI declarations */
|
||||
static int compute_discrepancy(int lambda[], int S[], int L, int n);
|
||||
static void init_gamma(int gamma[]);
|
||||
static void compute_modified_omega (void);
|
||||
static void mul_z_poly (int src[]);
|
||||
|
||||
/* error locations found using Chien's search*/
|
||||
static int ErrorLocs[256];
|
||||
int NErrors;
|
||||
|
||||
extern int xMaxErrors;
|
||||
|
||||
/* erasure flags */
|
||||
static int ErasureLocs[256];
|
||||
static int NErasures;
|
||||
|
||||
/* From Cain, Clark, "Error-Correction Coding For Digital Communications", pp. 216. */
|
||||
void
|
||||
Modified_Berlekamp_Massey (void)
|
||||
{
|
||||
int n, L, L2, k, d, i;
|
||||
int psi[MAXDEG], psi2[MAXDEG], D[MAXDEG];
|
||||
int gamma[MAXDEG];
|
||||
|
||||
/* initialize Gamma, the erasure locator polynomial */
|
||||
init_gamma(gamma);
|
||||
|
||||
/* initialize to z */
|
||||
copy_poly(D, gamma);
|
||||
mul_z_poly(D);
|
||||
|
||||
copy_poly(psi, gamma);
|
||||
k = -1; L = NErasures;
|
||||
|
||||
for (n = NErasures; n < NPAR; n++) {
|
||||
|
||||
d = compute_discrepancy(psi, synBytes, L, n);
|
||||
|
||||
if (d != 0) {
|
||||
|
||||
/* psi2 = psi - d*D */
|
||||
for (i = 0; i < NPAR*2; i++) psi2[i] = psi[i] ^ gmult(d, D[i]);
|
||||
|
||||
|
||||
if (L < (n-k)) {
|
||||
L2 = n-k;
|
||||
k = n-L;
|
||||
/* D = scale_poly(ginv(d), psi); */
|
||||
for (i = 0; i < NPAR*2; i++) D[i] = gmult(psi[i], ginv(d));
|
||||
L = L2;
|
||||
}
|
||||
|
||||
/* psi = psi2 */
|
||||
for (i = 0; i < NPAR*2; i++) psi[i] = psi2[i];
|
||||
}
|
||||
|
||||
mul_z_poly(D);
|
||||
}
|
||||
|
||||
for(i = 0; i < NPAR*2; i++) Lambda[i] = psi[i];
|
||||
compute_modified_omega();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* given Psi (called Lambda in Modified_Berlekamp_Massey) and synBytes,
|
||||
compute the combined erasure/error evaluator polynomial as
|
||||
Psi*S mod z^4
|
||||
*/
|
||||
void
|
||||
compute_modified_omega ()
|
||||
{
|
||||
int i;
|
||||
int product[MAXDEG*2];
|
||||
|
||||
mult_polys(product, Lambda, synBytes);
|
||||
zero_poly(Omega);
|
||||
for(i = 0; i < NPAR; i++) Omega[i] = product[i];
|
||||
|
||||
}
|
||||
|
||||
/* polynomial multiplication */
|
||||
void
|
||||
mult_polys (int dst[], int p1[], int p2[])
|
||||
{
|
||||
int i, j;
|
||||
int tmp1[MAXDEG*2];
|
||||
|
||||
for (i=0; i < (NPAR*2*2); i++) dst[i] = 0;
|
||||
|
||||
for (i = 0; i < NPAR*2; i++) {
|
||||
for(j=NPAR*2; j<(NPAR*2*2); j++) tmp1[j]=0;
|
||||
|
||||
/* scale tmp1 by p1[i] */
|
||||
for(j=0; j<NPAR*2; j++) tmp1[j]=gmult(p2[j], p1[i]);
|
||||
/* and mult (shift) tmp1 right by i */
|
||||
for (j = (NPAR*2*2)-1; j >= i; j--) tmp1[j] = tmp1[j-i];
|
||||
for (j = 0; j < i; j++) tmp1[j] = 0;
|
||||
|
||||
/* add into partial product */
|
||||
for(j=0; j < (NPAR*2*2); j++) dst[j] ^= tmp1[j];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* gamma = product (1-z*a^Ij) for erasure locs Ij */
|
||||
void
|
||||
init_gamma (int gamma[])
|
||||
{
|
||||
int e, tmp[MAXDEG];
|
||||
|
||||
zero_poly(gamma);
|
||||
zero_poly(tmp);
|
||||
gamma[0] = 1;
|
||||
|
||||
for (e = 0; e < NErasures; e++) {
|
||||
copy_poly(tmp, gamma);
|
||||
scale_poly(gexp[ErasureLocs[e]], tmp);
|
||||
mul_z_poly(tmp);
|
||||
add_polys(gamma, tmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
compute_next_omega (int d, int A[], int dst[], int src[])
|
||||
{
|
||||
int i;
|
||||
for ( i = 0; i < NPAR*2; i++) {
|
||||
dst[i] = src[i] ^ gmult(d, A[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
int
|
||||
compute_discrepancy (int lambda[], int S[], int L, int n)
|
||||
{
|
||||
int i, sum=0;
|
||||
|
||||
for (i = 0; i <= L; i++)
|
||||
sum ^= gmult(lambda[i], S[n-i]);
|
||||
return (sum);
|
||||
}
|
||||
|
||||
/********** polynomial arithmetic *******************/
|
||||
|
||||
void add_polys (int dst[], int src[])
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < NPAR*2; i++) dst[i] ^= src[i];
|
||||
}
|
||||
|
||||
void copy_poly (int dst[], int src[])
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < NPAR*2; i++) dst[i] = src[i];
|
||||
}
|
||||
|
||||
void scale_poly (int k, int poly[])
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < NPAR*2; i++) poly[i] = gmult(k, poly[i]);
|
||||
}
|
||||
|
||||
|
||||
void zero_poly (int poly[])
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < NPAR*2; i++) poly[i] = 0;
|
||||
}
|
||||
|
||||
|
||||
/* multiply by z, i.e., shift right by 1 */
|
||||
static void mul_z_poly (int src[])
|
||||
{
|
||||
int i;
|
||||
for (i = NPAR*2-1; i > 0; i--) src[i] = src[i-1];
|
||||
src[0] = 0;
|
||||
}
|
||||
|
||||
|
||||
/* Finds all the roots of an error-locator polynomial with coefficients
|
||||
* Lambda[j] by evaluating Lambda at successive values of alpha.
|
||||
*
|
||||
* This can be tested with the decoder's equations case.
|
||||
*/
|
||||
|
||||
|
||||
void
|
||||
Find_Roots (void)
|
||||
{
|
||||
int sum, r, k;
|
||||
NErrors = 0;
|
||||
|
||||
for (r = 1; r < 256; r++) {
|
||||
sum = 0;
|
||||
/* evaluate lambda at r */
|
||||
for (k = 0; k < NPAR+1; k++) {
|
||||
sum ^= gmult(gexp[(k*r)%255], Lambda[k]);
|
||||
}
|
||||
if (sum == 0)
|
||||
{
|
||||
ErrorLocs[NErrors] = (255-r); NErrors++;
|
||||
if (DEBUG) fprintf(stderr, "Root found at r = %d, (255-r) = %d\n", r, (255-r));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Combined Erasure And Error Magnitude Computation
|
||||
*
|
||||
* Pass in the codeword, its size in bytes, as well as
|
||||
* an array of any known erasure locations, along the number
|
||||
* of these erasures.
|
||||
*
|
||||
* Evaluate Omega(actually Psi)/Lambda' at the roots
|
||||
* alpha^(-i) for error locs i.
|
||||
*
|
||||
* returns 1 if everything ok, or 0 if an out-of-bounds error is found
|
||||
*
|
||||
*/
|
||||
|
||||
int
|
||||
correct_errors_erasures (unsigned char codeword[],
|
||||
int csize,
|
||||
int nerasures,
|
||||
int erasures[])
|
||||
{
|
||||
int r, i, j, err;
|
||||
|
||||
/* If you want to take advantage of erasure correction, be sure to
|
||||
set NErasures and ErasureLocs[] with the locations of erasures.
|
||||
*/
|
||||
NErasures = nerasures;
|
||||
for (i = 0; i < NErasures; i++) ErasureLocs[i] = erasures[i];
|
||||
|
||||
Modified_Berlekamp_Massey();
|
||||
Find_Roots();
|
||||
|
||||
|
||||
if (DEBUG) fprintf(stderr, "RS found %d errors\n", NErrors);
|
||||
|
||||
|
||||
if ((NErrors <= xMaxErrors) && NErrors > 0) {
|
||||
|
||||
/* first check for illegal error locs */
|
||||
for (r = 0; r < NErrors; r++) {
|
||||
if (ErrorLocs[r] >= csize) {
|
||||
if (DEBUG) fprintf(stderr, "Error loc i=%d outside of codeword length %d\n", i, csize);
|
||||
return(0);
|
||||
}
|
||||
}
|
||||
|
||||
for (r = 0; r < NErrors; r++) {
|
||||
int num, denom;
|
||||
i = ErrorLocs[r];
|
||||
/* evaluate Omega at alpha^(-i) */
|
||||
|
||||
num = 0;
|
||||
for (j = 0; j < NPAR*2; j++)
|
||||
num ^= gmult(Omega[j], gexp[((255-i)*j)%255]);
|
||||
|
||||
/* evaluate Lambda' (derivative) at alpha^(-i) ; all odd powers disappear */
|
||||
denom = 0;
|
||||
for (j = 1; j < NPAR*2; j += 2) {
|
||||
denom ^= gmult(Lambda[j], gexp[((255-i)*(j-1)) % 255]);
|
||||
}
|
||||
|
||||
err = gmult(num, ginv(denom));
|
||||
if (DEBUG) fprintf(stderr, "Error magnitude %#x at loc %d\n", err, csize-i);
|
||||
|
||||
codeword[csize-i-1] ^= err;
|
||||
}
|
||||
return(1);
|
||||
}
|
||||
else {
|
||||
if (DEBUG && NErrors) fprintf(stderr, "Uncorrectable codeword\n");
|
||||
return(0);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,285 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>calDialog</class>
|
||||
<widget class="QDialog" name="calDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>270</width>
|
||||
<height>411</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<widget class="QGroupBox" name="groupBoxA">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>120</width>
|
||||
<height>195</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Channel A</string>
|
||||
</property>
|
||||
<widget class="QPushButton" name="Low_A">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>26</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Low Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="High_A">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>66</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>High Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Both_A">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>106</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Both Tones</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Stop_A">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>146</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop TX</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBoxB">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>10</y>
|
||||
<width>120</width>
|
||||
<height>195</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Channel B</string>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<widget class="QPushButton" name="Low_B">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>26</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Low Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="High_B">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>66</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>High Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Both_B">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>106</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Both Tones</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Stop_B">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>28</x>
|
||||
<y>146</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop TX</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>210</y>
|
||||
<width>120</width>
|
||||
<height>195</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Channel C</string>
|
||||
</property>
|
||||
<widget class="QPushButton" name="High_C">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>70</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>High Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Both_C">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>110</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Both Tones</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Low_C">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>30</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Low Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Stop_C">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>150</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop TX</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>210</y>
|
||||
<width>120</width>
|
||||
<height>195</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Channel D</string>
|
||||
</property>
|
||||
<widget class="QPushButton" name="High_D">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>70</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>High Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Both_D">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>25</x>
|
||||
<y>110</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Both Tones</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Low_D">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>30</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Low Tone</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="Stop_D">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>26</x>
|
||||
<y>150</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop TX</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
<slots>
|
||||
<slot>buttonClick()</slot>
|
||||
</slots>
|
||||
</ui>
|
|
@ -1,62 +0,0 @@
|
|||
|
||||
|
||||
#ifndef CDIGIPEATER_H
|
||||
#define CDIGIPEATER_H 1
|
||||
|
||||
#include "regex.h"
|
||||
|
||||
#include "direwolf.h" /* for MAX_CHANS */
|
||||
#include "ax25_pad.h" /* for packet_t */
|
||||
#include "audio.h" /* for radio channel properties */
|
||||
|
||||
|
||||
/*
|
||||
* Information required for Connected mode digipeating.
|
||||
*
|
||||
* The configuration file reader fills in this information
|
||||
* and it is passed to cdigipeater_init at application start up time.
|
||||
*/
|
||||
|
||||
|
||||
struct cdigi_config_s {
|
||||
|
||||
/*
|
||||
* Rules for each of the [from_chan][to_chan] combinations.
|
||||
*/
|
||||
int enabled[MAX_CHANS][MAX_CHANS]; // Is it enabled for from/to pair?
|
||||
|
||||
int has_alias[MAX_CHANS][MAX_CHANS]; // If there was no alias in the config file,
|
||||
// the structure below will not be set up
|
||||
// properly and an attempt to use it could
|
||||
// result in a crash. (fixed v1.5)
|
||||
// Not needed for [APRS] DIGIPEAT because
|
||||
// the alias is mandatory there.
|
||||
regex_t alias[MAX_CHANS][MAX_CHANS];
|
||||
|
||||
char *cfilter_str[MAX_CHANS][MAX_CHANS];
|
||||
// NULL or optional Packet Filter strings such as "t/m".
|
||||
};
|
||||
|
||||
/*
|
||||
* Call once at application start up time.
|
||||
*/
|
||||
|
||||
extern void cdigipeater_init (struct audio_s *p_audio_config, struct cdigi_config_s *p_cdigi_config);
|
||||
|
||||
/*
|
||||
* Call this for each packet received.
|
||||
* Suitable packets will be queued for transmission.
|
||||
*/
|
||||
|
||||
extern void cdigipeater (int from_chan, packet_t pp);
|
||||
|
||||
|
||||
/* Make statistics available. */
|
||||
|
||||
int cdigipeater_get_count (int from_chan, int to_chan);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* end cdigipeater.h */
|
||||
|
5
cm108.h
5
cm108.h
|
@ -1,5 +0,0 @@
|
|||
/* Dire Wolf cm108.h */
|
||||
|
||||
extern void cm108_find_ptt (char *output_audio_device, char *ptt_device, int ptt_device_size);
|
||||
|
||||
extern int cm108_set_gpio_pin (char *name, int num, int state);
|
9
config
9
config
|
@ -1,9 +0,0 @@
|
|||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = false
|
||||
bare = true
|
||||
symlinks = false
|
||||
ignorecase = true
|
||||
[remote "origin"]
|
||||
url = ssh://git@vps1.g8bpq.net:7322/home/git/QtSM
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
262
config.h
262
config.h
|
@ -1,262 +0,0 @@
|
|||
|
||||
/*----------------------------------------------------------------------------
|
||||
*
|
||||
* Name: config.h
|
||||
*
|
||||
* Purpose:
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
*-----------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H 1
|
||||
|
||||
#include "audio.h" /* for struct audio_s */
|
||||
#include "digipeater.h" /* for struct digi_config_s */
|
||||
#include "cdigipeater.h" /* for struct cdigi_config_s */
|
||||
#include "aprs_tt.h" /* for struct tt_config_s */
|
||||
#include "igate.h" /* for struct igate_config_s */
|
||||
|
||||
/*
|
||||
* All the leftovers.
|
||||
* This wasn't thought out. It just happened.
|
||||
*/
|
||||
|
||||
enum beacon_type_e { BEACON_IGNORE, BEACON_POSITION, BEACON_OBJECT, BEACON_TRACKER, BEACON_CUSTOM, BEACON_IGATE };
|
||||
|
||||
enum sendto_type_e { SENDTO_XMIT, SENDTO_IGATE, SENDTO_RECV };
|
||||
|
||||
|
||||
#define MAX_BEACONS 30
|
||||
#define MAX_KISS_TCP_PORTS (MAX_CHANS+1)
|
||||
|
||||
struct misc_config_s {
|
||||
|
||||
int agwpe_port; /* TCP Port number for the "AGW TCPIP Socket Interface" */
|
||||
|
||||
// Previously we allowed only a single TCP port for KISS.
|
||||
// An increasing number of people want to run multiple radios.
|
||||
// Unfortunately, most applications don't know how to deal with multi-radio TNCs.
|
||||
// They ignore the channel on receive and always transmit to channel 0.
|
||||
// Running multiple instances of direwolf is a work-around but this leads to
|
||||
// more complex configuration and we lose the cross-channel digipeating capability.
|
||||
// In release 1.7 we add a new feature to assign a single radio channel to a TCP port.
|
||||
// e.g.
|
||||
// KISSPORT 8001 # default, all channels. Radio channel = KISS channel.
|
||||
//
|
||||
// KISSPORT 7000 0 # Only radio channel 0 for receive.
|
||||
// # Transmit to radio channel 0, ignoring KISS channel.
|
||||
//
|
||||
// KISSPORT 7001 1 # Only radio channel 1 for receive. KISS channel set to 0.
|
||||
// # Transmit to radio channel 1, ignoring KISS channel.
|
||||
|
||||
int kiss_port[MAX_KISS_TCP_PORTS]; /* TCP Port number for the "TCP KISS" protocol. */
|
||||
int kiss_chan[MAX_KISS_TCP_PORTS]; /* Radio Channel number for this port or -1 for all. */
|
||||
|
||||
int kiss_copy; /* Data from network KISS client is copied to all others. */
|
||||
int enable_kiss_pt; /* Enable pseudo terminal for KISS. */
|
||||
/* Want this to be off by default because it hangs */
|
||||
/* after a while if nothing is reading from other end. */
|
||||
|
||||
char kiss_serial_port[20];
|
||||
/* Serial port name for our end of the */
|
||||
/* virtual null modem for native Windows apps. */
|
||||
/* Version 1.5 add same capability for Linux. */
|
||||
|
||||
int kiss_serial_speed; /* Speed, in bps, for the KISS serial port. */
|
||||
/* If 0, just leave what was already there. */
|
||||
|
||||
int kiss_serial_poll; /* When using Bluetooth KISS, the /dev/rfcomm0 device */
|
||||
/* will appear and disappear as the remote application */
|
||||
/* opens and closes the virtual COM port. */
|
||||
/* When this is non-zero, we will check periodically to */
|
||||
/* see if the device has appeared and we will open it. */
|
||||
|
||||
char gpsnmea_port[20]; /* Serial port name for reading NMEA sentences from GPS. */
|
||||
/* e.g. COM22, /dev/ttyACM0 */
|
||||
|
||||
int gpsnmea_speed; /* Speed for above, baud, default 4800. */
|
||||
|
||||
char gpsd_host[20]; /* Host for gpsd server. */
|
||||
/* e.g. localhost, 192.168.1.2 */
|
||||
|
||||
int gpsd_port; /* Port number for gpsd server. */
|
||||
/* Default is 2947. */
|
||||
|
||||
|
||||
char waypoint_serial_port[20]; /* Serial port name for sending NMEA waypoint sentences */
|
||||
/* to a GPS map display or other mapping application. */
|
||||
/* e.g. COM22, /dev/ttyACM0 */
|
||||
/* Currently no option for setting non-standard speed. */
|
||||
/* This was done in 2014 and no one has complained yet. */
|
||||
|
||||
char waypoint_udp_hostname[80]; /* Destination host when using UDP. */
|
||||
|
||||
int waypoint_udp_portnum; /* UDP port. */
|
||||
|
||||
int waypoint_formats; /* Which sentence formats should be generated? */
|
||||
|
||||
#define WPL_FORMAT_NMEA_GENERIC 0x01 /* N $GPWPL */
|
||||
#define WPL_FORMAT_GARMIN 0x02 /* G $PGRMW */
|
||||
#define WPL_FORMAT_MAGELLAN 0x04 /* M $PMGNWPL */
|
||||
#define WPL_FORMAT_KENWOOD 0x08 /* K $PKWDWPL */
|
||||
#define WPL_FORMAT_AIS 0x10 /* A !AIVDM */
|
||||
|
||||
|
||||
int log_daily_names; /* True to generate new log file each day. */
|
||||
|
||||
char log_path[80]; /* Either directory or full file name depending on above. */
|
||||
|
||||
int dns_sd_enabled; /* DNS Service Discovery announcement enabled. */
|
||||
char dns_sd_name[64]; /* Name announced on dns-sd; defaults to "Dire Wolf on <hostname>" */
|
||||
|
||||
int sb_configured; /* TRUE if SmartBeaconing is configured. */
|
||||
int sb_fast_speed; /* MPH */
|
||||
int sb_fast_rate; /* seconds */
|
||||
int sb_slow_speed; /* MPH */
|
||||
int sb_slow_rate; /* seconds */
|
||||
int sb_turn_time; /* seconds */
|
||||
int sb_turn_angle; /* degrees */
|
||||
int sb_turn_slope; /* degrees * MPH */
|
||||
|
||||
// AX.25 connected mode.
|
||||
|
||||
int frack; /* Number of seconds to wait for ack to transmission. */
|
||||
|
||||
int retry; /* Number of times to retry before giving up. */
|
||||
|
||||
int paclen; /* Max number of bytes in information part of frame. */
|
||||
|
||||
int maxframe_basic; /* Max frames to send before ACK. mod 8 "Window" size. */
|
||||
|
||||
int maxframe_extended; /* Max frames to send before ACK. mod 128 "Window" size. */
|
||||
|
||||
int maxv22; /* Maximum number of unanswered SABME frames sent before */
|
||||
/* switching to SABM. This is to handle the case of an old */
|
||||
/* TNC which simply ignores SABME rather than replying with FRMR. */
|
||||
|
||||
char **v20_addrs; /* Stations known to understand only AX.25 v2.0 so we don't */
|
||||
/* waste time trying v2.2 first. */
|
||||
|
||||
int v20_count; /* Number of station addresses in array above. */
|
||||
|
||||
char **noxid_addrs; /* Stations known not to understand XID command so don't */
|
||||
/* waste time sending it and eventually giving up. */
|
||||
/* AX.25 for Linux is the one known case, so far, where */
|
||||
/* SABME is implemented but XID is not. */
|
||||
|
||||
int noxid_count; /* Number of station addresses in array above. */
|
||||
|
||||
|
||||
// Beacons.
|
||||
|
||||
int num_beacons; /* Number of beacons defined. */
|
||||
|
||||
struct beacon_s {
|
||||
|
||||
enum beacon_type_e btype; /* Position or object. */
|
||||
|
||||
int lineno; /* Line number from config file for later error messages. */
|
||||
|
||||
enum sendto_type_e sendto_type;
|
||||
|
||||
/* SENDTO_XMIT - Usually beacons go to a radio transmitter. */
|
||||
/* chan, below is the channel number. */
|
||||
/* SENDTO_IGATE - Send to IGate, probably to announce my position */
|
||||
/* rather than relying on someone else to hear */
|
||||
/* me on the radio and report me. */
|
||||
/* SENDTO_RECV - Pretend this was heard on the specified */
|
||||
/* radio channel. Mostly for testing. It is a */
|
||||
/* convenient way to send packets to attached apps. */
|
||||
|
||||
int sendto_chan; /* Transmit or simulated receive channel for above. Should be 0 for IGate. */
|
||||
|
||||
int delay; /* Seconds to delay before first transmission. */
|
||||
|
||||
int slot; /* Seconds after hour for slotted time beacons. */
|
||||
/* If specified, it overrides any 'delay' value. */
|
||||
|
||||
int every; /* Time between transmissions, seconds. */
|
||||
/* Remains fixed for PBEACON and OBEACON. */
|
||||
/* Dynamically adjusted for TBEACON. */
|
||||
|
||||
time_t next; /* Unix time to transmit next one. */
|
||||
|
||||
char *source; /* NULL or explicit AX.25 source address to use */
|
||||
/* instead of the mycall value for the channel. */
|
||||
|
||||
char *dest; /* NULL or explicit AX.25 destination to use */
|
||||
/* instead of the software version such as APDW11. */
|
||||
|
||||
int compress; /* Use more compact form? */
|
||||
|
||||
char objname[10]; /* Object name. Any printable characters. */
|
||||
|
||||
char *via; /* Path, e.g. "WIDE1-1,WIDE2-1" or NULL. */
|
||||
|
||||
char *custom_info; /* Info part for handcrafted custom beacon. */
|
||||
/* Ignore the rest below if this is set. */
|
||||
|
||||
char *custom_infocmd; /* Command to generate info part. */
|
||||
/* Again, other options below are then ignored. */
|
||||
|
||||
int messaging; /* Set messaging attribute for position report. */
|
||||
/* i.e. Data Type Indicator of '=' rather than '!' */
|
||||
|
||||
double lat; /* Latitude and longitude. */
|
||||
double lon;
|
||||
int ambiguity; /* Number of lower digits to trim from location. 0 (default), 1, 2, 3, 4. */
|
||||
float alt_m; /* Altitude in meters. */
|
||||
|
||||
char symtab; /* Symbol table: / or \ or overlay character. */
|
||||
char symbol; /* Symbol code. */
|
||||
|
||||
float power; /* For PHG. */
|
||||
float height; /* HAAT in feet */
|
||||
float gain; /* Original protocol spec was unclear. */
|
||||
/* Addendum 1.1 clarifies it is dBi not dBd. */
|
||||
|
||||
char dir[3]; /* 1 or 2 of N,E,W,S, or empty for omni. */
|
||||
|
||||
float freq; /* MHz. */
|
||||
float tone; /* Hz. */
|
||||
float offset; /* MHz. */
|
||||
|
||||
char *comment; /* Comment or NULL. */
|
||||
char *commentcmd; /* Command to append more to Comment or NULL. */
|
||||
|
||||
|
||||
} beacon[MAX_BEACONS];
|
||||
|
||||
};
|
||||
|
||||
|
||||
#define MIN_IP_PORT_NUMBER 1024
|
||||
#define MAX_IP_PORT_NUMBER 49151
|
||||
|
||||
|
||||
#define DEFAULT_AGWPE_PORT 8000 /* Like everyone else. */
|
||||
#define DEFAULT_KISS_PORT 8001 /* Above plus 1. */
|
||||
|
||||
|
||||
#define DEFAULT_NULLMODEM "COM3" /* should be equiv. to /dev/ttyS2 on Cygwin */
|
||||
|
||||
|
||||
|
||||
|
||||
extern void config_init (char *fname, struct audio_s *p_modem,
|
||||
struct digi_config_s *digi_config,
|
||||
struct cdigi_config_s *cdigi_config,
|
||||
struct tt_config_s *p_tt_config,
|
||||
struct igate_config_s *p_igate_config,
|
||||
struct misc_config_s *misc_config);
|
||||
|
||||
|
||||
|
||||
#endif /* CONFIG_H */
|
||||
|
||||
/* end config.h */
|
||||
|
||||
|
|
@ -1,201 +0,0 @@
|
|||
[General]
|
||||
geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0z\0\0\0\t\0\0\x4=\0\0\x2\xf9\0\0\0{\0\0\0(\0\0\x4<\0\0\x2\xf8\0\0\0\0\0\0\0\0\x5\0\0\0\0{\0\0\0(\0\0\x4<\0\0\x2\xf8)"
|
||||
windowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3\xc2\0\0\x2\xb9\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
|
||||
PSKWindow=@Rect(46 499 366 140)
|
||||
FontFamily=Courier New
|
||||
PointSize=12
|
||||
Weight=50
|
||||
|
||||
[AX25_A]
|
||||
Retries=15
|
||||
HiToneRaise=0
|
||||
Maxframe=3
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=1500
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=0
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=0
|
||||
MEMRecovery=200
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
FX25=1
|
||||
IL2P=2
|
||||
RSID_UI=0
|
||||
RSID_SABM=0
|
||||
RSID_SetModem=0
|
||||
|
||||
[Init]
|
||||
SoundMode=0
|
||||
UDPClientPort=8888
|
||||
UDPServerPort=8884
|
||||
TXPort=8884
|
||||
UDPServer=0
|
||||
UDPHost=192.168.1.255
|
||||
TXSampleRate=12000
|
||||
RXSampleRate=12000
|
||||
SndRXDeviceName="CABLE-B OUTPUT (VB-AUDIO CABLE "
|
||||
SndTXDeviceName=CABLE-B INPUT (VB-AUDIO CABLE B
|
||||
SCO=0
|
||||
DualPTT=1
|
||||
TXRotate=0
|
||||
DispMode=1
|
||||
PTT=
|
||||
PTTBAUD=19200
|
||||
PTTMode=1
|
||||
PTTOffString=
|
||||
PTTOnString=
|
||||
pttGPIOPin=17
|
||||
pttGPIOPinR=17
|
||||
CM108Addr=0xD8C:0x08
|
||||
HamLibPort=4532
|
||||
HamLibHost=127.0.0.1
|
||||
MinimizetoTray=1
|
||||
multiCore=1
|
||||
Wisdom=(fftw-3.3.5 fftwf_wisdom #x9e7d4dee #xdb14fed1 #x34bf76a4 #xeb6e8fdf\n (fftwf_codelet_n2fv_12_avx 0 #x10048 #x10048 #x0 #xb0767e46 #x8d41dd22 #x439264a0 #x18435a99)\n (fftwf_rdft_rank0_register 0 #x11048 #x11048 #x0 #xff75c762 #x3a0ee093 #x5b78d592 #x6b6be60e)\n (fftwf_codelet_t2fv_2_avx 0 #x11048 #x11048 #x0 #x34057a74 #x664db78f #xa9524ebc #x606afd88)\n (fftwf_dft_nop_register 0 #x11048 #x11048 #x0 #x4a593e24 #xb5f06ddf #xf11fe7f2 #xc010b545)\n (fftwf_dft_bluestein_register 0 #x11048 #x11048 #x0 #x5e17c068 #x1682c5d6 #x89dd79be #x9b951c0f)\n (fftwf_dft_vrank_geq1_register 0 #x10048 #x10048 #x0 #x2fce15e1 #x178d4f4d #x1e956a41 #xf3fd6b80)\n (fftwf_codelet_t1fuv_4_sse2 0 #x11048 #x11048 #x0 #x2fb84bc5 #x2792028e #x8ec66ed5 #x47b5f7dc)\n (fftwf_dft_buffered_register 0 #x11048 #x11048 #x0 #x4f8e87b4 #xec4f2fa0 #x79fe76a1 #xa16e32a5)\n (fftwf_dft_vrank_geq1_register 0 #x11048 #x11048 #x0 #x8a9c355b #xb6dbadad #xbac1daac #xa866ceb3)\n (fftwf_dft_r2hc_register 0 #x11048 #x11048 #x0 #x576d5db6 #xa6a15f8a #x875d87d5 #x7561a866)\n (fftwf_codelet_t1fv_6_avx 0 #x10048 #x10048 #x0 #xd9db29d8 #x3302fcf3 #x19ce6e5d #x869fc341)\n (fftwf_dft_vrank_geq1_register 0 #x11048 #x11048 #x0 #xf7abab03 #x5f0e79b1 #x1b8367ad #xe5028f2c)\n (fftwf_codelet_t1fv_12_avx 0 #x10048 #x10048 #x0 #x0b0d3933 #x08267d12 #x45613873 #xde496efe)\n)\n
|
||||
WaterfallMin=0
|
||||
WaterfallMax=3300
|
||||
|
||||
[AX25_B]
|
||||
Retries=15
|
||||
HiToneRaise=0
|
||||
Maxframe=3
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=1500
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=0
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=0
|
||||
MEMRecovery=200
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
FX25=1
|
||||
IL2P=2
|
||||
RSID_UI=0
|
||||
RSID_SABM=0
|
||||
RSID_SetModem=0
|
||||
|
||||
[Modem]
|
||||
NRRcvrPairs1=2
|
||||
NRRcvrPairs2=2
|
||||
NRRcvrPairs3=0
|
||||
NRRcvrPairs4=2
|
||||
RcvrShift1=50
|
||||
RcvrShift2=30
|
||||
RcvrShift3=30
|
||||
RcvrShift4=30
|
||||
ModemType1=4
|
||||
ModemType2=14
|
||||
ModemType3=0
|
||||
ModemType4=14
|
||||
soundChannel1=1
|
||||
soundChannel2=1
|
||||
soundChannel3=0
|
||||
soundChannel4=0
|
||||
DCDThreshold=40
|
||||
rxOffset=-100
|
||||
PreEmphasisAll1=0
|
||||
PreEmphasisAll2=0
|
||||
PreEmphasisAll3=0
|
||||
PreEmphasisAll4=0
|
||||
PreEmphasisDB1=0
|
||||
PreEmphasisDB2=0
|
||||
PreEmphasisDB3=0
|
||||
PreEmphasisDB4=0
|
||||
TxDelay1=250
|
||||
TxDelay2=250
|
||||
TxDelay3=250
|
||||
TxDelay4=250
|
||||
TxTail1=50
|
||||
TxTail2=50
|
||||
TxTail3=50
|
||||
TxTail4=50
|
||||
CWIDCall=
|
||||
CWIDInterval=0
|
||||
CWIDLeft=0
|
||||
CWIDRight=0
|
||||
CWIDType=1
|
||||
RXFreq1=1700
|
||||
RXFreq2=1700
|
||||
RXFreq3=500
|
||||
RXFreq4=1700
|
||||
CWIDMark=
|
||||
afterTraffic=false
|
||||
|
||||
[AGWHost]
|
||||
Server=1
|
||||
Port=8000
|
||||
|
||||
[KISS]
|
||||
Server=0
|
||||
Port=8105
|
||||
|
||||
[AX25_C]
|
||||
Retries=15
|
||||
HiToneRaise=0
|
||||
Maxframe=3
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=1500
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=0
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=0
|
||||
MEMRecovery=200
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
FX25=1
|
||||
IL2P=0
|
||||
RSID_UI=0
|
||||
RSID_SABM=0
|
||||
RSID_SetModem=0
|
||||
|
||||
[Window]
|
||||
Waterfall1=1
|
||||
Waterfall2=1
|
||||
|
||||
[AX25_D]
|
||||
Retries=15
|
||||
HiToneRaise=0
|
||||
Maxframe=3
|
||||
FrackTime=5
|
||||
IdleTime=180
|
||||
SlotTime=100
|
||||
Persist=128
|
||||
RespTime=1500
|
||||
TXFrmMode=1
|
||||
FrameCollector=6
|
||||
ExcludeCallsigns=
|
||||
ExcludeAPRSFrmType=
|
||||
KISSOptimization=0
|
||||
DynamicFrack=0
|
||||
BitRecovery=0
|
||||
NonAX25Frm=0
|
||||
MEMRecovery=200
|
||||
IPOLL=80
|
||||
MyDigiCall=
|
||||
FX25=1
|
||||
IL2P=0
|
||||
RSID_UI=0
|
||||
RSID_SABM=0
|
||||
RSID_SetModem=0
|
|
@ -1,12 +0,0 @@
|
|||
#define _MSC_EXTENSIONS
|
||||
#define _INTEGRAL_MAX_BITS 64
|
||||
#define _MSC_VER 1916
|
||||
#define _MSC_FULL_VER 191627050
|
||||
#define _MSC_BUILD 0
|
||||
#define _WIN32
|
||||
#define _M_IX86 600
|
||||
#define _M_IX86_FP 2
|
||||
#define _CPPRTTI
|
||||
#define _DEBUG
|
||||
#define _MT
|
||||
#define _DLL
|
|
@ -1,12 +0,0 @@
|
|||
#define _MSC_EXTENSIONS
|
||||
#define _INTEGRAL_MAX_BITS 64
|
||||
#define _MSC_VER 1916
|
||||
#define _MSC_FULL_VER 191627043
|
||||
#define _MSC_BUILD 0
|
||||
#define _WIN32
|
||||
#define _M_IX86 600
|
||||
#define _M_IX86_FP 2
|
||||
#define _CPPRTTI
|
||||
#define _DEBUG
|
||||
#define _MT
|
||||
#define _DLL
|
150
decode_aprs.h
150
decode_aprs.h
|
@ -1,150 +0,0 @@
|
|||
|
||||
/* decode_aprs.h */
|
||||
|
||||
|
||||
#ifndef DECODE_APRS_H
|
||||
|
||||
#define DECODE_APRS_H 1
|
||||
|
||||
|
||||
|
||||
#ifndef G_UNKNOWN
|
||||
#include "latlong.h"
|
||||
#endif
|
||||
|
||||
#ifndef AX25_MAX_ADDR_LEN
|
||||
#include "ax25_pad.h"
|
||||
#endif
|
||||
|
||||
#ifndef APRSTT_LOC_DESC_LEN
|
||||
#include "aprs_tt.h"
|
||||
#endif
|
||||
|
||||
typedef struct decode_aprs_s {
|
||||
|
||||
int g_quiet; /* Suppress error messages when decoding. */
|
||||
|
||||
char g_src[AX25_MAX_ADDR_LEN];
|
||||
|
||||
char g_dest[AX25_MAX_ADDR_LEN];
|
||||
|
||||
char g_data_type_desc[100]; /* APRS data type description. Telemetry descriptions get pretty long. */
|
||||
|
||||
char g_symbol_table; /* The Symbol Table Identifier character selects one */
|
||||
/* of the two Symbol Tables, or it may be used as */
|
||||
/* single-character (alpha or numeric) overlay, as follows: */
|
||||
|
||||
/* / Primary Symbol Table (mostly stations) */
|
||||
|
||||
/* \ Alternate Symbol Table (mostly Objects) */
|
||||
|
||||
/* 0-9 Numeric overlay. Symbol from Alternate Symbol */
|
||||
/* Table (uncompressed lat/long data format) */
|
||||
|
||||
/* a-j Numeric overlay. Symbol from Alternate */
|
||||
/* Symbol Table (compressed lat/long data */
|
||||
/* format only). i.e. a-j maps to 0-9 */
|
||||
|
||||
/* A-Z Alpha overlay. Symbol from Alternate Symbol Table */
|
||||
|
||||
|
||||
char g_symbol_code; /* Where the Symbol Table Identifier is 0-9 or A-Z (or a-j */
|
||||
/* with compressed position data only), the symbol comes from */
|
||||
/* the Alternate Symbol Table, and is overlaid with the */
|
||||
/* identifier (as a single digit or a capital letter). */
|
||||
|
||||
char g_aprstt_loc[APRSTT_LOC_DESC_LEN]; /* APRStt location from !DAO! */
|
||||
|
||||
double g_lat, g_lon; /* Location, degrees. Negative for South or West. */
|
||||
/* Set to G_UNKNOWN if missing or error. */
|
||||
|
||||
char g_maidenhead[12]; /* 4 or 6 (or 8?) character maidenhead locator. */
|
||||
|
||||
char g_name[12]; /* Object or item name. Max. 9 characters. */
|
||||
|
||||
char g_addressee[12]; /* Addressee for a "message." Max. 9 characters. */
|
||||
/* Also for Directed Station Query which is a */
|
||||
/* special case of message. */
|
||||
|
||||
enum message_subtype_e { message_subtype_invalid = 0,
|
||||
message_subtype_message,
|
||||
message_subtype_ack,
|
||||
message_subtype_rej,
|
||||
message_subtype_telem_parm,
|
||||
message_subtype_telem_unit,
|
||||
message_subtype_telem_eqns,
|
||||
message_subtype_telem_bits,
|
||||
message_subtype_directed_query
|
||||
} g_message_subtype; /* Various cases of the overloaded "message." */
|
||||
|
||||
char g_message_number[12]; /* Message number. Should be 1 - 5 alphanumeric characters if used. */
|
||||
/* Addendum 1.1 has new format {mm} or {mm}aa with only two */
|
||||
/* characters for message number and an ack riding piggyback. */
|
||||
|
||||
float g_speed_mph; /* Speed in MPH. */
|
||||
/* The APRS transmission uses knots so watch out for */
|
||||
/* conversions when sending and receiving APRS packets. */
|
||||
|
||||
float g_course; /* 0 = North, 90 = East, etc. */
|
||||
|
||||
int g_power; /* Transmitter power in watts. */
|
||||
|
||||
int g_height; /* Antenna height above average terrain, feet. */
|
||||
|
||||
int g_gain; /* Antenna gain in dB. */
|
||||
|
||||
char g_directivity[12]; /* Direction of max signal strength */
|
||||
|
||||
float g_range; /* Precomputed radio range in miles. */
|
||||
|
||||
float g_altitude_ft; /* Feet above median sea level. */
|
||||
/* I used feet here because the APRS specification */
|
||||
/* has units of feet for alititude. Meters would be */
|
||||
/* more natural to the other 96% of the world. */
|
||||
|
||||
char g_mfr[80]; /* Manufacturer or application. */
|
||||
|
||||
char g_mic_e_status[32]; /* MIC-E message. */
|
||||
|
||||
double g_freq; /* Frequency, MHz */
|
||||
|
||||
float g_tone; /* CTCSS tone, Hz, one fractional digit */
|
||||
|
||||
int g_dcs; /* Digital coded squelch, print as 3 octal digits. */
|
||||
|
||||
int g_offset; /* Transmit offset, kHz */
|
||||
|
||||
|
||||
char g_query_type[12]; /* General Query: APRS, IGATE, WX, ... */
|
||||
/* Addressee is NOT set. */
|
||||
|
||||
/* Directed Station Query: exactly 5 characters. */
|
||||
/* APRSD, APRST, PING?, ... */
|
||||
/* Addressee is set. */
|
||||
|
||||
double g_footprint_lat; /* A general query may contain a foot print. */
|
||||
double g_footprint_lon; /* Set all to G_UNKNOWN if not used. */
|
||||
float g_footprint_radius; /* Radius in miles. */
|
||||
|
||||
char g_query_callsign[12]; /* Directed query may contain callsign. */
|
||||
/* e.g. tell me all objects from that callsign. */
|
||||
|
||||
|
||||
char g_weather[500]; /* Weather. Can get quite long. Rethink max size. */
|
||||
|
||||
char g_telemetry[256]; /* Telemetry data. Rethink max size. */
|
||||
|
||||
char g_comment[256]; /* Comment. */
|
||||
|
||||
} decode_aprs_t;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
extern void decode_aprs (decode_aprs_t *A, packet_t pp, int quiet, char *third_party_src);
|
||||
|
||||
extern void decode_aprs_print (decode_aprs_t *A);
|
||||
|
||||
|
||||
#endif
|
10
dedupe.h
10
dedupe.h
|
@ -1,10 +0,0 @@
|
|||
|
||||
|
||||
void dedupe_init (int ttl);
|
||||
|
||||
void dedupe_remember (packet_t pp, int chan);
|
||||
|
||||
int dedupe_check (packet_t pp, int chan);
|
||||
|
||||
|
||||
/* end dedupe.h */
|
17
demod.h
17
demod.h
|
@ -1,17 +0,0 @@
|
|||
|
||||
|
||||
/* demod.h */
|
||||
|
||||
#include "audio.h" /* for struct audio_s */
|
||||
#include "ax25_pad.h" /* for alevel_t */
|
||||
|
||||
|
||||
int demod_init (struct audio_s *pa);
|
||||
|
||||
int demod_get_sample (int a);
|
||||
|
||||
void demod_process_sample (int chan, int subchan, int sam);
|
||||
|
||||
void demod_print_agc (int chan, int subchan);
|
||||
|
||||
alevel_t demod_get_audio_level (int chan, int subchan);
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
/* demod_afsk.h */
|
||||
|
||||
|
||||
void demod_afsk_init (int samples_per_sec, int baud, int mark_freq,
|
||||
int space_freq, char profile, struct demodulator_state_s *D);
|
||||
|
||||
void demod_afsk_process_sample (int chan, int subchan, int sam, struct demodulator_state_s *D);
|
|
@ -1,7 +0,0 @@
|
|||
|
||||
/* demod_psk.h */
|
||||
|
||||
|
||||
void demod_psk_init (enum modem_t modem_type, enum v26_e v26_alt, int samples_per_sec, int bps, char profile, struct demodulator_state_s *D);
|
||||
|
||||
void demod_psk_process_sample (int chan, int subchan, int sam, struct demodulator_state_s *D);
|
|
@ -1 +0,0 @@
|
|||
Unnamed repository; edit this file 'description' to name the repository.
|
979
devicesDialog.ui
979
devicesDialog.ui
|
@ -1,979 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>devicesDialog</class>
|
||||
<widget class="QDialog" name="devicesDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>535</width>
|
||||
<height>698</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<property name="sizeGripEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>5</x>
|
||||
<y>10</y>
|
||||
<width>512</width>
|
||||
<height>671</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="verticalScrollBarPolicy">
|
||||
<enum>Qt::ScrollBarAsNeeded</enum>
|
||||
</property>
|
||||
<property name="horizontalScrollBarPolicy">
|
||||
<enum>Qt::ScrollBarAsNeeded</enum>
|
||||
</property>
|
||||
<property name="widgetResizable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>508</width>
|
||||
<height>668</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>5</x>
|
||||
<y>10</y>
|
||||
<width>541</width>
|
||||
<height>331</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Sound Card</string>
|
||||
</property>
|
||||
<widget class="QComboBox" name="outputDevice">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>108</x>
|
||||
<y>25</y>
|
||||
<width>261</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="inputDevice">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>108</x>
|
||||
<y>55</y>
|
||||
<width>261</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>13</x>
|
||||
<y>25</y>
|
||||
<width>91</width>
|
||||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>OutputDevice</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>13</x>
|
||||
<y>55</y>
|
||||
<width>71</width>
|
||||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Input Device</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="txRotation">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>204</y>
|
||||
<width>101</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TX Rotation</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="colourWaterfall">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>254</y>
|
||||
<width>143</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Colour Waterfall</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="stopWFonMinimize">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>279</y>
|
||||
<width>251</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop Waterfall on Minimize</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="minimizeonStart">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>304</y>
|
||||
<width>251</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Minimize window on startup</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="txSamplerate">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>108</x>
|
||||
<y>124</y>
|
||||
<width>63</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>12000</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="rxSamplerate">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>304</x>
|
||||
<y>124</y>
|
||||
<width>63</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>12000</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>13</x>
|
||||
<y>125</y>
|
||||
<width>91</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TX SampleRate</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>190</x>
|
||||
<y>125</y>
|
||||
<width>91</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>RX SampleRate</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="Modem_1_Chan">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>70</x>
|
||||
<y>164</y>
|
||||
<width>86</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Left/Mono</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Right</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>12</x>
|
||||
<y>166</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Modem 1</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="Modem_2_Chan">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>180</x>
|
||||
<y>164</y>
|
||||
<width>86</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Left/Mono</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Right</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_13">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>165</x>
|
||||
<y>166</y>
|
||||
<width>21</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>2</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="singleChannelOutput">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>229</y>
|
||||
<width>221</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Single Channel Output</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="DualPTT">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>201</y>
|
||||
<width>91</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Use separate PTT signals for the two Modems. </p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Dual PTT</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="ALSA">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>30</x>
|
||||
<y>90</y>
|
||||
<width>71</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>ALSA</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="OSS">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>100</x>
|
||||
<y>90</y>
|
||||
<width>61</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>OSS</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="PULSE">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>168</x>
|
||||
<y>90</y>
|
||||
<width>91</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Pulse Audio</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="multiCore">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>260</x>
|
||||
<y>205</y>
|
||||
<width>191</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Check to run each modem in a separate thread. This may improve performace on multicore processors like the Pi3 and 4 but will reduce performance on a single core procssor</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>use multiple threads</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="UDP">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>334</x>
|
||||
<y>90</y>
|
||||
<width>51</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>UDP </string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="UDPPort">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>434</x>
|
||||
<y>90</y>
|
||||
<width>41</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>8888</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="Modem_3_Chan">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>290</x>
|
||||
<y>164</y>
|
||||
<width>86</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Left/Mono</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Right</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_14">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>272</x>
|
||||
<y>166</y>
|
||||
<width>21</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>3</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_15">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>385</x>
|
||||
<y>166</y>
|
||||
<width>21</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>4</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="Modem_4_Chan">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>400</x>
|
||||
<y>164</y>
|
||||
<width>86</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Left/Mono</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Right</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>384</x>
|
||||
<y>92</y>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Port</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="WaterfallMin">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>262</x>
|
||||
<y>252</y>
|
||||
<width>63</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>100</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>200</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>300</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="WaterfallMax">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>376</x>
|
||||
<y>252</y>
|
||||
<width>63</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>2500</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>2800</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>3000</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>3300</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>5500</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>158</x>
|
||||
<y>254</y>
|
||||
<width>107</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Waterfall Range</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_16">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>348</x>
|
||||
<y>254</y>
|
||||
<width>31</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>to</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>360</y>
|
||||
<width>481</width>
|
||||
<height>101</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Server Setup</string>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>22</x>
|
||||
<y>24</y>
|
||||
<width>121</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AGWPE Server Port</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="AGWPort">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>24</y>
|
||||
<width>47</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="KISSPort">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>48</y>
|
||||
<width>47</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>22</x>
|
||||
<y>48</y>
|
||||
<width>111</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>KISS Server Port</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="AGWEnabled">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>22</y>
|
||||
<width>70</width>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enabled</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="KISSEnabled">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>46</y>
|
||||
<width>70</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enabled</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="UDPEnabled">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>380</x>
|
||||
<y>74</y>
|
||||
<width>70</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enabled</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="UDPTXHost">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>73</y>
|
||||
<width>111</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>74</y>
|
||||
<width>31</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Port</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="UDPTXPort">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>320</x>
|
||||
<y>74</y>
|
||||
<width>47</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>74</y>
|
||||
<width>111</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>UDP Sound Server Host</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBox_3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>470</y>
|
||||
<width>481</width>
|
||||
<height>151</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>PTT Port</string>
|
||||
</property>
|
||||
<widget class="QComboBox" name="PTTPort">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>122</x>
|
||||
<y>20</y>
|
||||
<width>81</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>22</y>
|
||||
<width>101</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Select PTT Port</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="PTTOnLab">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>82</y>
|
||||
<width>83</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>PTT On String</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="PTTOn">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>122</x>
|
||||
<y>80</y>
|
||||
<width>247</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="PTTOff">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>122</x>
|
||||
<y>112</y>
|
||||
<width>247</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="PTTOffLab">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>112</y>
|
||||
<width>83</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>PTT Off String</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="GPIOLab">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>53</y>
|
||||
<width>83</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>GPIO Pin Left</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="GPIOLeft">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>122</x>
|
||||
<y>50</y>
|
||||
<width>25</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="GPIORight">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>262</x>
|
||||
<y>50</y>
|
||||
<width>25</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="GPIOLab2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>165</x>
|
||||
<y>50</y>
|
||||
<width>83</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>GPIO Pin Right</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="CATLabel">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>18</x>
|
||||
<y>52</y>
|
||||
<width>99</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CAT Port Speed</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="CATSpeed">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>122</x>
|
||||
<y>50</y>
|
||||
<width>47</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="RTSDTR">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>22</y>
|
||||
<width>86</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>RTS/DTR</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="CAT">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>315</x>
|
||||
<y>22</y>
|
||||
<width>53</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CAT</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="VIDPID">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>122</x>
|
||||
<y>50</y>
|
||||
<width>96</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="CM108Label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>52</y>
|
||||
<width>95</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CM108 VID/PID</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>626</y>
|
||||
<width>215</width>
|
||||
<height>33</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout">
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QPushButton" name="okButton">
|
||||
<property name="text">
|
||||
<string>OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cancelButton">
|
||||
<property name="text">
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
78
digipeater.h
78
digipeater.h
|
@ -1,78 +0,0 @@
|
|||
|
||||
#ifndef DIGIPEATER_H
|
||||
#define DIGIPEATER_H 1
|
||||
|
||||
#include "regex.h"
|
||||
|
||||
#include "direwolf.h" /* for MAX_CHANS */
|
||||
#include "ax25_pad.h" /* for packet_t */
|
||||
#include "audio.h" /* for radio channel properties */
|
||||
|
||||
|
||||
/*
|
||||
* Information required for digipeating.
|
||||
*
|
||||
* The configuration file reader fills in this information
|
||||
* and it is passed to digipeater_init at application start up time.
|
||||
*/
|
||||
|
||||
|
||||
struct digi_config_s {
|
||||
|
||||
|
||||
int dedupe_time; /* Don't digipeat duplicate packets */
|
||||
/* within this number of seconds. */
|
||||
|
||||
#define DEFAULT_DEDUPE 30
|
||||
|
||||
/*
|
||||
* Rules for each of the [from_chan][to_chan] combinations.
|
||||
*/
|
||||
|
||||
regex_t alias[MAX_CHANS][MAX_CHANS];
|
||||
|
||||
regex_t wide[MAX_CHANS][MAX_CHANS];
|
||||
|
||||
int enabled[MAX_CHANS][MAX_CHANS];
|
||||
|
||||
enum preempt_e { PREEMPT_OFF, PREEMPT_DROP, PREEMPT_MARK, PREEMPT_TRACE } preempt[MAX_CHANS][MAX_CHANS];
|
||||
|
||||
// ATGP is an ugly hack for the specific need of ATGP which needs more that 8 digipeaters.
|
||||
// DO NOT put this in the User Guide. On a need to know basis.
|
||||
|
||||
char atgp[MAX_CHANS][MAX_CHANS][AX25_MAX_ADDR_LEN];
|
||||
|
||||
char *filter_str[MAX_CHANS+1][MAX_CHANS+1];
|
||||
// NULL or optional Packet Filter strings such as "t/m".
|
||||
// Notice the size of arrays is one larger than normal.
|
||||
// That extra position is for the IGate.
|
||||
|
||||
int regen[MAX_CHANS][MAX_CHANS]; // Regenerate packet.
|
||||
// Sort of like digipeating but passed along unchanged.
|
||||
};
|
||||
|
||||
/*
|
||||
* Call once at application start up time.
|
||||
*/
|
||||
|
||||
extern void digipeater_init (struct audio_s *p_audio_config, struct digi_config_s *p_digi_config);
|
||||
|
||||
/*
|
||||
* Call this for each packet received.
|
||||
* Suitable packets will be queued for transmission.
|
||||
*/
|
||||
|
||||
extern void digipeater (int from_chan, packet_t pp);
|
||||
|
||||
void digi_regen (int from_chan, packet_t pp);
|
||||
|
||||
|
||||
/* Make statistics available. */
|
||||
|
||||
int digipeater_get_count (int from_chan, int to_chan);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* end digipeater.h */
|
||||
|
148
dlq.h
148
dlq.h
|
@ -1,148 +0,0 @@
|
|||
|
||||
/*------------------------------------------------------------------
|
||||
*
|
||||
* Module: dlq.h
|
||||
*
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
#ifndef DLQ_H
|
||||
#define DLQ_H 1
|
||||
|
||||
#include "ax25_pad.h"
|
||||
#include "audio.h"
|
||||
|
||||
|
||||
/* A transmit or receive data block for connected mode. */
|
||||
|
||||
typedef struct cdata_s {
|
||||
int magic; /* For integrity checking. */
|
||||
|
||||
#define TXDATA_MAGIC 0x09110911
|
||||
|
||||
struct cdata_s *next; /* Pointer to next when part of a list. */
|
||||
|
||||
int pid; /* Protocol id. */
|
||||
|
||||
int size; /* Number of bytes allocated. */
|
||||
|
||||
int len; /* Number of bytes actually used. */
|
||||
|
||||
char data[]; /* Variable length data. */
|
||||
|
||||
} cdata_t;
|
||||
|
||||
|
||||
|
||||
/* Types of things that can be in queue. */
|
||||
|
||||
typedef enum dlq_type_e {DLQ_REC_FRAME, DLQ_CONNECT_REQUEST, DLQ_DISCONNECT_REQUEST, DLQ_XMIT_DATA_REQUEST, DLQ_REGISTER_CALLSIGN, DLQ_UNREGISTER_CALLSIGN, DLQ_OUTSTANDING_FRAMES_REQUEST, DLQ_CHANNEL_BUSY, DLQ_SEIZE_CONFIRM, DLQ_CLIENT_CLEANUP} dlq_type_t;
|
||||
|
||||
|
||||
/* A queue item. */
|
||||
|
||||
// TODO: call this event rather than item.
|
||||
// TODO: should add fences.
|
||||
|
||||
typedef struct dlq_item_s {
|
||||
|
||||
struct dlq_item_s *nextp; /* Next item in queue. */
|
||||
|
||||
dlq_type_t type; /* Type of item. */
|
||||
/* See enum definition above. */
|
||||
|
||||
int chan; /* Radio channel of origin. */
|
||||
|
||||
// I'm not worried about amount of memory used but this might be a
|
||||
// little clearer if a union was used for the different event types.
|
||||
|
||||
// Used for received frame.
|
||||
|
||||
int subchan; /* Winning "subchannel" when using multiple */
|
||||
/* decoders on one channel. */
|
||||
/* Special case, -1 means DTMF decoder. */
|
||||
/* Maybe we should have a different type in this case? */
|
||||
|
||||
int slice; /* Winning slicer. */
|
||||
|
||||
packet_t pp; /* Pointer to frame structure. */
|
||||
|
||||
alevel_t alevel; /* Audio level. */
|
||||
|
||||
int is_fx25; /* Was it from FX.25? */
|
||||
|
||||
retry_t retries; /* Effort expended to get a valid CRC. */
|
||||
/* Bits changed for regular AX.25. */
|
||||
/* Number of bytes fixed for FX.25. */
|
||||
|
||||
char spectrum[MAX_SUBCHANS*MAX_SLICERS+1]; /* "Spectrum" display for multi-decoders. */
|
||||
|
||||
// Used by requests from a client application, connect, etc.
|
||||
|
||||
char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN];
|
||||
|
||||
int num_addr; /* Range 2 .. 10. */
|
||||
|
||||
int client;
|
||||
|
||||
|
||||
// Used only by client request to transmit connected data.
|
||||
|
||||
cdata_t *txdata;
|
||||
|
||||
// Used for channel activity change.
|
||||
// It is useful to know when the channel is busy either for carrier detect
|
||||
// or when we are transmitting.
|
||||
|
||||
int activity; /* OCTYPE_PTT for my transmission start/end. */
|
||||
/* OCTYPE_DCD if we hear someone else. */
|
||||
|
||||
int status; /* 1 for active or 0 for quiet. */
|
||||
|
||||
} dlq_item_t;
|
||||
|
||||
|
||||
|
||||
void dlq_init (void);
|
||||
|
||||
|
||||
|
||||
void dlq_rec_frame (int chan, int subchan, int slice, packet_t pp, alevel_t alevel, int is_fx25, retry_t retries, char *spectrum);
|
||||
|
||||
void dlq_connect_request (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client, int pid);
|
||||
|
||||
void dlq_disconnect_request (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client);
|
||||
|
||||
void dlq_outstanding_frames_request (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client);
|
||||
|
||||
void dlq_xmit_data_request (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client, int pid, char *xdata_ptr, int xdata_len);
|
||||
|
||||
void dlq_register_callsign (char addr[AX25_MAX_ADDR_LEN], int chan, int client);
|
||||
|
||||
void dlq_unregister_callsign (char addr[AX25_MAX_ADDR_LEN], int chan, int client);
|
||||
|
||||
void dlq_channel_busy (int chan, int activity, int status);
|
||||
|
||||
void dlq_seize_confirm (int chan);
|
||||
|
||||
void dlq_client_cleanup (int client);
|
||||
|
||||
|
||||
|
||||
int dlq_wait_while_empty (double timeout_val);
|
||||
|
||||
struct dlq_item_s *dlq_remove (void);
|
||||
|
||||
void dlq_delete (struct dlq_item_s *pitem);
|
||||
|
||||
|
||||
|
||||
cdata_t *cdata_new (int pid, char *data, int len);
|
||||
|
||||
void cdata_delete (cdata_t *txdata);
|
||||
|
||||
void cdata_check_leak (void);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* end dlq.h */
|
|
@ -1,7 +0,0 @@
|
|||
|
||||
#if (USE_AVAHI_CLIENT|USE_MACOS_DNSSD)
|
||||
|
||||
char *dns_sd_default_service_name(void);
|
||||
|
||||
#endif
|
||||
|
10
dns_sd_dw.h
10
dns_sd_dw.h
|
@ -1,10 +0,0 @@
|
|||
|
||||
#if (USE_AVAHI_CLIENT|USE_MACOS_DNSSD)
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#define DNS_SD_SERVICE "_kiss-tnc._tcp"
|
||||
|
||||
void dns_sd_announce (struct misc_config_s *mc);
|
||||
|
||||
#endif // USE_AVAHI_CLIENT
|
18
dtime_now.h
18
dtime_now.h
|
@ -1,18 +0,0 @@
|
|||
|
||||
|
||||
extern double dtime_realtime (void);
|
||||
|
||||
extern double dtime_monotonic (void);
|
||||
|
||||
|
||||
void timestamp_now (char *result, int result_size, int show_ms);
|
||||
|
||||
void timestamp_user_format (char *result, int result_size, char *user_format);
|
||||
|
||||
void timestamp_filename (char *result, int result_size);
|
||||
|
||||
|
||||
// FIXME: remove temp workaround.
|
||||
// Needs many scattered updates.
|
||||
|
||||
#define dtime_now dtime_realtime
|
14
dtmf.h
14
dtmf.h
|
@ -1,14 +0,0 @@
|
|||
/* dtmf.h */
|
||||
|
||||
|
||||
#include "audio.h"
|
||||
|
||||
void dtmf_init (struct audio_s *p_audio_config, int amp);
|
||||
|
||||
char dtmf_sample (int c, float input);
|
||||
|
||||
int dtmf_send (int chan, char *str, int speed, int txdelay, int txtail);
|
||||
|
||||
|
||||
/* end dtmf.h */
|
||||
|
61
dwgps.h
61
dwgps.h
|
@ -1,61 +0,0 @@
|
|||
|
||||
/* dwgps.h */
|
||||
|
||||
#ifndef DWGPS_H
|
||||
#define DWGPS_H 1
|
||||
|
||||
|
||||
#include <time.h>
|
||||
#include "config.h" /* for struct misc_config_s */
|
||||
|
||||
|
||||
/*
|
||||
* Values for fix, equivalent to values from libgps.
|
||||
* -2 = not initialized.
|
||||
* -1 = error communicating with GPS receiver.
|
||||
* 0 = nothing heard yet.
|
||||
* 1 = had signal but lost it.
|
||||
* 2 = 2D.
|
||||
* 3 = 3D.
|
||||
*
|
||||
* Undefined float & double values are set to G_UNKNOWN.
|
||||
*
|
||||
*/
|
||||
|
||||
enum dwfix_e { DWFIX_NOT_INIT= -2, DWFIX_ERROR= -1, DWFIX_NOT_SEEN=0, DWFIX_NO_FIX=1, DWFIX_2D=2, DWFIX_3D=3 };
|
||||
|
||||
typedef enum dwfix_e dwfix_t;
|
||||
|
||||
typedef struct dwgps_info_s {
|
||||
time_t timestamp; /* When last updated. System time. */
|
||||
dwfix_t fix; /* Quality of position fix. */
|
||||
double dlat; /* Latitude. Valid if fix >= 2. */
|
||||
double dlon; /* Longitude. Valid if fix >= 2. */
|
||||
float speed_knots; /* libgps uses meters/sec but we use GPS usual knots. */
|
||||
float track; /* What is difference between track and course? */
|
||||
float altitude; /* meters above mean sea level. Valid if fix == 3. */
|
||||
} dwgps_info_t;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void dwgps_init (struct misc_config_s *pconfig, int debug);
|
||||
|
||||
void dwgps_clear (dwgps_info_t *gpsinfo);
|
||||
|
||||
dwfix_t dwgps_read (dwgps_info_t *gpsinfo);
|
||||
|
||||
void dwgps_print (char *msg, dwgps_info_t *gpsinfo);
|
||||
|
||||
void dwgps_term (void);
|
||||
|
||||
void dwgps_set_data (dwgps_info_t *gpsinfo);
|
||||
|
||||
|
||||
#endif /* DWGPS_H 1 */
|
||||
|
||||
/* end dwgps.h */
|
||||
|
||||
|
||||
|
22
dwgpsd.h
22
dwgpsd.h
|
@ -1,22 +0,0 @@
|
|||
|
||||
/* dwgpsd.h - For communicating with daemon */
|
||||
|
||||
|
||||
|
||||
#ifndef DWGPSD_H
|
||||
#define DWGPSD_H 1
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
||||
int dwgpsd_init (struct misc_config_s *pconfig, int debug);
|
||||
|
||||
void dwgpsd_term (void);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* end dwgpsd.h */
|
||||
|
||||
|
||||
|
32
dwgpsnmea.h
32
dwgpsnmea.h
|
@ -1,32 +0,0 @@
|
|||
|
||||
/* dwgpsnmea.h - For reading NMEA sentences over serial port */
|
||||
|
||||
|
||||
|
||||
#ifndef DWGPSNMEA_H
|
||||
#define DWGPSNMEA_H 1
|
||||
|
||||
#include "dwgps.h" /* for dwfix_t */
|
||||
#include "config.h"
|
||||
#include "serial_port.h" /* for MYFDTYPE */
|
||||
|
||||
|
||||
int dwgpsnmea_init (struct misc_config_s *pconfig, int debug);
|
||||
|
||||
MYFDTYPE dwgpsnmea_get_fd(char *wp_port_name, int speed);
|
||||
|
||||
void dwgpsnmea_term (void);
|
||||
|
||||
|
||||
dwfix_t dwgpsnmea_gprmc (char *sentence, int quiet, double *odlat, double *odlon, float *oknots, float *ocourse);
|
||||
|
||||
dwfix_t dwgpsnmea_gpgga (char *sentence, int quiet, double *odlat, double *odlon, float *oalt, int *onsat);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* end dwgpsnmea.h */
|
||||
|
||||
|
||||
|
21
dwsock.h
21
dwsock.h
|
@ -1,21 +0,0 @@
|
|||
|
||||
/* dwsock.h - Socket helper functions. */
|
||||
|
||||
#ifndef DWSOCK_H
|
||||
#define DWSOCK_H 1
|
||||
|
||||
#define DWSOCK_IPADDR_LEN 48 // Size of string to hold IPv4 or IPv6 address.
|
||||
// I think 40 would be adequate but we'll make
|
||||
// it a little larger just to be safe.
|
||||
// Use INET6_ADDRSTRLEN (from netinet/in.h) instead?
|
||||
|
||||
int dwsock_init (void);
|
||||
|
||||
int dwsock_connect (char *hostname, char *port, char *description, int allow_ipv6, int debug, char ipaddr_str[DWSOCK_IPADDR_LEN]);
|
||||
/* ipaddr_str needs to be at least SOCK_IPADDR_LEN bytes */
|
||||
|
||||
char *dwsock_ia_to_text (int Family, void * pAddr, char * pStringBuf, size_t StringBufSize);
|
||||
|
||||
void dwsock_close (int fd);
|
||||
|
||||
#endif
|
102
ecc.h
102
ecc.h
|
@ -1,102 +0,0 @@
|
|||
/* Reed Solomon Coding for glyphs
|
||||
* Copyright Henry Minsky (hqm@alum.mit.edu) 1991-2009
|
||||
*
|
||||
* This software library is licensed under terms of the GNU GENERAL
|
||||
* PUBLIC LICENSE
|
||||
*
|
||||
* RSCODE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* RSCODE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Rscode. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Source code is available at http://rscode.sourceforge.net
|
||||
*
|
||||
* Commercial licensing is available under a separate license, please
|
||||
* contact author for details.
|
||||
*
|
||||
*/
|
||||
|
||||
/****************************************************************
|
||||
|
||||
Below is NPAR, the only compile-time parameter you should have to
|
||||
modify.
|
||||
|
||||
It is the number of parity bytes which will be appended to
|
||||
your data to create a codeword.
|
||||
|
||||
Note that the maximum codeword size is 255, so the
|
||||
sum of your message length plus parity should be less than
|
||||
or equal to this maximum limit.
|
||||
|
||||
In practice, you will get slooow error correction and decoding
|
||||
if you use more than a reasonably small number of parity bytes.
|
||||
(say, 10 or 20)
|
||||
|
||||
****************************************************************/
|
||||
|
||||
#define MAXNPAR 64 // Sets size of static tables
|
||||
|
||||
extern int NPAR; // Currently used number
|
||||
|
||||
/****************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
typedef unsigned long BIT32;
|
||||
typedef unsigned short BIT16;
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
/* Maximum degree of various polynomials. */
|
||||
#define MAXDEG (MAXNPAR*2)
|
||||
|
||||
/*************************************/
|
||||
/* Encoder parity bytes */
|
||||
extern int pBytes[MAXDEG];
|
||||
|
||||
/* Decoder syndrome bytes */
|
||||
extern int synBytes[MAXDEG];
|
||||
|
||||
/* print debugging info */
|
||||
extern int DEBUG;
|
||||
|
||||
/* Reed Solomon encode/decode routines */
|
||||
void initialize_ecc (void);
|
||||
int check_syndrome (void);
|
||||
void decode_data (unsigned char data[], int nbytes);
|
||||
void encode_data (unsigned char msg[], int nbytes, unsigned char dst[]);
|
||||
|
||||
/* CRC-CCITT checksum generator */
|
||||
BIT16 crc_ccitt(unsigned char *msg, int len);
|
||||
|
||||
/* galois arithmetic tables */
|
||||
extern int gexp[];
|
||||
extern int glog[];
|
||||
|
||||
void init_galois_tables (void);
|
||||
int ginv(int elt);
|
||||
int gmult(int a, int b);
|
||||
|
||||
|
||||
/* Error location routines */
|
||||
int correct_errors_erasures (unsigned char codeword[], int csize,int nerasures, int erasures[]);
|
||||
|
||||
/* polynomial arithmetic */
|
||||
void add_polys(int dst[], int src[]) ;
|
||||
void scale_poly(int k, int poly[]);
|
||||
void mult_polys(int dst[], int p1[], int p2[]);
|
||||
|
||||
void copy_poly(int dst[], int src[]);
|
||||
void zero_poly(int poly[]);
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
int encode_position (int messaging, int compressed, double lat, double lon, int ambiguity, int alt_ft,
|
||||
char symtab, char symbol,
|
||||
int power, int height, int gain, char *dir,
|
||||
int course, int speed_knots,
|
||||
float freq, float tone, float offset,
|
||||
char *comment,
|
||||
char *presult, size_t result_size);
|
||||
|
||||
int encode_object (char *name, int compressed, time_t thyme, double lat, double lon, int ambiguity,
|
||||
char symtab, char symbol,
|
||||
int power, int height, int gain, char *dir,
|
||||
int course, int speed_knots,
|
||||
float freq, float tone, float offset, char *comment,
|
||||
char *presult, size_t result_size);
|
||||
|
||||
int encode_message (char *addressee, char *text, char *id, char *presult, size_t result_size);
|
11
fcs_calc.h
11
fcs_calc.h
|
@ -1,11 +0,0 @@
|
|||
|
||||
/* fcs_calc.h */
|
||||
|
||||
|
||||
unsigned short fcs_calc (unsigned char *data, int len);
|
||||
|
||||
unsigned short crc16 (unsigned char *data, int len, unsigned short seed);
|
||||
|
||||
/* end fcs_calc.h */
|
||||
|
||||
|
72
fftw3.f
72
fftw3.f
|
@ -1,72 +0,0 @@
|
|||
INTEGER FFTW_R2HC
|
||||
PARAMETER (FFTW_R2HC=0)
|
||||
INTEGER FFTW_HC2R
|
||||
PARAMETER (FFTW_HC2R=1)
|
||||
INTEGER FFTW_DHT
|
||||
PARAMETER (FFTW_DHT=2)
|
||||
INTEGER FFTW_REDFT00
|
||||
PARAMETER (FFTW_REDFT00=3)
|
||||
INTEGER FFTW_REDFT01
|
||||
PARAMETER (FFTW_REDFT01=4)
|
||||
INTEGER FFTW_REDFT10
|
||||
PARAMETER (FFTW_REDFT10=5)
|
||||
INTEGER FFTW_REDFT11
|
||||
PARAMETER (FFTW_REDFT11=6)
|
||||
INTEGER FFTW_RODFT00
|
||||
PARAMETER (FFTW_RODFT00=7)
|
||||
INTEGER FFTW_RODFT01
|
||||
PARAMETER (FFTW_RODFT01=8)
|
||||
INTEGER FFTW_RODFT10
|
||||
PARAMETER (FFTW_RODFT10=9)
|
||||
INTEGER FFTW_RODFT11
|
||||
PARAMETER (FFTW_RODFT11=10)
|
||||
INTEGER FFTW_FORWARD
|
||||
PARAMETER (FFTW_FORWARD=-1)
|
||||
INTEGER FFTW_BACKWARD
|
||||
PARAMETER (FFTW_BACKWARD=+1)
|
||||
INTEGER FFTW_MEASURE
|
||||
PARAMETER (FFTW_MEASURE=0)
|
||||
INTEGER FFTW_DESTROY_INPUT
|
||||
PARAMETER (FFTW_DESTROY_INPUT=1)
|
||||
INTEGER FFTW_UNALIGNED
|
||||
PARAMETER (FFTW_UNALIGNED=2)
|
||||
INTEGER FFTW_CONSERVE_MEMORY
|
||||
PARAMETER (FFTW_CONSERVE_MEMORY=4)
|
||||
INTEGER FFTW_EXHAUSTIVE
|
||||
PARAMETER (FFTW_EXHAUSTIVE=8)
|
||||
INTEGER FFTW_PRESERVE_INPUT
|
||||
PARAMETER (FFTW_PRESERVE_INPUT=16)
|
||||
INTEGER FFTW_PATIENT
|
||||
PARAMETER (FFTW_PATIENT=32)
|
||||
INTEGER FFTW_ESTIMATE
|
||||
PARAMETER (FFTW_ESTIMATE=64)
|
||||
INTEGER FFTW_WISDOM_ONLY
|
||||
PARAMETER (FFTW_WISDOM_ONLY=2097152)
|
||||
INTEGER FFTW_ESTIMATE_PATIENT
|
||||
PARAMETER (FFTW_ESTIMATE_PATIENT=128)
|
||||
INTEGER FFTW_BELIEVE_PCOST
|
||||
PARAMETER (FFTW_BELIEVE_PCOST=256)
|
||||
INTEGER FFTW_NO_DFT_R2HC
|
||||
PARAMETER (FFTW_NO_DFT_R2HC=512)
|
||||
INTEGER FFTW_NO_NONTHREADED
|
||||
PARAMETER (FFTW_NO_NONTHREADED=1024)
|
||||
INTEGER FFTW_NO_BUFFERING
|
||||
PARAMETER (FFTW_NO_BUFFERING=2048)
|
||||
INTEGER FFTW_NO_INDIRECT_OP
|
||||
PARAMETER (FFTW_NO_INDIRECT_OP=4096)
|
||||
INTEGER FFTW_ALLOW_LARGE_GENERIC
|
||||
PARAMETER (FFTW_ALLOW_LARGE_GENERIC=8192)
|
||||
INTEGER FFTW_NO_RANK_SPLITS
|
||||
PARAMETER (FFTW_NO_RANK_SPLITS=16384)
|
||||
INTEGER FFTW_NO_VRANK_SPLITS
|
||||
PARAMETER (FFTW_NO_VRANK_SPLITS=32768)
|
||||
INTEGER FFTW_NO_VRECURSE
|
||||
PARAMETER (FFTW_NO_VRECURSE=65536)
|
||||
INTEGER FFTW_NO_SIMD
|
||||
PARAMETER (FFTW_NO_SIMD=131072)
|
||||
INTEGER FFTW_NO_SLOW
|
||||
PARAMETER (FFTW_NO_SLOW=262144)
|
||||
INTEGER FFTW_NO_FIXED_RADIX_LARGE_N
|
||||
PARAMETER (FFTW_NO_FIXED_RADIX_LARGE_N=524288)
|
||||
INTEGER FFTW_ALLOW_PRUNING
|
||||
PARAMETER (FFTW_ALLOW_PRUNING=1048576)
|
415
fftw3.h
415
fftw3.h
|
@ -1,415 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2007-14 Matteo Frigo
|
||||
* Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
|
||||
*
|
||||
* The following statement of license applies *only* to this header file,
|
||||
* and *not* to the other files distributed with FFTW or derived therefrom:
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/***************************** NOTE TO USERS *********************************
|
||||
*
|
||||
* THIS IS A HEADER FILE, NOT A MANUAL
|
||||
*
|
||||
* If you want to know how to use FFTW, please read the manual,
|
||||
* online at http://www.fftw.org/doc/ and also included with FFTW.
|
||||
* For a quick start, see the manual's tutorial section.
|
||||
*
|
||||
* (Reading header files to learn how to use a library is a habit
|
||||
* stemming from code lacking a proper manual. Arguably, it's a
|
||||
* *bad* habit in most cases, because header files can contain
|
||||
* interfaces that are not part of the public, stable API.)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef FFTW3_H
|
||||
#define FFTW3_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* If <complex.h> is included, use the C99 complex type. Otherwise
|
||||
define a type bit-compatible with C99 complex */
|
||||
#if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I)
|
||||
# define FFTW_DEFINE_COMPLEX(R, C) typedef R _Complex C
|
||||
#else
|
||||
# define FFTW_DEFINE_COMPLEX(R, C) typedef R C[2]
|
||||
#endif
|
||||
|
||||
#define FFTW_CONCAT(prefix, name) prefix ## name
|
||||
#define FFTW_MANGLE_DOUBLE(name) FFTW_CONCAT(fftw_, name)
|
||||
#define FFTW_MANGLE_FLOAT(name) FFTW_CONCAT(fftwf_, name)
|
||||
#define FFTW_MANGLE_LONG_DOUBLE(name) FFTW_CONCAT(fftwl_, name)
|
||||
#define FFTW_MANGLE_QUAD(name) FFTW_CONCAT(fftwq_, name)
|
||||
|
||||
/* IMPORTANT: for Windows compilers, you should add a line
|
||||
*/
|
||||
//#define FFTW_DLL
|
||||
/*
|
||||
here and in kernel/ifftw.h if you are compiling/using FFTW as a
|
||||
DLL, in order to do the proper importing/exporting, or
|
||||
alternatively compile with -DFFTW_DLL or the equivalent
|
||||
command-line flag. This is not necessary under MinGW/Cygwin, where
|
||||
libtool does the imports/exports automatically. */
|
||||
#if defined(FFTW_DLL) && (defined(_WIN32) || defined(__WIN32__))
|
||||
/* annoying Windows syntax for shared-library declarations */
|
||||
# if defined(COMPILING_FFTW) /* defined in api.h when compiling FFTW */
|
||||
# define FFTW_EXTERN extern __declspec(dllexport)
|
||||
# else /* user is calling FFTW; import symbol */
|
||||
# define FFTW_EXTERN extern __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
# define FFTW_EXTERN extern
|
||||
#endif
|
||||
|
||||
enum fftw_r2r_kind_do_not_use_me {
|
||||
FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
|
||||
FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
|
||||
FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
|
||||
};
|
||||
|
||||
struct fftw_iodim_do_not_use_me {
|
||||
int n; /* dimension size */
|
||||
int is; /* input stride */
|
||||
int os; /* output stride */
|
||||
};
|
||||
|
||||
#include <stddef.h> /* for ptrdiff_t */
|
||||
struct fftw_iodim64_do_not_use_me {
|
||||
ptrdiff_t n; /* dimension size */
|
||||
ptrdiff_t is; /* input stride */
|
||||
ptrdiff_t os; /* output stride */
|
||||
};
|
||||
|
||||
typedef void (*fftw_write_char_func_do_not_use_me)(char c, void *);
|
||||
typedef int (*fftw_read_char_func_do_not_use_me)(void *);
|
||||
|
||||
/*
|
||||
huge second-order macro that defines prototypes for all API
|
||||
functions. We expand this macro for each supported precision
|
||||
|
||||
X: name-mangling macro
|
||||
R: real data type
|
||||
C: complex data type
|
||||
*/
|
||||
|
||||
#define FFTW_DEFINE_API(X, R, C) \
|
||||
\
|
||||
FFTW_DEFINE_COMPLEX(R, C); \
|
||||
\
|
||||
typedef struct X(plan_s) *X(plan); \
|
||||
\
|
||||
typedef struct fftw_iodim_do_not_use_me X(iodim); \
|
||||
typedef struct fftw_iodim64_do_not_use_me X(iodim64); \
|
||||
\
|
||||
typedef enum fftw_r2r_kind_do_not_use_me X(r2r_kind); \
|
||||
\
|
||||
typedef fftw_write_char_func_do_not_use_me X(write_char_func); \
|
||||
typedef fftw_read_char_func_do_not_use_me X(read_char_func); \
|
||||
\
|
||||
FFTW_EXTERN void X(execute)(const X(plan) p); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_dft)(int rank, const int *n, \
|
||||
C *in, C *out, int sign, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_dft_1d)(int n, C *in, C *out, int sign, \
|
||||
unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_dft_2d)(int n0, int n1, \
|
||||
C *in, C *out, int sign, unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_dft_3d)(int n0, int n1, int n2, \
|
||||
C *in, C *out, int sign, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_many_dft)(int rank, const int *n, \
|
||||
int howmany, \
|
||||
C *in, const int *inembed, \
|
||||
int istride, int idist, \
|
||||
C *out, const int *onembed, \
|
||||
int ostride, int odist, \
|
||||
int sign, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru_dft)(int rank, const X(iodim) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim) *howmany_dims, \
|
||||
C *in, C *out, \
|
||||
int sign, unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_guru_split_dft)(int rank, const X(iodim) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim) *howmany_dims, \
|
||||
R *ri, R *ii, R *ro, R *io, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru64_dft)(int rank, \
|
||||
const X(iodim64) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim64) *howmany_dims, \
|
||||
C *in, C *out, \
|
||||
int sign, unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_guru64_split_dft)(int rank, \
|
||||
const X(iodim64) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim64) *howmany_dims, \
|
||||
R *ri, R *ii, R *ro, R *io, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN void X(execute_dft)(const X(plan) p, C *in, C *out); \
|
||||
FFTW_EXTERN void X(execute_split_dft)(const X(plan) p, R *ri, R *ii, \
|
||||
R *ro, R *io); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_many_dft_r2c)(int rank, const int *n, \
|
||||
int howmany, \
|
||||
R *in, const int *inembed, \
|
||||
int istride, int idist, \
|
||||
C *out, const int *onembed, \
|
||||
int ostride, int odist, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_dft_r2c)(int rank, const int *n, \
|
||||
R *in, C *out, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_dft_r2c_1d)(int n,R *in,C *out,unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_dft_r2c_2d)(int n0, int n1, \
|
||||
R *in, C *out, unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_dft_r2c_3d)(int n0, int n1, \
|
||||
int n2, \
|
||||
R *in, C *out, unsigned flags); \
|
||||
\
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_many_dft_c2r)(int rank, const int *n, \
|
||||
int howmany, \
|
||||
C *in, const int *inembed, \
|
||||
int istride, int idist, \
|
||||
R *out, const int *onembed, \
|
||||
int ostride, int odist, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_dft_c2r)(int rank, const int *n, \
|
||||
C *in, R *out, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_dft_c2r_1d)(int n,C *in,R *out,unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_dft_c2r_2d)(int n0, int n1, \
|
||||
C *in, R *out, unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_dft_c2r_3d)(int n0, int n1, \
|
||||
int n2, \
|
||||
C *in, R *out, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru_dft_r2c)(int rank, const X(iodim) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim) *howmany_dims, \
|
||||
R *in, C *out, \
|
||||
unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_guru_dft_c2r)(int rank, const X(iodim) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim) *howmany_dims, \
|
||||
C *in, R *out, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru_split_dft_r2c)( \
|
||||
int rank, const X(iodim) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim) *howmany_dims, \
|
||||
R *in, R *ro, R *io, \
|
||||
unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_guru_split_dft_c2r)( \
|
||||
int rank, const X(iodim) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim) *howmany_dims, \
|
||||
R *ri, R *ii, R *out, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru64_dft_r2c)(int rank, \
|
||||
const X(iodim64) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim64) *howmany_dims, \
|
||||
R *in, C *out, \
|
||||
unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_guru64_dft_c2r)(int rank, \
|
||||
const X(iodim64) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim64) *howmany_dims, \
|
||||
C *in, R *out, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru64_split_dft_r2c)( \
|
||||
int rank, const X(iodim64) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim64) *howmany_dims, \
|
||||
R *in, R *ro, R *io, \
|
||||
unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_guru64_split_dft_c2r)( \
|
||||
int rank, const X(iodim64) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim64) *howmany_dims, \
|
||||
R *ri, R *ii, R *out, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN void X(execute_dft_r2c)(const X(plan) p, R *in, C *out); \
|
||||
FFTW_EXTERN void X(execute_dft_c2r)(const X(plan) p, C *in, R *out); \
|
||||
\
|
||||
FFTW_EXTERN void X(execute_split_dft_r2c)(const X(plan) p, \
|
||||
R *in, R *ro, R *io); \
|
||||
FFTW_EXTERN void X(execute_split_dft_c2r)(const X(plan) p, \
|
||||
R *ri, R *ii, R *out); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_many_r2r)(int rank, const int *n, \
|
||||
int howmany, \
|
||||
R *in, const int *inembed, \
|
||||
int istride, int idist, \
|
||||
R *out, const int *onembed, \
|
||||
int ostride, int odist, \
|
||||
const X(r2r_kind) *kind, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_r2r)(int rank, const int *n, R *in, R *out, \
|
||||
const X(r2r_kind) *kind, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_r2r_1d)(int n, R *in, R *out, \
|
||||
X(r2r_kind) kind, unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_r2r_2d)(int n0, int n1, R *in, R *out, \
|
||||
X(r2r_kind) kind0, X(r2r_kind) kind1, \
|
||||
unsigned flags); \
|
||||
FFTW_EXTERN X(plan) X(plan_r2r_3d)(int n0, int n1, int n2, \
|
||||
R *in, R *out, X(r2r_kind) kind0, \
|
||||
X(r2r_kind) kind1, X(r2r_kind) kind2, \
|
||||
unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru_r2r)(int rank, const X(iodim) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim) *howmany_dims, \
|
||||
R *in, R *out, \
|
||||
const X(r2r_kind) *kind, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN X(plan) X(plan_guru64_r2r)(int rank, const X(iodim64) *dims, \
|
||||
int howmany_rank, \
|
||||
const X(iodim64) *howmany_dims, \
|
||||
R *in, R *out, \
|
||||
const X(r2r_kind) *kind, unsigned flags); \
|
||||
\
|
||||
FFTW_EXTERN void X(execute_r2r)(const X(plan) p, R *in, R *out); \
|
||||
\
|
||||
FFTW_EXTERN void X(destroy_plan)(X(plan) p); \
|
||||
FFTW_EXTERN void X(forget_wisdom)(void); \
|
||||
FFTW_EXTERN void X(cleanup)(void); \
|
||||
\
|
||||
FFTW_EXTERN void X(set_timelimit)(double t); \
|
||||
\
|
||||
FFTW_EXTERN void X(plan_with_nthreads)(int nthreads); \
|
||||
FFTW_EXTERN int X(init_threads)(void); \
|
||||
FFTW_EXTERN void X(cleanup_threads)(void); \
|
||||
FFTW_EXTERN void X(make_planner_thread_safe)(void); \
|
||||
\
|
||||
FFTW_EXTERN int X(export_wisdom_to_filename)(const char *filename); \
|
||||
FFTW_EXTERN void X(export_wisdom_to_file)(FILE *output_file); \
|
||||
FFTW_EXTERN char *X(export_wisdom_to_string)(void); \
|
||||
FFTW_EXTERN void X(export_wisdom)(X(write_char_func) write_char, \
|
||||
void *data); \
|
||||
FFTW_EXTERN int X(import_system_wisdom)(void); \
|
||||
FFTW_EXTERN int X(import_wisdom_from_filename)(const char *filename); \
|
||||
FFTW_EXTERN int X(import_wisdom_from_file)(FILE *input_file); \
|
||||
FFTW_EXTERN int X(import_wisdom_from_string)(const char *input_string); \
|
||||
FFTW_EXTERN int X(import_wisdom)(X(read_char_func) read_char, void *data); \
|
||||
\
|
||||
FFTW_EXTERN void X(fprint_plan)(const X(plan) p, FILE *output_file); \
|
||||
FFTW_EXTERN void X(print_plan)(const X(plan) p); \
|
||||
FFTW_EXTERN char *X(sprint_plan)(const X(plan) p); \
|
||||
\
|
||||
FFTW_EXTERN void *X(malloc)(size_t n); \
|
||||
FFTW_EXTERN R *X(alloc_real)(size_t n); \
|
||||
FFTW_EXTERN C *X(alloc_complex)(size_t n); \
|
||||
FFTW_EXTERN void X(free)(void *p); \
|
||||
\
|
||||
FFTW_EXTERN void X(flops)(const X(plan) p, \
|
||||
double *add, double *mul, double *fmas); \
|
||||
FFTW_EXTERN double X(estimate_cost)(const X(plan) p); \
|
||||
FFTW_EXTERN double X(cost)(const X(plan) p); \
|
||||
\
|
||||
FFTW_EXTERN int X(alignment_of)(R *p); \
|
||||
FFTW_EXTERN const char X(version)[]; \
|
||||
FFTW_EXTERN const char X(cc)[]; \
|
||||
FFTW_EXTERN const char X(codelet_optim)[];
|
||||
|
||||
|
||||
/* end of FFTW_DEFINE_API macro */
|
||||
|
||||
FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex)
|
||||
FFTW_DEFINE_API(FFTW_MANGLE_FLOAT, float, fftwf_complex)
|
||||
FFTW_DEFINE_API(FFTW_MANGLE_LONG_DOUBLE, long double, fftwl_complex)
|
||||
|
||||
/* __float128 (quad precision) is a gcc extension on i386, x86_64, and ia64
|
||||
for gcc >= 4.6 (compiled in FFTW with --enable-quad-precision) */
|
||||
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \
|
||||
&& !(defined(__ICC) || defined(__INTEL_COMPILER) || defined(__CUDACC__) || defined(__PGI)) \
|
||||
&& (defined(__i386__) || defined(__x86_64__) || defined(__ia64__))
|
||||
# if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I)
|
||||
/* note: __float128 is a typedef, which is not supported with the _Complex
|
||||
keyword in gcc, so instead we use this ugly __attribute__ version.
|
||||
However, we can't simply pass the __attribute__ version to
|
||||
FFTW_DEFINE_API because the __attribute__ confuses gcc in pointer
|
||||
types. Hence redefining FFTW_DEFINE_COMPLEX. Ugh. */
|
||||
# undef FFTW_DEFINE_COMPLEX
|
||||
# define FFTW_DEFINE_COMPLEX(R, C) typedef _Complex float __attribute__((mode(TC))) C
|
||||
# endif
|
||||
FFTW_DEFINE_API(FFTW_MANGLE_QUAD, __float128, fftwq_complex)
|
||||
#endif
|
||||
|
||||
#define FFTW_FORWARD (-1)
|
||||
#define FFTW_BACKWARD (+1)
|
||||
|
||||
#define FFTW_NO_TIMELIMIT (-1.0)
|
||||
|
||||
/* documented flags */
|
||||
#define FFTW_MEASURE (0U)
|
||||
#define FFTW_DESTROY_INPUT (1U << 0)
|
||||
#define FFTW_UNALIGNED (1U << 1)
|
||||
#define FFTW_CONSERVE_MEMORY (1U << 2)
|
||||
#define FFTW_EXHAUSTIVE (1U << 3) /* NO_EXHAUSTIVE is default */
|
||||
#define FFTW_PRESERVE_INPUT (1U << 4) /* cancels FFTW_DESTROY_INPUT */
|
||||
#define FFTW_PATIENT (1U << 5) /* IMPATIENT is default */
|
||||
#define FFTW_ESTIMATE (1U << 6)
|
||||
#define FFTW_WISDOM_ONLY (1U << 21)
|
||||
|
||||
/* undocumented beyond-guru flags */
|
||||
#define FFTW_ESTIMATE_PATIENT (1U << 7)
|
||||
#define FFTW_BELIEVE_PCOST (1U << 8)
|
||||
#define FFTW_NO_DFT_R2HC (1U << 9)
|
||||
#define FFTW_NO_NONTHREADED (1U << 10)
|
||||
#define FFTW_NO_BUFFERING (1U << 11)
|
||||
#define FFTW_NO_INDIRECT_OP (1U << 12)
|
||||
#define FFTW_ALLOW_LARGE_GENERIC (1U << 13) /* NO_LARGE_GENERIC is default */
|
||||
#define FFTW_NO_RANK_SPLITS (1U << 14)
|
||||
#define FFTW_NO_VRANK_SPLITS (1U << 15)
|
||||
#define FFTW_NO_VRECURSE (1U << 16)
|
||||
#define FFTW_NO_SIMD (1U << 17)
|
||||
#define FFTW_NO_SLOW (1U << 18)
|
||||
#define FFTW_NO_FIXED_RADIX_LARGE_N (1U << 19)
|
||||
#define FFTW_ALLOW_PRUNING (1U << 20)
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* FFTW3_H */
|
106
filterWindow.ui
106
filterWindow.ui
|
@ -1,106 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Dialog</class>
|
||||
<widget class="QDialog" name="Dialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>673</width>
|
||||
<height>391</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>345</y>
|
||||
<width>351</width>
|
||||
<height>33</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout">
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QPushButton" name="okButton">
|
||||
<property name="text">
|
||||
<string>OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cancelButton">
|
||||
<property name="text">
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>15</x>
|
||||
<y>15</y>
|
||||
<width>642</width>
|
||||
<height>312</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>okButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>Dialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>278</x>
|
||||
<y>253</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>96</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cancelButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>Dialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>369</x>
|
||||
<y>253</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>179</x>
|
||||
<y>282</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
|
@ -1,7 +0,0 @@
|
|||
/* 1200 bits/sec with Audio sample rate = 11025 */
|
||||
/* Mark freq = 1200, Space freq = 2200 */
|
||||
|
||||
static const signed short m_sin_table[9] = { 0 , 7347 , 11257 , 9899 , 3909 , -3909 , -9899 , -11257 , -7347 };
|
||||
static const signed short m_cos_table[9] = { 11431 , 8756 , 1984 , -5715 , -10741 , -10741 , -5715 , 1984 , 8756 };
|
||||
static const signed short s_sin_table[9] = { 0 , 10950 , 6281 , -7347 , -10496 , 1327 , 11257 , 5130 , -8314 };
|
||||
static const signed short s_cos_table[9] = { 11431 , 3278 , -9550 , -8756 , 4527 , 11353 , 1984 , -10215 , -7844 };
|
|
@ -1,15 +0,0 @@
|
|||
|
||||
|
||||
#ifndef FSK_GEN_FILTER_H
|
||||
#define FSK_GEN_FILTER_H 1
|
||||
|
||||
#include "audio.h"
|
||||
#include "fsk_demod_state.h"
|
||||
|
||||
void fsk_gen_filter (int samples_per_sec,
|
||||
int baud,
|
||||
int mark_freq, int space_freq,
|
||||
char profile,
|
||||
struct demodulator_state_s *D);
|
||||
|
||||
#endif
|
113
galois.c
113
galois.c
|
@ -1,113 +0,0 @@
|
|||
/*****************************
|
||||
* Copyright Henry Minsky (hqm@alum.mit.edu) 1991-2009
|
||||
*
|
||||
* This software library is licensed under terms of the GNU GENERAL
|
||||
* PUBLIC LICENSE
|
||||
*
|
||||
* RSCODE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
* RSCODE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Rscode. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
* Commercial licensing is available under a separate license, please
|
||||
* contact author for details.
|
||||
*
|
||||
* Source code is available at http://rscode.sourceforge.net
|
||||
*
|
||||
*
|
||||
* Multiplication and Arithmetic on Galois Field GF(256)
|
||||
*
|
||||
* From Mee, Daniel, "Magnetic Recording, Volume III", Ch. 5 by Patel.
|
||||
*
|
||||
*
|
||||
******************************/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "ecc.h"
|
||||
|
||||
/* This is one of 14 irreducible polynomials
|
||||
* of degree 8 and cycle length 255. (Ch 5, pp. 275, Magnetic Recording)
|
||||
* The high order 1 bit is implicit */
|
||||
/* x^8 + x^4 + x^3 + x^2 + 1 */
|
||||
#define PPOLY 0x1D
|
||||
|
||||
|
||||
int gexp[512];
|
||||
int glog[256];
|
||||
|
||||
|
||||
static void init_exp_table (void);
|
||||
|
||||
|
||||
void
|
||||
init_galois_tables (void)
|
||||
{
|
||||
/* initialize the table of powers of alpha */
|
||||
init_exp_table();
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
init_exp_table (void)
|
||||
{
|
||||
int i, z;
|
||||
int pinit,p1,p2,p3,p4,p5,p6,p7,p8;
|
||||
|
||||
pinit = p2 = p3 = p4 = p5 = p6 = p7 = p8 = 0;
|
||||
p1 = 1;
|
||||
|
||||
gexp[0] = 1;
|
||||
gexp[255] = gexp[0];
|
||||
glog[0] = 0; /* shouldn't log[0] be an error? */
|
||||
|
||||
// Private pp8() As Integer = {1, 0, 1, 1, 1, 0, 0, 0, 1} 'specify irreducible polynomial coeffts */
|
||||
|
||||
for (i = 1; i < 256; i++) {
|
||||
pinit = p8;
|
||||
p8 = p7;
|
||||
p7 = p6;
|
||||
p6 = p5;
|
||||
p5 = p4 ^ pinit;
|
||||
p4 = p3 ^ pinit;
|
||||
p3 = p2 ^ pinit;
|
||||
p2 = p1;
|
||||
p1 = pinit;
|
||||
gexp[i] = p1 + p2*2 + p3*4 + p4*8 + p5*16 + p6*32 + p7*64 + p8*128;
|
||||
gexp[i+255] = gexp[i];
|
||||
}
|
||||
|
||||
for (i = 1; i < 256; i++) {
|
||||
for (z = 0; z < 256; z++) {
|
||||
if (gexp[z] == i) {
|
||||
glog[i] = z;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* multiplication using logarithms */
|
||||
int gmult(int a, int b)
|
||||
{
|
||||
int i,j;
|
||||
if (a==0 || b == 0) return (0);
|
||||
i = glog[a];
|
||||
j = glog[b];
|
||||
return (gexp[i+j]);
|
||||
}
|
||||
|
||||
|
||||
int ginv (int elt)
|
||||
{
|
||||
return (gexp[255-glog[elt]]);
|
||||
}
|
||||
|
17
gen_tone.h
17
gen_tone.h
|
@ -1,17 +0,0 @@
|
|||
/*
|
||||
* gen_tone.h
|
||||
*/
|
||||
|
||||
|
||||
int gen_tone_init (struct audio_s *pp, int amp, int gen_packets);
|
||||
|
||||
|
||||
//int gen_tone_open (int nchan, int sample_rate, int bit_rate, int f1, int f2, int amp, char *fname);
|
||||
|
||||
//int gen_tone_open_fd (int nchan, int sample_rate, int bit_rate, int f1, int f2, int amp, int fd) ;
|
||||
|
||||
//int gen_tone_close (void);
|
||||
|
||||
void tone_gen_put_bit (int chan, int dat);
|
||||
|
||||
void gen_tone_put_sample (int chan, int a, int sam);
|
337
globals.h
337
globals.h
|
@ -1,337 +0,0 @@
|
|||
// ----------------------------------------------------------------------------
|
||||
// globals.h -- constants, variables, arrays & functions that need to be
|
||||
// outside of any thread
|
||||
//
|
||||
// Copyright (C) 2006-2007
|
||||
// Dave Freese, W1HKJ
|
||||
// Copyright (C) 2007-2010
|
||||
// Stelios Bounanos, M0GLD
|
||||
//
|
||||
// This file is part of fldigi. Adapted in part from code contained in gmfsk
|
||||
// source code distribution.
|
||||
//
|
||||
// Fldigi is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Fldigi is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with fldigi. If not, see <http://www.gnu.org/licenses/>.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _GLOBALS_H
|
||||
#define _GLOBALS_H
|
||||
|
||||
#include <stdint.h>
|
||||
//#include <string>
|
||||
|
||||
enum state_t {
|
||||
STATE_PAUSE = 0,
|
||||
STATE_RX,
|
||||
STATE_TX,
|
||||
STATE_RESTART,
|
||||
STATE_TUNE,
|
||||
STATE_ABORT,
|
||||
STATE_FLUSH,
|
||||
STATE_NOOP,
|
||||
STATE_EXIT,
|
||||
STATE_ENDED,
|
||||
STATE_IDLE,
|
||||
STATE_NEW_MODEM
|
||||
};
|
||||
|
||||
enum {
|
||||
MODE_PREV = -2,
|
||||
MODE_NEXT,
|
||||
|
||||
MODE_NULL,
|
||||
|
||||
MODE_CW,
|
||||
|
||||
MODE_CONTESTIA,
|
||||
MODE_CONTESTIA_4_125, MODE_CONTESTIA_4_250,
|
||||
MODE_CONTESTIA_4_500, MODE_CONTESTIA_4_1000, MODE_CONTESTIA_4_2000,
|
||||
MODE_CONTESTIA_8_125, MODE_CONTESTIA_8_250,
|
||||
MODE_CONTESTIA_8_500, MODE_CONTESTIA_8_1000, MODE_CONTESTIA_8_2000,
|
||||
MODE_CONTESTIA_16_250, MODE_CONTESTIA_16_500,
|
||||
MODE_CONTESTIA_16_1000, MODE_CONTESTIA_16_2000,
|
||||
MODE_CONTESTIA_32_1000, MODE_CONTESTIA_32_2000,
|
||||
MODE_CONTESTIA_64_500, MODE_CONTESTIA_64_1000, MODE_CONTESTIA_64_2000,
|
||||
MODE_CONTESTIA_FIRST = MODE_CONTESTIA_4_125,
|
||||
MODE_CONTESTIA_LAST = MODE_CONTESTIA_64_2000,
|
||||
|
||||
MODE_DOMINOEXMICRO,
|
||||
MODE_DOMINOEX4,
|
||||
MODE_DOMINOEX5,
|
||||
MODE_DOMINOEX8,
|
||||
MODE_DOMINOEX11,
|
||||
MODE_DOMINOEX16,
|
||||
MODE_DOMINOEX22,
|
||||
MODE_DOMINOEX44,
|
||||
MODE_DOMINOEX88,
|
||||
MODE_DOMINOEX_FIRST = MODE_DOMINOEXMICRO,
|
||||
MODE_DOMINOEX_LAST = MODE_DOMINOEX88,
|
||||
|
||||
MODE_FELDHELL,
|
||||
MODE_SLOWHELL,
|
||||
MODE_HELLX5,
|
||||
MODE_HELLX9,
|
||||
MODE_FSKH245,
|
||||
MODE_FSKH105,
|
||||
MODE_HELL80,
|
||||
MODE_HELL_FIRST = MODE_FELDHELL,
|
||||
MODE_HELL_LAST = MODE_HELL80,
|
||||
|
||||
MODE_MFSK8,
|
||||
MODE_MFSK16,
|
||||
MODE_MFSK32,
|
||||
MODE_MFSK4,
|
||||
MODE_MFSK11,
|
||||
MODE_MFSK22,
|
||||
MODE_MFSK31,
|
||||
MODE_MFSK64,
|
||||
MODE_MFSK128,
|
||||
MODE_MFSK64L,
|
||||
MODE_MFSK128L,
|
||||
MODE_MFSK_FIRST = MODE_MFSK8,
|
||||
MODE_MFSK_LAST = MODE_MFSK128L,
|
||||
|
||||
MODE_WEFAX_576,
|
||||
MODE_WEFAX_288,
|
||||
MODE_WEFAX_FIRST = MODE_WEFAX_576,
|
||||
MODE_WEFAX_LAST = MODE_WEFAX_288,
|
||||
|
||||
MODE_NAVTEX,
|
||||
MODE_SITORB,
|
||||
MODE_NAVTEX_FIRST = MODE_NAVTEX,
|
||||
MODE_NAVTEX_LAST = MODE_SITORB,
|
||||
|
||||
MODE_MT63_500S,
|
||||
MODE_MT63_500L,
|
||||
MODE_MT63_1000S,
|
||||
MODE_MT63_1000L,
|
||||
MODE_MT63_2000S,
|
||||
MODE_MT63_2000L,
|
||||
MODE_MT63_FIRST = MODE_MT63_500S,
|
||||
MODE_MT63_LAST = MODE_MT63_2000L,
|
||||
|
||||
MODE_PSK31,
|
||||
MODE_PSK63,
|
||||
MODE_PSK63F,
|
||||
MODE_PSK125,
|
||||
MODE_PSK250,
|
||||
MODE_PSK500,
|
||||
MODE_PSK1000,
|
||||
|
||||
MODE_12X_PSK125,
|
||||
MODE_6X_PSK250,
|
||||
MODE_2X_PSK500,
|
||||
MODE_4X_PSK500,
|
||||
MODE_2X_PSK800,
|
||||
MODE_2X_PSK1000,
|
||||
|
||||
MODE_PSK_FIRST = MODE_PSK31,
|
||||
MODE_PSK_LAST = MODE_2X_PSK1000,
|
||||
|
||||
MODE_QPSK31,
|
||||
MODE_QPSK63,
|
||||
MODE_QPSK125,
|
||||
MODE_QPSK250,
|
||||
MODE_QPSK500,
|
||||
|
||||
MODE_QPSK_FIRST = MODE_QPSK31,
|
||||
MODE_QPSK_LAST = MODE_QPSK500,
|
||||
|
||||
MODE_8PSK125,
|
||||
MODE_8PSK125FL,
|
||||
MODE_8PSK125F,
|
||||
MODE_8PSK250,
|
||||
MODE_8PSK250FL,
|
||||
MODE_8PSK250F,
|
||||
MODE_8PSK500,
|
||||
MODE_8PSK500F,
|
||||
MODE_8PSK1000,
|
||||
MODE_8PSK1000F,
|
||||
MODE_8PSK1200F,
|
||||
MODE_8PSK_FIRST = MODE_8PSK125,
|
||||
MODE_8PSK_LAST = MODE_8PSK1200F,
|
||||
|
||||
MODE_OFDM_500F,
|
||||
MODE_OFDM_750F,
|
||||
MODE_OFDM_2000F,
|
||||
MODE_OFDM_2000,
|
||||
MODE_OFDM_3500,
|
||||
|
||||
MODE_OLIVIA,
|
||||
MODE_OLIVIA_4_125,
|
||||
MODE_OLIVIA_4_250,
|
||||
MODE_OLIVIA_4_500,
|
||||
MODE_OLIVIA_4_1000,
|
||||
MODE_OLIVIA_4_2000,
|
||||
MODE_OLIVIA_8_125,
|
||||
MODE_OLIVIA_8_250,
|
||||
MODE_OLIVIA_8_500,
|
||||
MODE_OLIVIA_8_1000,
|
||||
MODE_OLIVIA_8_2000,
|
||||
MODE_OLIVIA_16_500,
|
||||
MODE_OLIVIA_16_1000,
|
||||
MODE_OLIVIA_16_2000,
|
||||
MODE_OLIVIA_32_1000,
|
||||
MODE_OLIVIA_32_2000,
|
||||
MODE_OLIVIA_64_500,
|
||||
MODE_OLIVIA_64_1000,
|
||||
MODE_OLIVIA_64_2000,
|
||||
MODE_OLIVIA_FIRST = MODE_OLIVIA,
|
||||
MODE_OLIVIA_LAST = MODE_OLIVIA_64_2000,
|
||||
|
||||
MODE_RTTY,
|
||||
|
||||
MODE_THORMICRO,
|
||||
MODE_THOR4,
|
||||
MODE_THOR5,
|
||||
MODE_THOR8,
|
||||
MODE_THOR11,
|
||||
MODE_THOR16,
|
||||
MODE_THOR22,
|
||||
MODE_THOR25x4,
|
||||
MODE_THOR50x1,
|
||||
MODE_THOR50x2,
|
||||
MODE_THOR100,
|
||||
MODE_THOR_FIRST = MODE_THORMICRO,
|
||||
MODE_THOR_LAST = MODE_THOR100,
|
||||
|
||||
MODE_THROB1,
|
||||
MODE_THROB2,
|
||||
MODE_THROB4,
|
||||
MODE_THROBX1,
|
||||
MODE_THROBX2,
|
||||
MODE_THROBX4,
|
||||
MODE_THROB_FIRST = MODE_THROB1,
|
||||
MODE_THROB_LAST = MODE_THROBX4,
|
||||
|
||||
// MODE_PACKET,
|
||||
// high speed && multiple carrier modes
|
||||
|
||||
MODE_PSK125R,
|
||||
MODE_PSK250R,
|
||||
MODE_PSK500R,
|
||||
MODE_PSK1000R,
|
||||
|
||||
MODE_4X_PSK63R,
|
||||
MODE_5X_PSK63R,
|
||||
MODE_10X_PSK63R,
|
||||
MODE_20X_PSK63R,
|
||||
MODE_32X_PSK63R,
|
||||
|
||||
MODE_4X_PSK125R,
|
||||
MODE_5X_PSK125R,
|
||||
MODE_10X_PSK125R,
|
||||
MODE_12X_PSK125R,
|
||||
MODE_16X_PSK125R,
|
||||
|
||||
MODE_2X_PSK250R,
|
||||
MODE_3X_PSK250R,
|
||||
MODE_5X_PSK250R,
|
||||
MODE_6X_PSK250R,
|
||||
MODE_7X_PSK250R,
|
||||
|
||||
MODE_2X_PSK500R,
|
||||
MODE_3X_PSK500R,
|
||||
MODE_4X_PSK500R,
|
||||
|
||||
MODE_2X_PSK800R,
|
||||
MODE_2X_PSK1000R,
|
||||
|
||||
MODE_PSKR_FIRST = MODE_PSK125R,
|
||||
MODE_PSKR_LAST = MODE_2X_PSK1000R,
|
||||
|
||||
MODE_FSQ,
|
||||
MODE_IFKP,
|
||||
|
||||
MODE_SSB,
|
||||
MODE_WWV,
|
||||
MODE_ANALYSIS,
|
||||
MODE_FMT,
|
||||
|
||||
MODE_EOT, // a dummy mode used to invoke transmission of RsID-EOT code
|
||||
NUM_MODES,
|
||||
NUM_RXTX_MODES = MODE_SSB
|
||||
};
|
||||
|
||||
typedef intptr_t trx_mode;
|
||||
|
||||
struct mode_info_t {
|
||||
trx_mode mode;
|
||||
const char *sname;
|
||||
const char *name;
|
||||
const char *pskmail_name;
|
||||
const char *adif_name;
|
||||
const char *export_mode;
|
||||
const char *export_submode;
|
||||
const char *vid_name;
|
||||
const unsigned int iface_io; // Some modes are not usable for a given interface.
|
||||
};
|
||||
extern const struct mode_info_t mode_info[NUM_MODES];
|
||||
|
||||
/*
|
||||
|
||||
class qrg_mode_t
|
||||
{
|
||||
public:
|
||||
long long rfcarrier;
|
||||
std::string rmode;
|
||||
int carrier;
|
||||
trx_mode mode;
|
||||
std::string usage;
|
||||
|
||||
qrg_mode_t() :
|
||||
rfcarrier(0),
|
||||
rmode("NONE"),
|
||||
carrier(0),
|
||||
mode(NUM_MODES),
|
||||
usage("") { }
|
||||
qrg_mode_t(long long rfc_, std::string rm_, int c_, trx_mode m_, std::string use_ = "")
|
||||
: rfcarrier(rfc_), rmode(rm_), carrier(c_), mode(m_), usage(use_) { }
|
||||
bool operator<(const qrg_mode_t& rhs) const
|
||||
{
|
||||
return rfcarrier < rhs.rfcarrier;
|
||||
}
|
||||
bool operator==(const qrg_mode_t& rhs) const
|
||||
{
|
||||
return rfcarrier == rhs.rfcarrier && rmode == rhs.rmode &&
|
||||
carrier == rhs.carrier && mode == rhs.mode;
|
||||
}
|
||||
std::string str(void);
|
||||
};
|
||||
std::ostream& operator<<(std::ostream& s, const qrg_mode_t& m);
|
||||
std::istream& operator>>(std::istream& s, qrg_mode_t& m);
|
||||
|
||||
#include <bitset>
|
||||
class mode_set_t : public std::bitset<NUM_MODES> {};
|
||||
*/
|
||||
|
||||
enum band_t {
|
||||
BAND_160M, BAND_80M, BAND_75M, BAND_60M, BAND_40M, BAND_30M, BAND_20M,
|
||||
BAND_17M, BAND_15M, BAND_12M, BAND_10M, BAND_6M, BAND_4M, BAND_2M, BAND_125CM,
|
||||
BAND_70CM, BAND_33CM, BAND_23CM, BAND_13CM, BAND_9CM, BAND_6CM, BAND_3CM, BAND_125MM,
|
||||
BAND_6MM, BAND_4MM, BAND_2P5MM, BAND_2MM, BAND_1MM, BAND_OTHER, NUM_BANDS
|
||||
};
|
||||
/*
|
||||
|
||||
band_t band(long long freq_hz);
|
||||
band_t band(const char* freq_mhz);
|
||||
const char* band_name(band_t b);
|
||||
const char* band_name(const char* freq_mhz);
|
||||
const char* band_freq(band_t b);
|
||||
const char* band_freq(const char* band_name);
|
||||
*/
|
||||
// psk_browser enums
|
||||
enum { VIEWER_LABEL_OFF, VIEWER_LABEL_AF, VIEWER_LABEL_RF, VIEWER_LABEL_CH, VIEWER_LABEL_NTYPES };
|
||||
|
||||
|
||||
#endif
|
501
grm_sym.h
501
grm_sym.h
|
@ -1,501 +0,0 @@
|
|||
|
||||
/*
|
||||
* grm_sym.h
|
||||
*
|
||||
* Symbol codes for use in $PGRMWPL sentence.
|
||||
*
|
||||
* Copied from
|
||||
* Garmin Device Interface Specification
|
||||
* May 19, 2006
|
||||
* Drawing Number: 001-00063-00 Rev. C
|
||||
*/
|
||||
|
||||
|
||||
typedef unsigned short symbol_type_t;
|
||||
|
||||
enum symbol_type_e
|
||||
{
|
||||
/*---------------------------------------------------------------
|
||||
Marine symbols
|
||||
---------------------------------------------------------------*/
|
||||
sym_anchor = 0, /* white anchor symbol */
|
||||
sym_bell = 1, /* white bell symbol */
|
||||
sym_diamond_grn = 2, /* green diamond symbol */
|
||||
sym_diamond_red = 3, /* red diamond symbol */
|
||||
sym_dive1 = 4, /* diver down flag 1 */
|
||||
sym_dive2 = 5, /* diver down flag 2 */
|
||||
sym_dollar = 6, /* white dollar symbol */
|
||||
sym_fish = 7, /* white fish symbol */
|
||||
sym_fuel = 8, /* white fuel symbol */
|
||||
sym_horn = 9, /* white horn symbol */
|
||||
sym_house = 10, /* white house symbol */
|
||||
sym_knife = 11, /* white knife & fork symbol */
|
||||
sym_light = 12, /* white light symbol */
|
||||
sym_mug = 13, /* white mug symbol */
|
||||
sym_skull = 14, /* white skull and crossbones symbol*/
|
||||
sym_square_grn = 15, /* green square symbol */
|
||||
sym_square_red = 16, /* red square symbol */
|
||||
sym_wbuoy = 17, /* white buoy waypoint symbol */
|
||||
sym_wpt_dot = 18, /* waypoint dot */
|
||||
sym_wreck = 19, /* white wreck symbol */
|
||||
sym_null = 20, /* null symbol (transparent) */
|
||||
sym_mob = 21, /* man overboard symbol */
|
||||
sym_buoy_ambr = 22, /* amber map buoy symbol */
|
||||
sym_buoy_blck = 23, /* black map buoy symbol */
|
||||
sym_buoy_blue = 24, /* blue map buoy symbol */
|
||||
sym_buoy_grn = 25, /* green map buoy symbol */
|
||||
sym_buoy_grn_red = 26, /* green/red map buoy symbol */
|
||||
sym_buoy_grn_wht = 27, /* green/white map buoy symbol */
|
||||
sym_buoy_orng = 28, /* orange map buoy symbol */
|
||||
sym_buoy_red = 29, /* red map buoy symbol */
|
||||
sym_buoy_red_grn = 30, /* red/green map buoy symbol */
|
||||
sym_buoy_red_wht = 31, /* red/white map buoy symbol */
|
||||
sym_buoy_violet = 32, /* violet map buoy symbol */
|
||||
sym_buoy_wht = 33, /* white map buoy symbol */
|
||||
sym_buoy_wht_grn = 34, /* white/green map buoy symbol */
|
||||
sym_buoy_wht_red = 35, /* white/red map buoy symbol */
|
||||
sym_dot = 36, /* white dot symbol */
|
||||
sym_rbcn = 37, /* radio beacon symbol */
|
||||
sym_boat_ramp = 150, /* boat ramp symbol */
|
||||
sym_camp = 151, /* campground symbol */
|
||||
sym_restrooms = 152, /* restrooms symbol */
|
||||
sym_showers = 153, /* shower symbol */
|
||||
sym_drinking_wtr = 154, /* drinking water symbol */
|
||||
sym_phone = 155, /* telephone symbol */
|
||||
sym_1st_aid = 156, /* first aid symbol */
|
||||
sym_info = 157, /* information symbol */
|
||||
sym_parking = 158, /* parking symbol */
|
||||
sym_park = 159, /* park symbol */
|
||||
sym_picnic = 160, /* picnic symbol */
|
||||
sym_scenic = 161, /* scenic area symbol */
|
||||
sym_skiing = 162, /* skiing symbol */
|
||||
sym_swimming = 163, /* swimming symbol */
|
||||
sym_dam = 164, /* dam symbol */
|
||||
sym_controlled = 165, /* controlled area symbol */
|
||||
sym_danger = 166, /* danger symbol */
|
||||
sym_restricted = 167, /* restricted area symbol */
|
||||
sym_null_2 = 168, /* null symbol */
|
||||
sym_ball = 169, /* ball symbol */
|
||||
sym_car = 170, /* car symbol */
|
||||
sym_deer = 171, /* deer symbol */
|
||||
sym_shpng_cart = 172, /* shopping cart symbol */
|
||||
sym_lodging = 173, /* lodging symbol */
|
||||
sym_mine = 174, /* mine symbol */
|
||||
sym_trail_head = 175, /* trail head symbol */
|
||||
sym_truck_stop = 176, /* truck stop symbol */
|
||||
sym_user_exit = 177, /* user exit symbol */
|
||||
sym_flag = 178, /* flag symbol */
|
||||
sym_circle_x = 179, /* circle with x in the center */
|
||||
sym_open_24hr = 180, /* open 24 hours symbol */
|
||||
sym_fhs_facility = 181, /* U Fishing Hot Spots(tm) Facility */
|
||||
sym_bot_cond = 182, /* Bottom Conditions */
|
||||
sym_tide_pred_stn = 183, /* Tide/Current Prediction Station */
|
||||
sym_anchor_prohib = 184, /* U anchor prohibited symbol */
|
||||
sym_beacon = 185, /* U beacon symbol */
|
||||
sym_coast_guard = 186, /* U coast guard symbol */
|
||||
sym_reef = 187, /* U reef symbol */
|
||||
sym_weedbed = 188, /* U weedbed symbol */
|
||||
sym_dropoff = 189, /* U dropoff symbol */
|
||||
sym_dock = 190, /* U dock symbol */
|
||||
sym_marina = 191, /* U marina symbol */
|
||||
sym_bait_tackle = 192, /* U bait and tackle symbol */
|
||||
sym_stump = 193, /* U stump symbol */
|
||||
/*---------------------------------------------------------------
|
||||
User customizable symbols
|
||||
The values from sym_begin_custom to sym_end_custom inclusive are
|
||||
reserved for the identification of user customizable symbols.
|
||||
---------------------------------------------------------------*/
|
||||
sym_begin_custom = 7680, /* first user customizable symbol */
|
||||
sym_end_custom = 8191, /* last user customizable symbol */
|
||||
/*---------------------------------------------------------------
|
||||
Land symbols
|
||||
---------------------------------------------------------------*/
|
||||
sym_is_hwy = 8192, /* interstate hwy symbol */
|
||||
sym_us_hwy = 8193, /* us hwy symbol */
|
||||
sym_st_hwy = 8194, /* state hwy symbol */
|
||||
sym_mi_mrkr = 8195, /* mile marker symbol */
|
||||
sym_trcbck = 8196, /* TracBack (feet) symbol */
|
||||
sym_golf = 8197, /* golf symbol */
|
||||
sym_sml_cty = 8198, /* small city symbol */
|
||||
sym_med_cty = 8199, /* medium city symbol */
|
||||
sym_lrg_cty = 8200, /* large city symbol */
|
||||
sym_freeway = 8201, /* intl freeway hwy symbol */
|
||||
sym_ntl_hwy = 8202, /* intl national hwy symbol */
|
||||
sym_cap_cty = 8203, /* capitol city symbol (star) */
|
||||
sym_amuse_pk = 8204, /* amusement park symbol */
|
||||
sym_bowling = 8205, /* bowling symbol */
|
||||
sym_car_rental = 8206, /* car rental symbol */
|
||||
sym_car_repair = 8207, /* car repair symbol */
|
||||
sym_fastfood = 8208, /* fast food symbol */
|
||||
sym_fitness = 8209, /* fitness symbol */
|
||||
sym_movie = 8210, /* movie symbol */
|
||||
sym_museum = 8211, /* museum symbol */
|
||||
sym_pharmacy = 8212, /* pharmacy symbol */
|
||||
sym_pizza = 8213, /* pizza symbol */
|
||||
sym_post_ofc = 8214, /* post office symbol */
|
||||
sym_rv_park = 8215, /* RV park symbol */
|
||||
sym_school = 8216, /* school symbol */
|
||||
sym_stadium = 8217, /* stadium symbol */
|
||||
sym_store = 8218, /* dept. store symbol */
|
||||
sym_zoo = 8219, /* zoo symbol */
|
||||
sym_gas_plus = 8220, /* convenience store symbol */
|
||||
sym_faces = 8221, /* live theater symbol */
|
||||
sym_ramp_int = 8222, /* ramp intersection symbol */
|
||||
sym_st_int = 8223, /* street intersection symbol */
|
||||
sym_weigh_sttn = 8226, /* inspection/weigh station symbol */
|
||||
sym_toll_booth = 8227, /* toll booth symbol */
|
||||
sym_elev_pt = 8228, /* elevation point symbol */
|
||||
sym_ex_no_srvc = 8229, /* exit without services symbol */
|
||||
sym_geo_place_mm = 8230, /* Geographic place name, man-made */
|
||||
sym_geo_place_wtr = 8231, /* Geographic place name, water */
|
||||
sym_geo_place_lnd = 8232, /* Geographic place name, land */
|
||||
sym_bridge = 8233, /* bridge symbol */
|
||||
sym_building = 8234, /* building symbol */
|
||||
sym_cemetery = 8235, /* cemetery symbol */
|
||||
sym_church = 8236, /* church symbol */
|
||||
sym_civil = 8237, /* civil location symbol */
|
||||
sym_crossing = 8238, /* crossing symbol */
|
||||
sym_hist_town = 8239, /* historical town symbol */
|
||||
sym_levee = 8240, /* levee symbol */
|
||||
sym_military = 8241, /* military location symbol */
|
||||
sym_oil_field = 8242, /* oil field symbol */
|
||||
sym_tunnel = 8243, /* tunnel symbol */
|
||||
sym_beach = 8244, /* beach symbol */
|
||||
sym_forest = 8245, /* forest symbol */
|
||||
sym_summit = 8246, /* summit symbol */
|
||||
sym_lrg_ramp_int = 8247, /* large ramp intersection symbol */
|
||||
sym_lrg_ex_no_srvc = 8248, /* large exit without services smbl */
|
||||
sym_badge = 8249, /* police/official badge symbol */
|
||||
sym_cards = 8250, /* gambling/casino symbol */
|
||||
sym_snowski = 8251, /* snow skiing symbol */
|
||||
sym_iceskate = 8252, /* ice skating symbol */
|
||||
sym_wrecker = 8253, /* tow truck (wrecker) symbol */
|
||||
sym_border = 8254, /* border crossing (port of entry) */
|
||||
sym_geocache = 8255, /* geocache location */
|
||||
sym_geocache_fnd = 8256, /* found geocache */
|
||||
sym_cntct_smiley = 8257, /* Rino contact symbol, "smiley" */
|
||||
sym_cntct_ball_cap = 8258, /* Rino contact symbol, "ball cap" */
|
||||
sym_cntct_big_ears = 8259, /* Rino contact symbol, "big ear" */
|
||||
sym_cntct_spike = 8260, /* Rino contact symbol, "spike" */
|
||||
sym_cntct_goatee = 8261, /* Rino contact symbol, "goatee" */
|
||||
sym_cntct_afro = 8262, /* Rino contact symbol, "afro" */
|
||||
sym_cntct_dreads = 8263, /* Rino contact symbol, "dreads" */
|
||||
sym_cntct_female1 = 8264, /* Rino contact symbol, "female 1" */
|
||||
sym_cntct_female2 = 8265, /* Rino contact symbol, "female 2" */
|
||||
sym_cntct_female3 = 8266, /* Rino contact symbol, "female 3" */
|
||||
sym_cntct_ranger = 8267, /* Rino contact symbol, "ranger" */
|
||||
sym_cntct_kung_fu = 8268, /* Rino contact symbol, "kung fu" */
|
||||
sym_cntct_sumo = 8269, /* Rino contact symbol, "sumo" */
|
||||
sym_cntct_pirate = 8270, /* Rino contact symbol, "pirate" */
|
||||
sym_cntct_biker = 8271, /* Rino contact symbol, "biker" */
|
||||
sym_cntct_alien = 8272, /* Rino contact symbol, "alien" */
|
||||
sym_cntct_bug = 8273, /* Rino contact symbol, "bug" */
|
||||
sym_cntct_cat = 8274, /* Rino contact symbol, "cat" */
|
||||
sym_cntct_dog = 8275, /* Rino contact symbol, "dog" */
|
||||
sym_cntct_pig = 8276, /* Rino contact symbol, "pig" */
|
||||
sym_hydrant = 8282, /* water hydrant symbol */
|
||||
sym_flag_blue = 8284, /* blue flag symbol */
|
||||
sym_flag_green = 8285, /* green flag symbol */
|
||||
sym_flag_red = 8286, /* red flag symbol */
|
||||
sym_pin_blue = 8287, /* blue pin symbol */
|
||||
sym_pin_green = 8288, /* green pin symbol */
|
||||
sym_pin_red = 8289, /* red pin symbol */
|
||||
sym_block_blue = 8290, /* blue block symbol */
|
||||
sym_block_green = 8291, /* green block symbol */
|
||||
sym_block_red = 8292, /* red block symbol */
|
||||
sym_bike_trail = 8293, /* bike trail symbol */
|
||||
sym_circle_red = 8294, /* red circle symbol */
|
||||
sym_circle_green = 8295, /* green circle symbol */
|
||||
sym_circle_blue = 8296, /* blue circle symbol */
|
||||
sym_diamond_blue = 8299, /* blue diamond symbol */
|
||||
sym_oval_red = 8300, /* red oval symbol */
|
||||
sym_oval_green = 8301, /* green oval symbol */
|
||||
sym_oval_blue = 8302, /* blue oval symbol */
|
||||
sym_rect_red = 8303, /* red rectangle symbol */
|
||||
sym_rect_green = 8304, /* green rectangle symbol */
|
||||
sym_rect_blue = 8305, /* blue rectangle symbol */
|
||||
sym_square_blue = 8308, /* blue square symbol */
|
||||
sym_letter_a_red = 8309, /* red letter 'A' symbol */
|
||||
sym_letter_b_red = 8310, /* red letter 'B' symbol */
|
||||
sym_letter_c_red = 8311, /* red letter 'C' symbol */
|
||||
sym_letter_d_red = 8312, /* red letter 'D' symbol */
|
||||
sym_letter_a_green = 8313, /* green letter 'A' symbol */
|
||||
sym_letter_c_green = 8314, /* green letter 'C' symbol */
|
||||
sym_letter_b_green = 8315, /* green letter 'B' symbol */
|
||||
sym_letter_d_green = 8316, /* green letter 'D' symbol */
|
||||
sym_letter_a_blue = 8317, /* blue letter 'A' symbol */
|
||||
sym_letter_b_blue = 8318, /* blue letter 'B' symbol */
|
||||
sym_letter_c_blue = 8319, /* blue letter 'C' symbol */
|
||||
sym_letter_d_blue = 8320, /* blue letter 'D' symbol */
|
||||
sym_number_0_red = 8321, /* red number '0' symbol */
|
||||
sym_number_1_red = 8322, /* red number '1' symbol */
|
||||
sym_number_2_red = 8323, /* red number '2' symbol */
|
||||
sym_number_3_red = 8324, /* red number '3' symbol */
|
||||
sym_number_4_red = 8325, /* red number '4' symbol */
|
||||
sym_number_5_red = 8326, /* red number '5' symbol */
|
||||
sym_number_6_red = 8327, /* red number '6' symbol */
|
||||
sym_number_7_red = 8328, /* red number '7' symbol */
|
||||
sym_number_8_red = 8329, /* red number '8' symbol */
|
||||
sym_number_9_red = 8330, /* red number '9' symbol */
|
||||
sym_number_0_green = 8331, /* green number '0' symbol */
|
||||
sym_number_1_green = 8332, /* green number '1' symbol */
|
||||
sym_number_2_green = 8333, /* green number '2' symbol */
|
||||
sym_number_3_green = 8334, /* green number '3' symbol */
|
||||
sym_number_4_green = 8335, /* green number '4' symbol */
|
||||
sym_number_5_green = 8336, /* green number '5' symbol */
|
||||
sym_number_6_green = 8337, /* green number '6' symbol */
|
||||
sym_number_7_green = 8338, /* green number '7' symbol */
|
||||
sym_number_8_green = 8339, /* green number '8' symbol */
|
||||
sym_number_9_green = 8340, /* green number '9' symbol */
|
||||
sym_number_0_blue = 8341, /* blue number '0' symbol */
|
||||
sym_number_1_blue = 8342, /* blue number '1' symbol */
|
||||
sym_number_2_blue = 8343, /* blue number '2' symbol */
|
||||
sym_number_3_blue = 8344, /* blue number '3' symbol */
|
||||
sym_number_4_blue = 8345, /* blue number '4' symbol */
|
||||
sym_number_5_blue = 8346, /* blue number '5' symbol */
|
||||
sym_number_6_blue = 8347, /* blue number '6' symbol */
|
||||
sym_number_7_blue = 8348, /* blue number '7' symbol */
|
||||
sym_number_8_blue = 8349, /* blue number '8' symbol */
|
||||
sym_number_9_blue = 8350, /* blue number '9' symbol */
|
||||
sym_triangle_blue = 8351, /* blue triangle symbol */
|
||||
sym_triangle_green = 8352, /* green triangle symbol */
|
||||
sym_triangle_red = 8353, /* red triangle symbol */
|
||||
sym_food_asian = 8359, /* asian food symbol */
|
||||
sym_food_deli = 8360, /* deli symbol */
|
||||
sym_food_italian = 8361, /* italian food symbol */
|
||||
sym_food_seafood = 8362, /* seafood symbol */
|
||||
sym_food_steak = 8363, /* steak symbol */
|
||||
/*---------------------------------------------------------------
|
||||
Aviation symbols
|
||||
---------------------------------------------------------------*/
|
||||
sym_airport = 16384, /* airport symbol */
|
||||
sym_int = 16385, /* intersection symbol */
|
||||
sym_ndb = 16386, /* non-directional beacon symbol */
|
||||
sym_vor = 16387, /* VHF omni-range symbol */
|
||||
sym_heliport = 16388, /* heliport symbol */
|
||||
sym_private = 16389, /* private field symbol */
|
||||
sym_soft_fld = 16390, /* soft field symbol */
|
||||
sym_tall_tower = 16391, /* tall tower symbol */
|
||||
sym_short_tower = 16392, /* short tower symbol */
|
||||
sym_glider = 16393, /* glider symbol */
|
||||
sym_ultralight = 16394, /* ultralight symbol */
|
||||
sym_parachute = 16395, /* parachute symbol */
|
||||
sym_vortac = 16396, /* VOR/TACAN symbol */
|
||||
sym_vordme = 16397, /* VOR-DME symbol */
|
||||
sym_faf = 16398, /* first approach fix */
|
||||
sym_lom = 16399, /* localizer outer marker */
|
||||
sym_map = 16400, /* missed approach point */
|
||||
sym_tacan = 16401, /* TACAN symbol */
|
||||
sym_seaplane = 16402, /* Seaplane Base */
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Mapping from APRS symbols to Garmin.
|
||||
*/
|
||||
|
||||
// TODO: NEEDS MORE WORK!!!
|
||||
|
||||
|
||||
#define SYMTAB_SIZE 95
|
||||
|
||||
#define sym_default sym_diamond_grn
|
||||
|
||||
|
||||
static const symbol_type_t grm_primary_symtab[SYMTAB_SIZE] = {
|
||||
|
||||
sym_default, // 00 --no-symbol--
|
||||
sym_cntct_ranger, // ! 01 Police, Sheriff
|
||||
sym_default, // " 02 reserved (was rain)
|
||||
sym_rbcn, // # 03 DIGI (white center)
|
||||
sym_phone, // $ 04 PHONE
|
||||
sym_rbcn, // % 05 DX CLUSTER
|
||||
sym_rbcn, // & 06 HF GATEway
|
||||
sym_glider, // ' 07 Small AIRCRAFT
|
||||
sym_rbcn, // ( 08 Mobile Satellite Station
|
||||
sym_default, // ) 09 Wheelchair (handicapped)
|
||||
sym_car, // * 10 SnowMobile
|
||||
sym_1st_aid, // + 11 Red Cross
|
||||
sym_cntct_ball_cap, // , 12 Boy Scouts
|
||||
sym_house, // - 13 House QTH (VHF)
|
||||
sym_default, // . 14 X
|
||||
sym_default, // / 15 Red Dot
|
||||
sym_default, // 0 16 # circle (obsolete)
|
||||
sym_default, // 1 17 TBD
|
||||
sym_default, // 2 18 TBD
|
||||
sym_default, // 3 19 TBD
|
||||
sym_default, // 4 20 TBD
|
||||
sym_default, // 5 21 TBD
|
||||
sym_default, // 6 22 TBD
|
||||
sym_default, // 7 23 TBD
|
||||
sym_default, // 8 24 TBD
|
||||
sym_default, // 9 25 TBD
|
||||
sym_default, // : 26 FIRE
|
||||
sym_camp, // ; 27 Campground (Portable ops)
|
||||
sym_cntct_biker, // < 28 Motorcycle
|
||||
sym_default, // = 29 RAILROAD ENGINE
|
||||
sym_car, // > 30 CAR
|
||||
sym_default, // ? 31 SERVER for Files
|
||||
sym_default, // @ 32 HC FUTURE predict (dot)
|
||||
sym_1st_aid, // A 33 Aid Station
|
||||
sym_rbcn, // B 34 BBS or PBBS
|
||||
sym_boat_ramp, // C 35 Canoe
|
||||
sym_default, // D 36
|
||||
sym_default, // E 37 EYEBALL (Eye catcher!)
|
||||
sym_default, // F 38 Farm Vehicle (tractor)
|
||||
sym_default, // G 39 Grid Square (6 digit)
|
||||
sym_lodging, // H 40 HOTEL (blue bed symbol)
|
||||
sym_rbcn, // I 41 TcpIp on air network stn
|
||||
sym_default, // J 42
|
||||
sym_school, // K 43 School
|
||||
sym_default, // L 44 PC user
|
||||
sym_default, // M 45 MacAPRS
|
||||
sym_default, // N 46 NTS Station
|
||||
sym_parachute, // O 47 BALLOON
|
||||
sym_cntct_ranger, // P 48 Police
|
||||
sym_default, // Q 49 TBD
|
||||
sym_rv_park, // R 50 REC. VEHICLE
|
||||
sym_glider, // S 51 SHUTTLE
|
||||
sym_default, // T 52 SSTV
|
||||
sym_car, // U 53 BUS
|
||||
sym_cntct_biker, // V 54 ATV
|
||||
sym_default, // W 55 National WX Service Site
|
||||
sym_default, // X 56 HELO
|
||||
sym_default, // Y 57 YACHT (sail)
|
||||
sym_default, // Z 58 WinAPRS
|
||||
sym_cntct_smiley, // [ 59 Human/Person (HT)
|
||||
sym_triangle_green, // \ 60 TRIANGLE(DF station)
|
||||
sym_default, // ] 61 MAIL/PostOffice(was PBBS)
|
||||
sym_glider, // ^ 62 LARGE AIRCRAFT
|
||||
sym_default, // _ 63 WEATHER Station (blue)
|
||||
sym_rbcn, // ` 64 Dish Antenna
|
||||
sym_1st_aid, // a 65 AMBULANCE
|
||||
sym_cntct_biker, // b 66 BIKE
|
||||
sym_default, // c 67 Incident Command Post
|
||||
sym_hydrant, // d 68 Fire dept
|
||||
sym_deer, // e 69 HORSE (equestrian)
|
||||
sym_hydrant, // f 70 FIRE TRUCK
|
||||
sym_glider, // g 71 Glider
|
||||
sym_1st_aid, // h 72 HOSPITAL
|
||||
sym_default, // i 73 IOTA (islands on the air)
|
||||
sym_car, // j 74 JEEP
|
||||
sym_car, // k 75 TRUCK
|
||||
sym_default, // l 76 Laptop
|
||||
sym_rbcn, // m 77 Mic-E Repeater
|
||||
sym_default, // n 78 Node (black bulls-eye)
|
||||
sym_default, // o 79 EOC
|
||||
sym_cntct_dog, // p 80 ROVER (puppy, or dog)
|
||||
sym_default, // q 81 GRID SQ shown above 128 m
|
||||
sym_rbcn, // r 82 Repeater
|
||||
sym_default, // s 83 SHIP (pwr boat)
|
||||
sym_truck_stop, // t 84 TRUCK STOP
|
||||
sym_truck_stop, // u 85 TRUCK (18 wheeler)
|
||||
sym_car, // v 86 VAN
|
||||
sym_drinking_wtr, // w 87 WATER station
|
||||
sym_default, // x 88 xAPRS (Unix)
|
||||
sym_tall_tower, // y 89 YAGI @ QTH
|
||||
sym_default, // z 90 TBD
|
||||
sym_default, // { 91
|
||||
sym_default, // | 92 TNC Stream Switch
|
||||
sym_default, // } 93
|
||||
sym_default }; // ~ 94 TNC Stream Switch
|
||||
|
||||
static const symbol_type_t grm_alternate_symtab[SYMTAB_SIZE] = {
|
||||
|
||||
sym_default, // 00 --no-symbol--
|
||||
sym_default, // ! 01 EMERGENCY (!)
|
||||
sym_default, // " 02 reserved
|
||||
sym_default, // # 03 OVERLAY DIGI (green star)
|
||||
sym_default, // $ 04 Bank or ATM (green box)
|
||||
sym_default, // % 05 Power Plant with overlay
|
||||
sym_rbcn, // & 06 I=Igte IGate R=RX T=1hopTX 2=2hopTX
|
||||
sym_default, // ' 07 Crash (& now Incident sites)
|
||||
sym_default, // ( 08 CLOUDY (other clouds w ovrly)
|
||||
sym_hydrant, // ) 09 Firenet MEO, MODIS Earth Obs.
|
||||
sym_default, // * 10 SNOW (& future ovrly codes)
|
||||
sym_default, // + 11 Church
|
||||
sym_cntct_female1, // , 12 Girl Scouts
|
||||
sym_house, // - 13 House (H=HF) (O = Op Present)
|
||||
sym_default, // . 14 Ambiguous (Big Question mark)
|
||||
sym_default, // / 15 Waypoint Destination
|
||||
sym_default, // 0 16 CIRCLE (E/I/W=IRLP/Echolink/WIRES)
|
||||
sym_default, // 1 17
|
||||
sym_default, // 2 18
|
||||
sym_default, // 3 19
|
||||
sym_default, // 4 20
|
||||
sym_default, // 5 21
|
||||
sym_default, // 6 22
|
||||
sym_default, // 7 23
|
||||
sym_default, // 8 24 802.11 or other network node
|
||||
sym_default, // 9 25 Gas Station (blue pump)
|
||||
sym_default, // : 26 Hail (& future ovrly codes)
|
||||
sym_park, // ; 27 Park/Picnic area
|
||||
sym_default, // < 28 ADVISORY (one WX flag)
|
||||
sym_rbcn, // = 29 APRStt Touchtone (DTMF users)
|
||||
sym_car, // > 30 OVERLAID CAR
|
||||
sym_default, // ? 31 INFO Kiosk (Blue box with ?)
|
||||
sym_default, // @ 32 HURRICANE/Trop-Storm
|
||||
sym_default, // A 33 overlayBOX DTMF & RFID & XO
|
||||
sym_default, // B 34 Blwng Snow (& future codes)
|
||||
sym_coast_guard, // C 35 Coast Guard
|
||||
sym_default, // D 36 Drizzle (proposed APRStt)
|
||||
sym_default, // E 37 Smoke (& other vis codes)
|
||||
sym_default, // F 38 Freezng rain (&future codes)
|
||||
sym_default, // G 39 Snow Shwr (& future ovrlys)
|
||||
sym_default, // H 40 Haze (& Overlay Hazards)
|
||||
sym_default, // I 41 Rain Shower
|
||||
sym_default, // J 42 Lightning (& future ovrlys)
|
||||
sym_rbcn, // K 43 Kenwood HT (W)
|
||||
sym_light, // L 44 Lighthouse
|
||||
sym_default, // M 45 MARS (A=Army,N=Navy,F=AF)
|
||||
sym_default, // N 46 Navigation Buoy
|
||||
sym_default, // O 47 Rocket
|
||||
sym_default, // P 48 Parking
|
||||
sym_default, // Q 49 QUAKE
|
||||
sym_default, // R 50 Restaurant
|
||||
sym_rbcn, // S 51 Satellite/Pacsat
|
||||
sym_default, // T 52 Thunderstorm
|
||||
sym_default, // U 53 SUNNY
|
||||
sym_default, // V 54 VORTAC Nav Aid
|
||||
sym_default, // W 55 # NWS site (NWS options)
|
||||
sym_pharmacy, // X 56 Pharmacy Rx (Apothicary)
|
||||
sym_rbcn, // Y 57 Radios and devices
|
||||
sym_default, // Z 58
|
||||
sym_default, // [ 59 W.Cloud (& humans w Ovrly)
|
||||
sym_default, // \ 60 New overlayable GPS symbol
|
||||
sym_default, // ] 61
|
||||
sym_glider, // ^ 62 # Aircraft (shows heading)
|
||||
sym_default, // _ 63 # WX site (green digi)
|
||||
sym_default, // ` 64 Rain (all types w ovrly)
|
||||
sym_default, // a 65 ARRL, ARES, WinLINK
|
||||
sym_default, // b 66 Blwng Dst/Snd (& others)
|
||||
sym_default, // c 67 CD triangle RACES/SATERN/etc
|
||||
sym_default, // d 68 DX spot by callsign
|
||||
sym_default, // e 69 Sleet (& future ovrly codes)
|
||||
sym_default, // f 70 Funnel Cloud
|
||||
sym_default, // g 71 Gale Flags
|
||||
sym_default, // h 72 Store. or HAMFST Hh=HAM store
|
||||
sym_default, // i 73 BOX or points of Interest
|
||||
sym_default, // j 74 WorkZone (Steam Shovel)
|
||||
sym_car, // k 75 Special Vehicle SUV,ATV,4x4
|
||||
sym_default, // l 76 Areas (box,circles,etc)
|
||||
sym_default, // m 77 Value Sign (3 digit display)
|
||||
sym_default, // n 78 OVERLAY TRIANGLE
|
||||
sym_default, // o 79 small circle
|
||||
sym_default, // p 80 Prtly Cldy (& future ovrlys)
|
||||
sym_default, // q 81
|
||||
sym_restrooms, // r 82 Restrooms
|
||||
sym_default, // s 83 OVERLAY SHIP/boat (top view)
|
||||
sym_default, // t 84 Tornado
|
||||
sym_car, // u 85 OVERLAID TRUCK
|
||||
sym_car, // v 86 OVERLAID Van
|
||||
sym_default, // w 87 Flooding
|
||||
sym_wreck, // x 88 Wreck or Obstruction ->X<-
|
||||
sym_default, // y 89 Skywarn
|
||||
sym_default, // z 90 OVERLAID Shelter
|
||||
sym_default, // { 91 Fog (& future ovrly codes)
|
||||
sym_default, // | 92 TNC Stream Switch
|
||||
sym_default, // } 93
|
||||
sym_default }; // ~ 94 TNC Stream Switch
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue