form_RFMT6140BReg.cpp
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:129k
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW8SW1Check(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW8.uc_rx_ctrl_sw1 = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW8SWBCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW8.uc_rx_ctrl_swb = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW8SWACheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW8.uc_rx_ctrl_swa = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW8SWENCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW8.uc_rx_ctrl_swen = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW8DC_DAC_BICheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW8.uc_dc_dac_bi = (m_sMT6140BCW8.uc_dc_dac_bi & (0x7F ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW8DC_DAC_CICheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW8.uc_dc_dac_ci = (m_sMT6140BCW8.uc_dc_dac_ci & (0x7F ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW9PWR_DAC_ACheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW9.uc_pwr_dac_a = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW9PWR_DAC_BCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW9.uc_pwr_dac_b = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW9PWR_DAC_CCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW9.uc_pwr_dac_c = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW9DC_DAC_BQCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW9.uc_dc_dac_bq = (m_sMT6140BCW9.uc_dc_dac_bq & (0x7F ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW9DC_DAC_CQCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW9.uc_dc_dac_cq = (m_sMT6140BCW9.uc_dc_dac_cq & (0x7F ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW10AM_DACICheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW10.uc_am_daci = (m_sMT6140BCW10.uc_am_daci & (0xFF ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW10AM_DACQCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW10.uc_am_dacq = (m_sMT6140BCW10.uc_am_dacq & (0xFF ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXDIV_GC0Check(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txdiv_gc0 = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXVAPCCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txvapc = (m_sMT6140BCW11.uc_txvapc & (0x03 ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXITCCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_tx_itc = (m_sMT6140BCW11.uc_tx_itc & (0x07 ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXMODGC_ENCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txmodgc_en = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXMODGCCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txmodgc = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXDBUFCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txdbuf = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXGBUFCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txgbuf = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXDIV4Check(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txdiv4 = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXDIV2Check(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txdiv2 = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXDIQMCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txdiqm = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXGIQMCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txgiqm = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXCTLCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txctl = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11LBCAPON_ENCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_lbcapon_en = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11LBCAPONCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_lbcapon = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TX_CI_1Check(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_tx_ci_1 = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TX_CI_0Check(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_tx_ci_0 = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TX_ICSC_PTATCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_tx_icsc_ptat = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TX_VGA_PTATCheck(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_tx_vga_ptat = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW11TXDIV_GC1Check(TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW11.uc_txdiv_gc1 = uc_data;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW15AUXOUT_SELETCIONCheck(
- TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW15.uc_auxout_selection = (m_sMT6140BCW15.uc_auxout_selection & (0x7F ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::edtCW15ADDRESS_DATA_OUTCheck(
- TObject *Sender)
- {
- unsigned char uc_data;
- AnsiString text;
- TEdit *edit = (TEdit*)Sender;
- char hint[] = " value shall be 0 or 1 ";
- text = edit->Text;
- if( !IsValidRegBit( text, uc_data ) )
- {
- ShowHintLabel( edit, hint );
- edit->Text = IntToStr( 0 );
- edit->SetFocus();
- return;
- }
- m_sMT6140BCW15.uc_address_data_out = (m_sMT6140BCW15.uc_address_data_out & (0x0F ^ (0x01<<edit->Tag)) ) | uc_data<<edit->Tag;
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::btnReadCW0FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW0FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140CW0FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW0 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW0FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW0 = m_cRF_MT6140BReg_Obj.Get_MT6140CW0();
- ReDrawCW0Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW0 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW0 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW0 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW0 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW0 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW0 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW0ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW0ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140CW0ToReg_Start( m_sMT6140BCW0, m_uiFinalRfid );
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW0 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW0ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW0 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW0 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW0 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW0 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW0 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW0 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW1FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW1FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140CW1FromReg_Start( m_uiFinalRfid );
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW1 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW1FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW1 = m_cRF_MT6140BReg_Obj.Get_MT6140CW1();
- ReDrawCW1Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW1 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW1 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW1 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW1 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW1 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW1 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW1ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW1ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140CW1ToReg_Start(m_sMT6140BCW1, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW1 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW1ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW1 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW1 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW1 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW1 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW1 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW1 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW2FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW2FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140CW2FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW2 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW2FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW2 = m_cRF_MT6140BReg_Obj.Get_MT6140CW2();
- ReDrawCW2Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW2 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW2 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW2 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW2 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW2 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW2 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW2ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW2ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140CW2ToReg_Start(m_sMT6140BCW2, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW2 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW2ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW2 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW2 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW2 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW2 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW2 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW2 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW3FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW3FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140BCW3FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW3 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW3FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW3 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW3();
- ReDrawCW3Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW3 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW3 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW3 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW3 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW3 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW3 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW3ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW3ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW3ToReg_Start(m_sMT6140BCW3, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW3 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW3ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW3 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW3 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW3 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW3 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW3 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW3 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW4FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW4FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140BCW4FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW4 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW4FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW4 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW4();
- ReDrawCW4Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW4 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW4 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW4 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW4 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW4 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW4 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW4ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW4ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW4ToReg_Start(m_sMT6140BCW4, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW4 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW4ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW4 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW4 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW0 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW4 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW0 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW4 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW5FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW5FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140BCW5FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW5 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW5FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW5 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW5();
- ReDrawCW5Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW5 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW5 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW5 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW5 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW5 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW5 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW5ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW5ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW5ToReg_Start(m_sMT6140BCW5, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW5 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW5ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW5 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW5 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW05 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW5 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW5 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW5 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW6FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW6FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140CW6FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW6 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW6FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW6 = m_cRF_MT6140BReg_Obj.Get_MT6140CW6();
- ReDrawCW6Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW6 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW6 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW6 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW6 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW6 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW6 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW6ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW6ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140CW6ToReg_Start(m_sMT6140BCW6, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW6 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW6ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW6 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW6 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW6 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW6 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW6 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW6 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW7FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW7FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140BCW7FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW7 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW7FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW7 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW7();
- ReDrawCW7Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW7 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW7 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW7 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW7 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW7 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW7 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW7ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW7ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW7ToReg_Start(m_sMT6140BCW7, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW7 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW7ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW7 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW7 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW7 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW7 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW7 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW7 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW8FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW8FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140CW8FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW8 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW8FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW8 = m_cRF_MT6140BReg_Obj.Get_MT6140CW8();
- ReDrawCW8Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW8 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW8 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW8 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW8 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW8 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW8 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW8ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW8ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140CW8ToReg_Start(m_sMT6140BCW8, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW8 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW8ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW8 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW8 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW8 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW8 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW8 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW8 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW9FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW9FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140BCW9FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW9 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW9FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW9 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW9();
- ReDrawCW9Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW9 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW9 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW9 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW9 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW9 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW9 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW9ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW9ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW9ToReg_Start(m_sMT6140BCW9, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW9 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW9ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW9 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW9 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW9 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW9 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW9 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW9 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW10FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW10FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140CW10FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW10 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW10FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW10 = m_cRF_MT6140BReg_Obj.Get_MT6140CW10();
- ReDrawCW10Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW10 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW10 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW10 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW10 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW10 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW10 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW10ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW10ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140CW10ToReg_Start(m_sMT6140BCW10, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW10 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW10ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW10 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW10 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW10 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW10 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW10 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW10 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW11FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW11FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140BCW11FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW11 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW11FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW11 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW11();
- ReDrawCW11Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW11 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW11 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW11 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW11 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW11 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW11 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW11ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW11ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW11ToReg_Start(m_sMT6140BCW11, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW11 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW11ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW11 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW11 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW11 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW11 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW11 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW11 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadCW15FromRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140CW15FromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140CW15FromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW12 from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140CW15FromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW15 = m_cRF_MT6140BReg_Obj.Get_MT6140CW15();
- ReDrawCW15Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW15 from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW15 from register fail";
- Application->MessageBox( "Execution Failure : Get MT6140 CW15 from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW15 from register timeout";
- Application->MessageBox( "Execution Timeout : Get MT6140 CW15 from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get MT6140 CW15 from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnWriteCW15ToRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140CW15ToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140CW15ToReg_Start(m_sMT6140BCW15, m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW12 to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140CW15ToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW15 to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW15 to register fail";
- Application->MessageBox( "Execution Failure : Set MT6140 CW15 to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW15 to register timeout";
- Application->MessageBox( "Execution Timeout : Set MT6140 CW15 to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set MT6140 CW15 to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- void __fastcall TfrmMT6140BReg::btnReadAllRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_GetMT6140AllFromReg;
- m_cRF_MT6140BReg_Obj.Get_MT6140AllFromReg_Start(m_uiFinalRfid);
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get All MT6140 control words from register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_GetMT6140AllFromReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- m_sMT6140BCW0 = m_cRF_MT6140BReg_Obj.Get_MT6140CW0();
- m_sMT6140BCW1 = m_cRF_MT6140BReg_Obj.Get_MT6140CW1();
- m_sMT6140BCW2 = m_cRF_MT6140BReg_Obj.Get_MT6140CW2();
- m_sMT6140BCW3 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW3();
- m_sMT6140BCW4 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW4();
- m_sMT6140BCW5 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW5();
- m_sMT6140BCW6 = m_cRF_MT6140BReg_Obj.Get_MT6140CW6();
- m_sMT6140BCW7 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW7();
- m_sMT6140BCW8 = m_cRF_MT6140BReg_Obj.Get_MT6140CW8();
- m_sMT6140BCW9 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW9();
- m_sMT6140BCW10 = m_cRF_MT6140BReg_Obj.Get_MT6140CW10();
- m_sMT6140BCW11 = m_cRF_MT6140BReg_Obj.Get_MT6140BCW11();
- m_sMT6140BCW15 = m_cRF_MT6140BReg_Obj.Get_MT6140CW15();
- ReDrawCW0Fields();
- ReDrawCW1Fields();
- ReDrawCW2Fields();
- ReDrawCW3Fields();
- ReDrawCW4Fields();
- ReDrawCW5Fields();
- ReDrawCW6Fields();
- ReDrawCW7Fields();
- ReDrawCW8Fields();
- ReDrawCW9Fields();
- ReDrawCW10Fields();
- ReDrawCW11Fields();
- ReDrawCW15Fields();
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get All MT6140 control words from register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get All MT6140 control words from register fail";
- Application->MessageBox( "Execution Failure : Get All MT6140 control words from register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get All MT6140 control words from register timeout";
- Application->MessageBox( "Execution Timeout : Get All MT6140 control words from register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Get All MT6140 control words from register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- //---------------------------------------------------------------------------
- void __fastcall TfrmMT6140BReg::btnWriteAllRegClick(TObject *Sender)
- {
- CurrentPageLock();
- m_cRF_MT6140BReg_Obj.Set_MT6140CW0( m_sMT6140BCW0 );
- m_cRF_MT6140BReg_Obj.Set_MT6140CW1( m_sMT6140BCW1 );
- m_cRF_MT6140BReg_Obj.Set_MT6140CW2( m_sMT6140BCW2 );
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW3( m_sMT6140BCW3 );
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW4( m_sMT6140BCW4 );
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW5( m_sMT6140BCW5 );
- m_cRF_MT6140BReg_Obj.Set_MT6140CW6( m_sMT6140BCW6 );
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW7( m_sMT6140BCW7 );
- m_cRF_MT6140BReg_Obj.Set_MT6140CW8( m_sMT6140BCW8 );
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW9( m_sMT6140BCW9 );
- m_cRF_MT6140BReg_Obj.Set_MT6140CW10( m_sMT6140BCW10 );
- m_cRF_MT6140BReg_Obj.Set_MT6140BCW11( m_sMT6140BCW11 );
- m_cRF_MT6140BReg_Obj.Set_MT6140CW15( m_sMT6140BCW15 );
- m_cRF_MT6140BReg_Obj.ConfirmCallback = ::CNF_SetMT6140AllToReg;
- m_cRF_MT6140BReg_Obj.Set_MT6140AllToReg_Start( m_uiFinalRfid );
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set All MT6140 control words to register progressing";
- }
- //---------------------------------------------------------------------------
- void TfrmMT6140BReg::CNF_SetMT6140AllToReg( void )
- {
- E_METAAPP_RESULT_T state = m_cRF_MT6140BReg_Obj.Get_ConfirmState();
- switch( state )
- {
- case METAAPP_SUCCESS:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set All MT6140 control words to register successfully";
- }
- break;
- case METAAPP_FAIL:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set All MT6140 control words to register fail";
- Application->MessageBox( "Execution Failure : Set All MT6140 control words to register", "FAILURE", MB_OK );
- }
- break;
- case METAAPP_TIMEOUT:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set All MT6140 control words to register timeout";
- Application->MessageBox( "Execution Timeout : Set All MT6140 control words to register", "TIMEOUT", MB_OK );
- }
- break;
- case METAAPP_STOP:
- {
- sbMT6140Reg->Panels->Items[0]->Text = (AnsiString) " Set All MT6140 control words to register stop";
- }
- break;
- }
- CurrentPageReset();
- }
- void __fastcall TfrmMT6140BReg::HintTimerTimer(TObject *Sender)
- {
- HintTimer->Enabled = false;
- lblHint->Visible = false;
- }
- //---------------------------------------------------------------------------