⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.h

📁 QAM module to use in Java with an easy interface and powerful performance
💻 H
字号:
#ifndef ConstantsH
#define ConstantsH
#include <windows.h>
#include <system.hpp>
#include "FtpSrv.hpp"

#define WTSIZE 2000
#define WTSIZE_1 1999

//#define CM_PROGRAMLOADED WM_APP + 110
//#define CM_SETTINGFINISHED WM_APP + 109
#define CM_STARTUNREALSERVER WM_APP + 108
#define CM_MESSAGEQUECLEAR     WM_APP + 107
#define CM_STOPAUDIO           WM_APP + 106
#define CM_GOTTEXTDATABLOCK  WM_APP + 105
#define CM_SENDNEXTWEBPACKET WM_APP + 104
#define CM_GOTFILEPACKETFORYOU WM_APP + 103
#define CM_STATIONIDCHANGED WM_APP + 102
#define CM_DIRCONTENTSCHANGED WM_APP + 101

#define WM_DESTROY_SOCKET WM_APP + 1
#define UDPBufferInSize 20000
#define TX_CHAR_BUFF_SIZE 40000
#define RX_CHAR_BUFF_SIZE 20000
#define NUMBER_OF_CONSTELLATION_POINTS_TO_DRAW 2048

#define FREQ_SCANNER_INTERNAL_AVE_NUMBER 2


#define PREAMBLE 7967248089510224582ui64
#define PREAMBLE_LEN 32

enum NotificationEventType {CH_NULL=0, CH_ANYTHING=1,CH_FREQ=2,CH_CONSTELATIONSIZE=4,CH_SAMPLERATE=8,CH_FRAME_SETTINGS=16};
enum PacketType {ptStationID,ptUdp,ptText,ptUnReal,ptUnRealHeader,ptRs232,ptWeb};
enum AcquisitionStage {
        Resetting,
        WaitingForCarrier,
        WaitingForLock,
        WaitingForCMAToFinish,
        WaitingForAutoRotationToFinishForCMA,
        WaitingForTCMResopceForCMA,
        WaitingForAMAToFinish,
        WaitingForAutoRotationToFinishForAMA,
        WaitingForTCMMSEResponceForAMA,
        WaitingForFrame,
        WaitingForLossOfLock
        };

/*enum AcquisitionStage {
        Resetting1,
        AutoRotating1,
        WaitForAutoRotatingToFinish1,
        WaitingForTCMMSEResponce1,
        Resetting2,
        AutoRotating2,
        WaitForAutoRotatingToFinish2,
        WaitingForTCMMSEResponce2,
        TurningOnAMA,
        WaitingForTimeingToSettle,
        SwitchingToDDTimeing,
        WaitingForDDToSettle,
        WaitingForInterleavingSync,
        WaitingForInterleaverToFill,
        WaitingForTCMMSEOrMSEToGetToBig
        };*/

struct PtComplex
{
        double re;
        double im;
};

struct FrequencySetting
{
        double Freq;
        double Gamma;
        double SignalPower;
};

struct PtComplexInt
{
        int re;
        int im;
};

struct NameSizeDate
{
        AnsiString Filename;
        int FileSize;
        int FileDate;
};

struct NameSize
{
        AnsiString Filename;
        int FileSize;
};

struct PosStep
{
        int Pos;
        int Step;
};

struct  FTPClient_PutFile{
        TFtpCtrlSocket *Client;
        AnsiString PutName;
        bool Storeing;
};
#endif
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -