#if !defined(AFX_RXDIALOG_H__C0C700BF_4C12_4921_B2C0_A02384CE2571__INCLUDED_) #define AFX_RXDIALOG_H__C0C700BF_4C12_4921_B2C0_A02384CE2571__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // RxDialog.h : header file // ///////////////////////////////////////////////////////////////////////////// // CRxDialog dialog class CRxDialog : public CDialog // this dialog-based class is used to setting the reciever object (CRx) parameters by using reciever profile dialog. // Construction { public: char* buffer;// "buffer" is set as a array of characters that shows the buffer of Rx. float StartTime;// "start time " is not a real variable but it can be used as a parameter in future. CCode* code;// "code" is a pointer to the Ccode object that shows the Rx's OOC info. CSim* sim;// the pointer to the CSim object that its parameters is used by this dialog CRx* rx;// the pointer to the CRx object that its parameters is set by this dialog /////////////////////////////////////////////////////////////////////////////////////////////////// CRxDialog(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CRxDialog)e enum { IDD = IDD_DReceiverProfile }; CEdit m_ProcDelay;// to desable or enable the process delay Edit box of this object. CButton Ready4Rx;// to desable or enable the ready4Rx button of this dialog. CComboBox ComboOOC;// to work with the Combo OOC Combo box of this dialog. BYTE RxID;// the identity of current Rx(0=CRx*rx) int BufferSize;// the Edit box variable shows the size of Rx buffer. int CRCSize;// the Edit box variable shows the size of Rx CRC. BYTE OOCNum;// the Edit box variable index number of this object OOC. int PacketSize;// the Edit box variable the size of the packets of current reciever that is the addition of the others. int PayloadSize;// the Edit box variable to set the payload size of the packets of current reciever. int UsedBufferSize;// the Edit box variable the size of buffer that have been used by current Rx(=CRx*rx) int WindowSize;// the Edit box variable to set the size of window that is used by current reciever. int HeaderSize;// the Edit box variable to set the header size of the packets of current reciever. CString OOC;// the strings of OOC. int MatchedFilter;// the radio button variable to choose one of this acqeuisition methodes 0=simple serial search 1= matched filter int LimiterType;// the radio button variable to choose one of three limiter types 0= no limiter 1= hard limiter 2= soft limiter int ProcDelay;// // the Edit box variable to set the process delay of Rx . int RndProcDelay;// the radio-button variable that shows the process delay is random or not. //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CRxDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CRxDialog) virtual BOOL OnInitDialog();// to initialize some parameters of Rx object (CRx*rx) in this dialog. afx_msg void OnChangeEHeaderSize();// called when user changes the header size edit box to update Rx's header size value afx_msg void OnChangeEPayloadSize();// called when user changes the payload size Edit box to update Rx's payload size value. afx_msg void OnChangeECRCSize();// called when user changes the CRCsize Edit box to update Rx's CRC size . afx_msg void OnROn();//called when user switch on the randomize parameters of process delay of dialog. afx_msg void OnROff();// called when user switch off the randomize parameters of process delay of dialog. afx_msg void OnSelendokComboOOC();//called when user changes the OOC of the Combo box . afx_msg void OnChangeEBufferSize();//called when user changes the buffer size Edit box of this dialog. afx_msg void OnChangeEWindowSize();//called when user changes the window size Edit box of this dialog. afx_msg void OnChangeEProcDelay();//called when user changes the process delay Edit box of this dialog. afx_msg void OnRNoLimiter();//called when user choose "no" in limiter type group box to get signal with out any limiter for Rx . afx_msg void OnRHardLimiter();//called when user choose "hard" in limiter type group box to cut off the input signal to Rx. afx_msg void OnRSoftLimiter();//called when user choose "soft" in limiter type group box this choice dosent function yet but maybe in future . afx_msg void OnRMethod0();//called when user choose method0 of acquisition group box = simple serial search afx_msg void OnRMethod1();//called when user choose method1 of acquisition group box = matched filter. afx_msg void OnBShowBuffer();//called when user click "show buffer " button to show the buffer of Rx. afx_msg void OnBSaveData();//called when user click "save data" button to save the buffer content of Rx. //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_RXDIALOG_H__C0C700BF_4C12_4921_B2C0_A02384CE2571__INCLUDED_)