form_WiFiBBCR.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:16k
源码类别:

MTK

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef _FORM_WIFIBBCR_H_
  3. #define _FORM_WIFIBBCR_H_
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <Dialogs.hpp>
  11. #include <ComCtrls.hpp>
  12. #ifndef  _WIFI_BB_H_
  13. #include "wifi_bb.h"
  14. #endif
  15. //---------------------------------------------------------------------------
  16. class TfrmWiFiBBCR : public TForm
  17. {
  18. __published: // IDE-managed Components
  19.         TTimer *HintTimer;
  20.         TSaveDialog *SaveDialog;
  21.         TOpenDialog *OpenDialog;
  22.         TPageControl *PageControl1;
  23.         TTabSheet *tsIPTR;
  24.         TTabSheet *tsBBPC;
  25.         TPanel *pnlIPCHeader;
  26.         TCheckBox *cbIPCHeader;
  27.         TPanel *pnlIPC;
  28.         TLabel *lblIPC0;
  29.         TLabel *lblIPCn0;
  30.         TEdit *edtIPC0;
  31.         TLabel *lblIPC1;
  32.         TLabel *lblIPCn1;
  33.         TEdit *edtIPC1;
  34.         TLabel *lblIPC2;
  35.         TEdit *edtIPC2;
  36.         TLabel *lblIPCn2;
  37.         TLabel *lblIPC3;
  38.         TLabel *lblIPCn3;
  39.         TEdit *edtIPC3;
  40.         TLabel *lblIPC4;
  41.         TLabel *lblIPCn4;
  42.         TEdit *edtIPC4;
  43.         TCheckBox *cbIPC0;
  44.         TCheckBox *cbIPC1;
  45.         TCheckBox *cbIPC2;
  46.         TCheckBox *cbIPC3;
  47.         TCheckBox *cbIPC4;
  48.         TPanel *Panel4;
  49.         TPanel *pnlTX;
  50.         TCheckBox *cbTXHeader;
  51.         TLabel *lblTX2;
  52.         TEdit *edtTX2;
  53.         TLabel *lblTXn2;
  54.         TLabel *lblTX3;
  55.         TLabel *lblTXn3;
  56.         TEdit *edtTX3;
  57.         TLabel *lblTX4;
  58.         TLabel *lblTXn4;
  59.         TEdit *edtTX4;
  60.         TLabel *lblTX5;
  61.         TLabel *lblTXn5;
  62.         TEdit *edtTX5;
  63.         TLabel *lblTX6;
  64.         TLabel *lblTXn6;
  65.         TEdit *edtTX6;
  66.         TLabel *lblTX7;
  67.         TLabel *lblTXn7;
  68.         TEdit *edtTX7;
  69.         TLabel *lblTXn0;
  70.         TEdit *edtTX0;
  71.         TLabel *lblTX0;
  72.         TLabel *lblTXn1;
  73.         TEdit *edtTX1;
  74.         TLabel *lblTX1;
  75.         TCheckBox *cbTX0;
  76.         TCheckBox *cbTX1;
  77.         TCheckBox *cbTX2;
  78.         TCheckBox *cbTX3;
  79.         TCheckBox *cbTX4;
  80.         TCheckBox *cbTX5;
  81.         TCheckBox *cbTX6;
  82.         TCheckBox *cbTX7;
  83.         TCheckBox *cbTX8;
  84.         TCheckBox *cbTX9;
  85.         TLabel *lblTX8;
  86.         TLabel *lblTX9;
  87.         TLabel *lblTXn8;
  88.         TLabel *lblTXn9;
  89.         TEdit *edtTX8;
  90.         TEdit *edtTX9;
  91.         TPanel *pnlRXHeader;
  92.         TPanel *pnlRX;
  93.         TLabel *lblRX00;
  94.         TLabel *lblRXn00;
  95.         TEdit *edtRX00;
  96.         TLabel *lblRXn01;
  97.         TEdit *edtRX01;
  98.         TLabel *lblRX01;
  99.         TLabel *lblRX02;
  100.         TLabel *lblRXn02;
  101.         TEdit *edtRX02;
  102.         TLabel *lblRX03;
  103.         TLabel *lblRXn03;
  104.         TEdit *edtRX03;
  105.         TLabel *lblRXn04;
  106.         TEdit *edtRX04;
  107.         TLabel *lblRX04;
  108.         TLabel *lblRXn05;
  109.         TEdit *edtRX05;
  110.         TLabel *lblRX05;
  111.         TLabel *lblRX06;
  112.         TLabel *lblRXn06;
  113.         TEdit *edtRX06;
  114.         TLabel *lblRXn07;
  115.         TEdit *edtRX07;
  116.         TLabel *lblRX07;
  117.         TLabel *lblRXn08;
  118.         TEdit *edtRX08;
  119.         TLabel *lblRX08;
  120.         TLabel *lblRX09;
  121.         TLabel *lblRXn09;
  122.         TEdit *edtRX09;
  123.         TLabel *lblRXn10;
  124.         TEdit *edtRX10;
  125.         TLabel *lblRX10;
  126.         TLabel *lblRX11;
  127.         TLabel *lblRXn11;
  128.         TEdit *edtRX11;
  129.         TLabel *lblRXn12;
  130.         TEdit *edtRX12;
  131.         TLabel *lblRX12;
  132.         TCheckBox *cbRX00;
  133.         TCheckBox *cbRX01;
  134.         TCheckBox *cbRX02;
  135.         TCheckBox *cbRX03;
  136.         TCheckBox *cbRX04;
  137.         TCheckBox *cbRX05;
  138.         TCheckBox *cbRX06;
  139.         TCheckBox *cbRX07;
  140.         TCheckBox *cbRX08;
  141.         TCheckBox *cbRX09;
  142.         TCheckBox *cbRX10;
  143.         TCheckBox *cbRX11;
  144.         TCheckBox *cbRX12;
  145.         TPanel *pnlBBPCHeader;
  146.         TPanel *Panel9;
  147.         TCheckBox *cbBBPC004;
  148.         TCheckBox *cbBBPCHeader;
  149.         TCheckBox *cbBBPC005;
  150.         TCheckBox *cbBBPC006;
  151.         TCheckBox *cbBBPC007;
  152.         TLabel *lblRX13;
  153.         TLabel *lblRXn13;
  154.         TEdit *edtRX13;
  155.         TLabel *lblRX14;
  156.         TLabel *lblRXn14;
  157.         TEdit *edtRX14;
  158.         TLabel *lblBBPC000;
  159.         TEdit *edtBBPC000;
  160.         TLabel *lblBBPCn000;
  161.         TLabel *lblBBPC001;
  162.         TLabel *lblBBPCn001;
  163.         TEdit *edtBBPC001;
  164.         TLabel *lblBBPCn002;
  165.         TEdit *edtBBPC002;
  166.         TLabel *lblBBPC002;
  167.         TLabel *lblBBPCn003;
  168.         TEdit *edtBBPC003;
  169.         TLabel *lblBBPC003;
  170.         TLabel *lblBBPCn004;
  171.         TEdit *edtBBPC004;
  172.         TLabel *lblBBPC004;
  173.         TLabel *lblBBPCn005;
  174.         TEdit *edtBBPC005;
  175.         TLabel *lblBBPC005;
  176.         TLabel *lblBBPCn006;
  177.         TEdit *edtBBPC006;
  178.         TLabel *lblBBPC006;
  179.         TLabel *lblBBPCn007;
  180.         TEdit *edtBBPC007;
  181.         TLabel *lblBBPC007;
  182.         TLabel *lblBBPCn008;
  183.         TEdit *edtBBPC008;
  184.         TLabel *lblBBPC008;
  185.         TLabel *lblBBPCn009;
  186.         TEdit *edtBBPC009;
  187.         TLabel *lblBBPC009;
  188.         TLabel *lblBBPCn010;
  189.         TEdit *edtBBPC010;
  190.         TLabel *lblBBPC010;
  191.         TCheckBox *cbBBPC000;
  192.         TCheckBox *cbBBPC001;
  193.         TCheckBox *cbBBPC002;
  194.         TCheckBox *cbBBPC003;
  195.         TCheckBox *cbBBPC010;
  196.         TCheckBox *cbBBPC009;
  197.         TCheckBox *cbBBPC008;
  198.         TLabel *lblBBPC011;
  199.         TEdit *edtBBPC011;
  200.         TLabel *lblBBPCn011;
  201.         TLabel *lblBBPCn012;
  202.         TEdit *edtBBPC012;
  203.         TLabel *lblBBPC012;
  204.         TLabel *lblBBPC013;
  205.         TLabel *lblBBPCn013;
  206.         TEdit *edtBBPC013;
  207.         TLabel *lblBBPC014;
  208.         TEdit *edtBBPC014;
  209.         TLabel *lblBBPCn014;
  210.         TLabel *lblBBPCn015;
  211.         TEdit *edtBBPC015;
  212.         TLabel *lblBBPC015;
  213.         TCheckBox *cbBBPC011;
  214.         TCheckBox *cbBBPC012;
  215.         TCheckBox *cbBBPC013;
  216.         TCheckBox *cbBBPC014;
  217.         TCheckBox *cbBBPC015;
  218.         TLabel *lblBBPC016;
  219.         TLabel *lblBBPCn016;
  220.         TEdit *edtBBPC016;
  221.         TLabel *lblBBPCn017;
  222.         TEdit *edtBBPC017;
  223.         TLabel *lblBBPC017;
  224.         TLabel *lblBBPC018;
  225.         TLabel *lblBBPCn018;
  226.         TEdit *edtBBPC018;
  227.         TCheckBox *cbBBPC016;
  228.         TCheckBox *cbBBPC017;
  229.         TCheckBox *cbBBPC018;
  230.         TLabel *lblBBPC019;
  231.         TLabel *lblBBPCn019;
  232.         TEdit *edtBBPC019;
  233.         TLabel *lblBBPC020;
  234.         TEdit *edtBBPC020;
  235.         TLabel *lblBBPCn020;
  236.         TLabel *lblBBPC021;
  237.         TLabel *lblBBPCn021;
  238.         TEdit *edtBBPC021;
  239.         TLabel *lblBBPCn022;
  240.         TEdit *edtBBPC022;
  241.         TLabel *lblBBPC022;
  242.         TLabel *lblBBPCn023;
  243.         TEdit *edtBBPC023;
  244.         TLabel *lblBBPC023;
  245.         TCheckBox *cbBBPC019;
  246.         TCheckBox *cbBBPC020;
  247.         TCheckBox *cbBBPC021;
  248.         TCheckBox *cbBBPC022;
  249.         TCheckBox *cbBBPC023;
  250.         TLabel *lblBBPC024;
  251.         TLabel *lblBBPCn024;
  252.         TEdit *edtBBPC024;
  253.         TLabel *lblBBPC025;
  254.         TLabel *lblBBPCn025;
  255.         TEdit *edtBBPC025;
  256.         TLabel *lblBBPCn026;
  257.         TEdit *edtBBPC026;
  258.         TLabel *lblBBPC026;
  259.         TLabel *lblBBPCn027;
  260.         TEdit *edtBBPC027;
  261.         TLabel *lblBBPC027;
  262.         TLabel *lblBBPC028;
  263.         TLabel *lblBBPCn028;
  264.         TEdit *edtBBPC028;
  265.         TLabel *lblBBPC029;
  266.         TLabel *lblBBPCn029;
  267.         TEdit *edtBBPC029;
  268.         TLabel *lblBBPCn030;
  269.         TEdit *edtBBPC030;
  270.         TLabel *lblBBPC030;
  271.         TCheckBox *cbBBPC024;
  272.         TCheckBox *cbBBPC025;
  273.         TCheckBox *cbBBPC026;
  274.         TCheckBox *cbBBPC027;
  275.         TCheckBox *cbBBPC028;
  276.         TCheckBox *cbBBPC029;
  277.         TCheckBox *cbBBPC030;
  278.         TLabel *lblBBPC031;
  279.         TLabel *lblBBPCn031;
  280.         TEdit *edtBBPC031;
  281.         TCheckBox *cbBBPC031;
  282.         TLabel *lblBBPC032;
  283.         TLabel *lblBBPCn032;
  284.         TEdit *edtBBPC032;
  285.         TLabel *lblBBPCn033;
  286.         TEdit *edtBBPC033;
  287.         TLabel *lblBBPC033;
  288.         TLabel *lblBBPCn034;
  289.         TEdit *edtBBPC034;
  290.         TLabel *lblBBPC034;
  291.         TLabel *lblBBPCn035;
  292.         TEdit *edtBBPC035;
  293.         TLabel *lblBBPC035;
  294.         TLabel *lblBBPC036;
  295.         TLabel *lblBBPCn036;
  296.         TEdit *edtBBPC036;
  297.         TLabel *lblBBPC037;
  298.         TLabel *lblBBPCn037;
  299.         TEdit *edtBBPC037;
  300.         TLabel *lblBBPC038;
  301.         TEdit *edtBBPC038;
  302.         TLabel *lblBBPCn038;
  303.         TLabel *lblBBPCn039;
  304.         TEdit *edtBBPC039;
  305.         TLabel *lblBBPC039;
  306.         TCheckBox *cbBBPC032;
  307.         TCheckBox *cbBBPC033;
  308.         TCheckBox *cbBBPC034;
  309.         TCheckBox *cbBBPC035;
  310.         TCheckBox *cbBBPC036;
  311.         TCheckBox *cbBBPC037;
  312.         TCheckBox *cbBBPC038;
  313.         TCheckBox *cbBBPC039;
  314.         TLabel *lblBBPC040;
  315.         TEdit *edtBBPC040;
  316.         TLabel *lblBBPCn040;
  317.         TLabel *lblBBPCn041;
  318.         TEdit *edtBBPC041;
  319.         TLabel *lblBBPC041;
  320.         TLabel *lblBBPCn042;
  321.         TEdit *edtBBPC042;
  322.         TLabel *lblBBPC042;
  323.         TLabel *lblBBPCn043;
  324.         TEdit *edtBBPC043;
  325.         TLabel *lblBBPC043;
  326.         TLabel *lblBBPCn044;
  327.         TEdit *edtBBPC044;
  328.         TLabel *lblBBPC044;
  329.         TLabel *lblBBPCn045;
  330.         TEdit *edtBBPC045;
  331.         TLabel *lblBBPC045;
  332.         TLabel *lblBBPCn046;
  333.         TEdit *edtBBPC046;
  334.         TLabel *lblBBPC046;
  335.         TLabel *lblBBPCn047;
  336.         TEdit *edtBBPC047;
  337.         TLabel *lblBBPC047;
  338.         TCheckBox *cbBBPC040;
  339.         TCheckBox *cbBBPC041;
  340.         TCheckBox *cbBBPC042;
  341.         TCheckBox *cbBBPC043;
  342.         TCheckBox *cbBBPC044;
  343.         TCheckBox *cbBBPC045;
  344.         TCheckBox *cbBBPC046;
  345.         TCheckBox *cbBBPC047;
  346.         TLabel *lblBBPC048;
  347.         TEdit *edtBBPC048;
  348.         TLabel *lblBBPCn048;
  349.         TLabel *lblBBPCn049;
  350.         TLabel *lblBBPC049;
  351.         TEdit *edtBBPC049;
  352.         TLabel *lblBBPC050;
  353.         TLabel *lblBBPCn050;
  354.         TEdit *edtBBPC050;
  355.         TLabel *lblBBPC051;
  356.         TLabel *lblBBPCn051;
  357.         TEdit *edtBBPC051;
  358.         TLabel *lblBBPC052;
  359.         TLabel *lblBBPCn052;
  360.         TEdit *edtBBPC052;
  361.         TLabel *lblBBPCn053;
  362.         TEdit *edtBBPC053;
  363.         TLabel *lblBBPC053;
  364.         TEdit *edtBBPC054;
  365.         TLabel *lblBBPCn054;
  366.         TLabel *lblBBPC054;
  367.         TEdit *edtBBPC055;
  368.         TLabel *lblBBPCn055;
  369.         TLabel *lblBBPC055;
  370.         TCheckBox *cbBBPC048;
  371.         TCheckBox *cbBBPC049;
  372.         TCheckBox *cbBBPC050;
  373.         TCheckBox *cbBBPC051;
  374.         TCheckBox *cbBBPC052;
  375.         TCheckBox *cbBBPC053;
  376.         TCheckBox *cbBBPC054;
  377.         TCheckBox *cbBBPC055;
  378.         TLabel *lblBBPC056;
  379.         TLabel *lblBBPCn056;
  380.         TEdit *edtBBPC056;
  381.         TLabel *lblBBPCn057;
  382.         TLabel *lblBBPC057;
  383.         TEdit *edtBBPC057;
  384.         TLabel *lblBBPC058;
  385.         TEdit *edtBBPC058;
  386.         TLabel *lblBBPCn058;
  387.         TLabel *lblBBPCn059;
  388.         TEdit *edtBBPC059;
  389.         TLabel *lblBBPC059;
  390.         TLabel *lblBBPCn060;
  391.         TEdit *edtBBPC060;
  392.         TLabel *lblBBPC060;
  393.         TLabel *lblBBPCn061;
  394.         TLabel *lblBBPC061;
  395.         TEdit *edtBBPC061;
  396.         TLabel *lblBBPCn062;
  397.         TLabel *lblBBPC062;
  398.         TEdit *edtBBPC062;
  399.         TEdit *edtBBPC063;
  400.         TLabel *lblBBPCn063;
  401.         TLabel *lblBBPC063;
  402.         TLabel *lblBBPC064;
  403.         TLabel *lblBBPCn064;
  404.         TEdit *edtBBPC064;
  405.         TLabel *lblBBPC065;
  406.         TLabel *lblBBPCn065;
  407.         TEdit *edtBBPC065;
  408.         TCheckBox *cbBBPC056;
  409.         TCheckBox *cbBBPC057;
  410.         TCheckBox *cbBBPC058;
  411.         TCheckBox *cbBBPC059;
  412.         TCheckBox *cbBBPC060;
  413.         TCheckBox *cbBBPC061;
  414.         TCheckBox *cbBBPC062;
  415.         TCheckBox *cbBBPC063;
  416.         TLabel *lblBBPC066;
  417.         TLabel *lblBBPCn066;
  418.         TEdit *edtBBPC066;
  419.         TLabel *lblBBPCn067;
  420.         TEdit *edtBBPC067;
  421.         TLabel *lblBBPC067;
  422.         TLabel *lblBBPC073;
  423.         TEdit *edtBBPC073;
  424.         TLabel *lblBBPCn073;
  425.         TLabel *lblBBPC072;
  426.         TEdit *edtBBPC072;
  427.         TLabel *lblBBPCn072;
  428.         TEdit *edtBBPC071;
  429.         TLabel *lblBBPCn071;
  430.         TLabel *lblBBPC071;
  431.         TLabel *lblBBPC070;
  432.         TEdit *edtBBPC070;
  433.         TLabel *lblBBPCn070;
  434.         TEdit *edtBBPC069;
  435.         TLabel *lblBBPCn069;
  436.         TLabel *lblBBPC069;
  437.         TLabel *lblBBPC068;
  438.         TEdit *edtBBPC068;
  439.         TLabel *lblBBPCn068;
  440.         TStatusBar *sbWiFiBBCR;
  441.         TCheckBox *cbRX13;
  442.         TCheckBox *cbRX14;
  443.         TCheckBox *cbBBPC064;
  444.         TCheckBox *cbBBPC065;
  445.         TCheckBox *cbBBPC071;
  446.         TCheckBox *cbBBPC070;
  447.         TCheckBox *cbBBPC069;
  448.         TCheckBox *cbBBPC068;
  449.         TCheckBox *cbBBPC067;
  450.         TCheckBox *cbBBPC066;
  451.         TCheckBox *cbBBPC072;
  452.         TCheckBox *cbBBPC073;
  453.         TCheckBox *cbRXHeader;
  454.         TButton *btnReadFromRegister;
  455.         TButton *btnWriteToRegister;
  456.         TButton *btnLoadFromFile;
  457.         TButton *btnSaveToFile;
  458.         TButton *btnIPTRBBCRData;
  459.         TShape *Shape1;
  460.         TLabel *Label40;
  461.         TShape *Shape2;
  462.         TLabel *Label1;
  463.         TButton *btnBBPCBBCRData;
  464.         TShape *Shape3;
  465.         TLabel *Label2;
  466.         TShape *Shape4;
  467.         TLabel *Label3;
  468.         TStaticText *lblHint;
  469.         void __fastcall cbIPCHeaderClick(TObject *Sender);
  470.         void __fastcall cbTXHeaderClick(TObject *Sender);
  471.         void __fastcall cbRXHeaderClick(TObject *Sender);
  472.         void __fastcall cbBBPCHeaderClick(TObject *Sender);
  473.         void __fastcall edtBBPCCheck(TObject *Sender);
  474.         void __fastcall edtIPCCheck(TObject *Sender);
  475.         void __fastcall edtTXCheck(TObject *Sender);
  476.         void __fastcall edtRXCheck(TObject *Sender);
  477.         void __fastcall cbIPCClick(TObject *Sender);
  478.         void __fastcall cbTXClick(TObject *Sender);
  479.         void __fastcall cbRXClick(TObject *Sender);
  480.         void __fastcall cbBBPCClick(TObject *Sender);
  481.         void __fastcall btnSaveToFileClick(TObject *Sender);
  482.         void __fastcall btnLoadFromFileClick(TObject *Sender);
  483.         void __fastcall btnIPTRBBCRDataClick(TObject *Sender);
  484.         void __fastcall btnBBPCBBCRDataClick(TObject *Sender);
  485.         void __fastcall btnWriteToRegisterClick(TObject *Sender);
  486.         void __fastcall btnReadFromRegisterClick(TObject *Sender);
  487.         void __fastcall HintTimerTimer(TObject *Sender);
  488. private: // User declarations
  489.         TCheckBox *cbIPC[WIFI_IPC_NUM];
  490.         TCheckBox *cbTX[WIFI_TX_NUM];
  491.         TCheckBox *cbRX[WIFI_RX_NUM];
  492.         TCheckBox *cbBBPC[WIFI_BBPC_NUM];
  493.         TLabel *lblIPC[WIFI_IPC_NUM];
  494.         TLabel *lblTX[WIFI_TX_NUM];
  495.         TLabel *lblRX[WIFI_RX_NUM];
  496.         TLabel *lblBBPC[WIFI_BBPC_NUM];
  497.         TLabel *lblIPCn[WIFI_IPC_NUM];
  498.         TLabel *lblTXn[WIFI_TX_NUM];
  499.         TLabel *lblRXn[WIFI_RX_NUM];
  500.         TLabel *lblBBPCn[WIFI_BBPC_NUM];
  501.         TEdit *edtIPC[WIFI_IPC_NUM];
  502.         TEdit *edtTX[WIFI_TX_NUM];
  503.         TEdit *edtRX[WIFI_RX_NUM];
  504.         TEdit *edtBBPC[WIFI_BBPC_NUM];
  505.         S_WIFI_BBCR_SETTING  m_sBBCR_Setting[WIFI_BBCR_TYPE_NUM][WIFI_BBCR_MAX_NUM];
  506.         CWIFIBB   m_WIFI_BB_Obj;
  507.         S_WiFi_BBCR m_sBBCR;
  508. public: // User declarations
  509.         __fastcall TfrmWiFiBBCR(TComponent* Owner);
  510.         // UI
  511.         void  ReDrawFields( void );
  512.         bool  CheckFields( void );
  513.         void  ShowHintLabel( TControl *sender, char* hint );
  514.         void  CurrentPageLock( void );
  515.         void  CurrentPageReset( void );
  516.         // BBCR read/write
  517.         void  Compose_BBCR_Parameter( void );
  518.         void  Compose_BBCR_Data( void );
  519.         void  DeCompose_BBCR_Data( void );
  520.         // call back
  521.         void  ConfirmCallback_ReadReg( void );
  522.         void  ConfirmCallback_WriteReg( void );
  523. };
  524. //---------------------------------------------------------------------------
  525. extern PACKAGE TfrmWiFiBBCR *frmWiFiBBCR;
  526. //---------------------------------------------------------------------------
  527. #endif