- //---------------------------------------------------------------------------
- #ifndef _FORM_RFTXIQBBTX_H_
- #define _FORM_RFTXIQBBTX_H_
- #include <Buttons.hpp>
- #include <Classes.hpp>
- #include <ComCtrls.hpp>
- #include <Controls.hpp>
- #include <ExtCtrls.hpp>
- #include <StdCtrls.hpp>
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <Buttons.hpp>
- #include <ExtCtrls.hpp>
- #include <ComCtrls.hpp>
- #include <Dialogs.hpp>
- #ifndef _GNRL_MSCAP_H_
- #include "gnrl_mscap.h"
- #endif
- // RF
- #ifndef _RF_COMMON_H_
- #include "rf_common.h"
- #endif
- #ifndef _RF_TX_H_
- #include "rf_tx.h"
- #endif
- #ifndef _RF_MULTISLOTTX_H_
- #include "rf_multislottx.h"
- #endif
- #ifndef _RF_TXIQ_H_
- #include "rf_txiq.h"
- #endif
- #ifndef _RF_TXIQ_RUN_H_
- #include "rf_txiq_run.h"
- #endif
- //---------------------------------------------------------------------------
- class TfrmTXIQBBTXSetting : public TForm
- {
- __published: // IDE-managed Components
- TButton *btnTXIQDownloadToFlash;
- TButton *btnTXIQUploadFromFlash;
- TButton *btnTXIQChangeDB;
- TButton *btnTXIQLoadFromFile;
- TButton *btnTXIQSaveToFile;
- TGroupBox *grpTX01;
- TLabel *lblLabel42;
- TLabel *lblLabel43;
- TLabel *lblLabel44;
- TLabel *lblLabel45;
- TLabel *lblLabel41;
- TLabel *lblTXCS;
- TLabel *lblTXModulation;
- TLabel *lblTXBurstType;
- TLabel *lblTXPattern;
- TLabel *lblTXTA;
- TEdit *edtTXPcl;
- TEdit *edtTXAfc;
- TComboBox *cbxTXBand;
- TComboBox *cbxTXTsc;
- TEdit *edtTXArfcn;
- TBitBtn *btnTXStop;
- TComboBox *cbTXCS;
- TComboBox *cbTXModulation;
- TComboBox *cbTXBurstType;
- TEdit *edtTXPattern;
- TEdit *edtTXTA;
- TGroupBox *gbBBTxParameter;
- TBitBtn *btnTXStart;
- TPanel *pnlLBPHeader;
- TPanel *pnlLBP;
- TLabel *lblTXIQBBTXTrimI;
- TLabel *lblTXIQBBTXTrimQ;
- TEdit *edtTXIQBBTXTrimI;
- TEdit *edtTXIQBBTXTrimQ;
- TLabel *lblTXIQBBTXOffsetI;
- TEdit *edtTXIQBBTXOffsetI;
- TLabel *lblTXIQBBTXOffsetQ;
- TEdit *edtTXIQBBTXOffsetQ;
- TLabel *lblTXIQBBTXCommonModeVoltage;
- TLabel *lblTXIQBBTXGain;
- TEdit *edtTXIQBBTXCommonModeVoltage;
- TEdit *edtTXIQBBTXGain;
- TLabel *lblTXIQBBTXCalrcsel;
- TEdit *edtTXIQBBTXCalrcsel;
- TPanel *pnlHBP;
- TLabel *lblTXIQBBTXTrimIHigh;
- TLabel *lblTXIQBBTXTrimQHigh;
- TLabel *lblTXIQBBTXOffsetIHigh;
- TLabel *lblTXIQBBTXOffsetQHigh;
- TLabel *lblTXIQBBTXCommonModeVoltageHigh;
- TLabel *lblTXIQBBTXGainHigh;
- TLabel *lblTXIQBBTXCalrcselHigh;
- TEdit *edtTXIQBBTXTrimIHigh;
- TEdit *edtTXIQBBTXTrimQHigh;
- TEdit *edtTXIQBBTXOffsetIHigh;
- TEdit *edtTXIQBBTXOffsetQHigh;
- TEdit *edtTXIQBBTXCommonModeVoltageHigh;
- TEdit *edtTXIQBBTXGainHigh;
- TEdit *edtTXIQBBTXCalrcselHigh;
- TPanel *pnlHBPHeader;
- TPanel *pnlCPHeader;
- TPanel *pnlCP;
- TLabel *lblTXIQAPCBatLowVoltage;
- TLabel *lblTXIQAPCBatHighVoltage;
- TLabel *lblTXIQAPCBatLowTemperature;
- TLabel *lblTXIQAPCBatHighTemperature;
- TEdit *edtTXIQAPCBatLowVoltage;
- TEdit *edtTXIQAPCBatHighVoltage;
- TEdit *edtTXIQAPCBatLowTemperature;
- TEdit *edtTXIQAPCBatHighTemperature;
- TLabel *lblTXIQAPCBatLowVoltageUnit;
- TLabel *lblTXIQAPCBatHighVoltageUnit;
- TLabel *lblTXIQAPCBatHighTemperatureUnit;
- TLabel *lblTXIQAPCBatLowTemperatureUnit;
- TLabel *lblTXIQBBTXCalibratedFlag;
- TEdit *edtTXIQBBTXCalibratedFlag;
- TStatusBar *sbTXIQ;
- TStaticText *lblHint;
- TTimer *HintTimer;
- TTimer *Timer1;
- TOpenDialog *dlgOpen;
- TSaveDialog *dlgSave;
- TTimer *Timer2;
- TLabel *lblTXIQBBTXPhasesel;
- TEdit *edtTXIQBBTXPhasesel;
- TLabel *lblTXIQBBTXPhaseselHigh;
- TEdit *edtTXIQBBTXPhaseselHigh;
- void __fastcall edtArfcnCheck(TObject *Sender);
- void __fastcall edtPclCheck(TObject *Sender);
- void __fastcall edtAfcDacCheck(TObject *Sender);
- void __fastcall edtTACheck(TObject *Sender);
- void __fastcall edtBBTXCommonModeVoltageCheck(TObject *Sender);
- void __fastcall edtBBTXGainCheck(TObject *Sender);
- void __fastcall edtCTBBTXCalrcselCheck(TObject *Sender);
- void __fastcall edtTXIQBBTXTrimICheck(TObject *Sender);
- void __fastcall edtTXIQBBTXTrimQCheck(TObject *Sender);
- void __fastcall edtTXIQBBTXOffsetICheck(TObject *Sender);
- void __fastcall edtTXIQBBTXOffsetQCheck(TObject *Sender);
- void __fastcall edtBBTXCalibratedFlagCheck(TObject *Sender);
- void __fastcall edtAPCBatLowVoltageCheck(TObject *Sender);
- void __fastcall edtAPCBatHighVoltageCheck(TObject *Sender);
- void __fastcall edtAPCBatLowTemperatureCheck(TObject *Sender);
- void __fastcall edtAPCBatHighTemperatureCheck(TObject *Sender);
- void __fastcall btnTXIQUploadFromFlashClick(TObject *Sender);
- void __fastcall btnTXIQDownloadToFlashClick(TObject *Sender);
- void __fastcall btnTXIQChangeDBClick(TObject *Sender);
- void __fastcall btnTXIQLoadFromFileClick(TObject *Sender);
- void __fastcall btnTXIQSaveToFileClick(TObject *Sender);
- void __fastcall Timer2Timer(TObject *Sender);
- void __fastcall btnTXStartClick(TObject *Sender);
- void __fastcall btnTXStopClick(TObject *Sender);
- void __fastcall edtPatternCheck(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall cbTXModulationChange(TObject *Sender);
- void __fastcall cbxBandChange(TObject *Sender);
- void __fastcall cbTXBurstTypeChange(TObject *Sender);
- void __fastcall edtTXIQBBTXPhaseselCheck(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- private: // User declarations
- bool m_bInit;
- bool m_bMultiSlotTxExSupport;
- unsigned int m_uiFinalRfid;
- RfMsCapabilityEx_S m_sFinalMSCAP;
- E_BBTXCFG_VER_T m_eBbTxCfgVer;
- bool m_bDcCoarseSupport;
- S_UI_L1CAL_TXIQ m_sUiL1CalTxIq;
- CRFTX* m_pcRF_TX_Obj;
- CRFTXIQ* m_pcRF_TXIQ_Obj;
- CRFTXIQRUN* m_pcRF_TXIQRUN_Obj;
- CRFMULTISLOTTX* m_pcRF_MULTI_SLOT_TX_Obj;
- CRFSTOP* m_pcRF_STOP_Obj;
- E_BANDSEL m_eCurBand;
- public: // User declarations
- __fastcall TfrmTXIQBBTXSetting(TComponent* Owner);
- void Init(void);
- // UI
- void Display_TxCS(RfMsCapabilityBits capability, E_MODULATION modulation);
- void Display_TXGmskBurstType(void);
- void Display_TXEpskBurstType(void);
- void Display_TxGmskUi(void);
- void Display_TxEpskUi(void);
- void ShowHintLabel(TControl *sender, char* hint);
- void RedrawBBTxParameters(void);
- void CurrentPageReset(void);
- void CurrentPageLock(void);
- APCTxPattern Get_GmskBurstType(void);
- APCTxPattern Get_EpskBurstType(void);
- void Get_BBTXChangeFlag(S_BBTXPARA_CHANGE_FLAG_T& flag);
- //void SetBBTxParameterAccess( void );
- // RF
- void Force_RF_Stop( void );
- // callback
- void TXIQ_UploadFromFlashDone( void );
- void TXIQ_DownloadToFlashDone( void );
- void ConfirmCallback_TX( void );
- void ConfirmCallback_MultiSlotTX( void );
- // global information
- void Set_RF_TX_Obj(CRFTX* rf_tx_obj);
- void Set_RF_TXIQ_Obj(CRFTXIQ* rf_txiq_obj);
- void Set_RF_TXIQRUN_Obj(CRFTXIQRUN* rf_txiqrun_obj);
- void Set_RF_MULTI_SLOT_TX_Obj(CRFMULTISLOTTX* rf_multi_slot_tx_obj);
- void Set_RF_STOP_Obj(CRFSTOP* rf_stop_obj);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmTXIQBBTXSetting *frmTXIQBBTXSetting;
- //---------------------------------------------------------------------------
- #endif