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

📄 rf_pm.~h

📁 关于MTK 的MATA开发工具的RF源码
💻 ~H
字号:
#ifndef  _RF_PM_H_
#define  _RF_PM_H_
/*---------------------------------------------------------------------------*/

#define  STATE_PM_OK          0
#define  STATE_PM_FAIL        1
#define  STATE_PM_TIMEOUT     2
#define  STATE_PM_STOP        3
#define  STATE_PM_SECTION_OK  4

/*---------------------------------------------------------------------------*/

class  CRFPM
{
private:

   int   CurPmCount;
   int   CurGain;
   bool  HasMeasured;

protected:

   bool  IsRunning;
   void  Confirm( int confirm_state );

public:

   CRFPM( void );
   ~CRFPM( );

   void  REQ_Finish( void );
   void  REQ_TimeOut( void );

public:
   // modified by Andy Ueng
   // DWORD         RFID_PM;
   short RFID_PM;
   // end of modified
   
   META_RESULT   MetaResult;
   RfPm_Req      *RFReq_PM;
    RfPm_Cnf      RFCnf_PM;

   void  REQ_SelectBand( void );
//   void  CNF_SelectBand( BOOL cnf );
//   void CNF_SelectBand(BOOL cnf, short token, void *usrData);
 void __stdcall CNF_SelectBand(const unsigned char cnf, const short token, void *usrData);
   void  REQ_PowerMeasurement( void );
   // modified by Andy Ueng
 //  void  CNF_PowerMeasurement( RfPm_Cnf cnf );
   void __stdcall CNF_PowerMeasurement( const RfPm_Cnf *cnf, const short token, void *usrData );
   // end of modified

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

public:  // Public member

   int   ConfirmState;
   void  (*ConfirmCallback)( void );

public:

   int  Band;
   int  Arfcn;
   int  PMPerFrame;
   int  PMCount;
   int  GainMin;
   int  GainMax;
   int  GainStep;

public:  // Public interface

   void  REQ_Start( int band, int arfcn, int pm_per_frame, int pm_count, int gain_min, int gain_max=0, int gain_step=0 );
   void  REQ_Stop( void );
};

/*---------------------------------------------------------------------------*/
#endif

⌨️ 快捷键说明

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