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

MTK

开发平台:

C++ Builder

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  *   man_dll.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   Maui META APP
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *   dll handling header
  48.  *
  49.  * Author:
  50.  * -------
  51.  *  Andy Ueng (mtk00490)
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * $Revision$
  58.  * $Modtime$
  59.  * $Log$
  60.  * 
  61.  *------------------------------------------------------------------------------
  62.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  63.  *============================================================================
  64.  ****************************************************************************/
  65. #ifndef  _MAN_DLL_H_
  66. #define  _MAN_DLL_H_
  67. #include <basetyps.h>
  68. #include "age1960.h"
  69. #include "visa.h"
  70. //#include "freqz.h"
  71. //#include "firls.h"
  72. //------------------------------------------------------------------------------
  73. typedef ViStatus _VI_FUNC (* TYPE_age1960_init)
  74.                         (ViRsrc     resourceName,
  75.                          ViBoolean  IDQuery,
  76.                          ViBoolean  resetDevice,
  77.                          ViPSession instrumentHandle);
  78. typedef ViStatus _VI_FUNC (* TYPE_age1960_reset)
  79.                         (ViSession  instrumentHandle);
  80. typedef ViStatus _VI_FUNC (* TYPE_age1960_timeOut)
  81.                         (ViSession  instrumentHandle,
  82.                          ViInt32    setTimeOut);
  83. typedef ViStatus _VI_FUNC (* TYPE_age1960_amplitudeOffset)
  84.                         (ViSession  instrumentHandle,
  85.                          ViReal64    _VI_FAR frequencyArray[],
  86.                          ViReal64    _VI_FAR offsetArray[],
  87.                          ViInt32     ampOffsetItems);
  88. //------------------------------------------------------------------------------
  89. typedef ViStatus _VI_FUNC (* TYPE_age1960_operatingMode)
  90.                         (ViSession  instrumentHandle,
  91.                          ViInt16    operatingMode);
  92. //------------------------------------------------------------------------------
  93. typedef ViStatus _VI_FUNC (* TYPE_age1960_initMeasFcn)
  94.                         (ViSession  instrumentHandle,
  95.                          ViInt16    measFcn);
  96. //------------------------------------------------------------------------------
  97. typedef ViStatus _VI_FUNC (* TYPE_age1960_fetchIQTuning_Q)
  98.                         (ViSession  instrumentHandle,
  99.                          ViInt32    IQArraySize,
  100.                          ViPInt32   IQIntegrity,
  101.                          ViPReal64   IQSpurFreq,
  102.                          ViPReal64   IQSpurLevel,
  103.                          ViReal64   _VI_FAR IQResultsArray[],
  104.                          ViReal64   _VI_FAR IQFreqsArray[],
  105.                          ViPInt32   IQTuningCount);
  106. //------------------------------------------------------------------------------
  107. typedef ViStatus _VI_FUNC (* TYPE_age1960_cellBand)
  108.                         (ViSession  instrumentHandle,
  109.                          ViInt16    servingCellBandCell,
  110.                          ViInt16    servingCellBand);
  111. //------------------------------------------------------------------------------
  112. typedef ViStatus _VI_FUNC (* TYPE_age1960_cellPower)
  113.                         (ViSession  instrumentHandle,
  114.                          ViInt16    cellPowerCell,
  115.                          ViReal64   cellPower,
  116.                          ViReal64   cellPowerDelta);
  117. //------------------------------------------------------------------------------
  118. typedef ViStatus _VI_FUNC (* TYPE_age1960_BCHARFCN)
  119.                         (ViSession  instrumentHandle,
  120.                          ViInt16    BCHARFCNCell,
  121.                          ViInt32    BCHARFCN,
  122.                          ViInt16    BCHARFCNBand,
  123.                          ViBoolean  BCHARFCNSeq);
  124. //------------------------------------------------------------------------------
  125. typedef ViStatus _VI_FUNC (* TYPE_age1960_TCHARFCN)
  126.                         (ViSession  instrumentHandle,
  127.                          ViInt32 TCHARFCN,
  128.                          ViInt16 TCHARFCNBand,
  129.                          ViBoolean  TCHARFCNSeq);
  130. //------------------------------------------------------------------------------
  131. typedef ViStatus _VI_FUNC (* TYPE_age1960_MSTXLevel)
  132.                         (ViSession  instrumentHandle,
  133.                          ViInt32    MSTXLevel,
  134.                          ViInt16    MSTXLevelBand,
  135.                          ViBoolean  MSTXLevelSeq);
  136. //------------------------------------------------------------------------------
  137. typedef ViStatus _VI_FUNC (* TYPE_age1960_readTXPower_Q)
  138.                         (ViSession  instrumentHandle,
  139.                          ViBoolean  autoRange,
  140.                          ViPInt32   TXPowerIntegrity,
  141.                          ViPReal64  TXPower);
  142. //------------------------------------------------------------------------------
  143. typedef ViStatus _VI_FUNC (* TYPE_age1960_cmd)
  144.                         (ViSession  instrumentHandle,
  145.                          ViString   sendStringCommand);
  146. //------------------------------------------------------------------------------
  147. typedef ViStatus _VI_FUNC (* TYPE_age1960_close)
  148.                            (ViSession instrumentHandle);
  149. //------------------------------------------------------------------------------
  150. typedef ViStatus _VI_FUNC (* TYPE_age1960_waitForInitDone_Q)
  151.                         (ViSession  instrumentHandle,
  152.                          ViReal64   initDoneTimeOut,
  153.                          ViPInt16   measFcnDone);
  154. typedef ViStatus _VI_FUNC (* TYPE_age1960_dcl)
  155.                            (ViSession instrumentHandle);
  156. typedef ViStatus _VI_FUNC (* TYPE_age1960_confTXPower)
  157.                         (ViSession  instrumentHandle,
  158.                          ViInt32    TXPowerMeasCount,
  159.                          ViInt16    TXPowerTrigSource,
  160.                          ViReal64   TXPowerTrigDelay,
  161.                          ViBoolean  TXPowerTrigQual,
  162.                          ViReal64   TXPowerMaxTime);
  163. typedef ViStatus _VI_FUNC (* TYPE_age1960_confPFER)
  164.                         (ViSession  instrumentHandle,
  165.                          ViInt32    PFERMeasCount,
  166.                          ViInt16    PFERTrigSource,
  167.                          ViReal64   PFERTrigDelay,
  168.                          ViBoolean  PFERTrigQual,
  169.                          ViInt16    PFERSync,
  170.                          ViReal64   PFERMaxTime);
  171. typedef ViStatus _VI_FUNC (* TYPE_age1960_confIQTuning)
  172.                         (ViSession  instrumentHandle,
  173.                          ViInt32    IQTMeasCount,
  174.                          ViInt16    IQTTrigSource,
  175.                          ViReal64   IQTTrigDelay,
  176.                          ViInt16    IQTRefOffsetFrequency,
  177.                          ViBoolean  IQTSpurFreqState,
  178.                          ViReal64   IQTSpurFrequency,
  179.                          ViReal64   IQTMaxTime);
  180. typedef ViStatus _VI_FUNC (* TYPE_age1960_fetchPFER_Q)
  181.                         (ViSession instrumentHandle,
  182.                          ViPInt32   PFERIntegrity,
  183.                          ViPReal64  PFERRMSError,
  184.                          ViPReal64  PFERPeakError,
  185.                          ViPReal64  PFERFreqError);
  186. typedef ViStatus _VI_FUNC (* TYPE_age1960_error_message)
  187.                         (ViSession  instrumentHandle,
  188.                          ViStatus   statusCode,
  189.                          ViPString  message);                         
  190. //------------------------------------------------------------------------------
  191. // hp663x2
  192. typedef  ViStatus _VI_FUNC (* TYPE_hp663x2_init) (ViRsrc resourceName,
  193.                                                   ViBoolean idQuery,
  194.                                                   ViBoolean resetDevice,
  195.                                                   ViPSession instrumentHandle);
  196. typedef  ViStatus _VI_FUNC (* TYPE_hp663x2_close) (ViSession instrumentHandle);
  197. typedef  ViStatus _VI_FUNC (* TYPE_hp663x2_outputVoltCurr) (ViSession instrumentHandle,
  198.                                                             ViReal64 voltLev,
  199.                                                             ViReal64 currLev);
  200. typedef  ViStatus _VI_FUNC (* TYPE_hp663x2_measureVolt) (ViSession instrumentHandle,
  201.                                                          ViInt16 measurement,
  202.                                                          ViPReal64 voltResult);
  203. //------------------------------------------------------------------------------
  204. // hp661x
  205. typedef ViStatus _VI_FUNC (* TYPE_hp661x_init) (ViRsrc resourceName,
  206.                                                 ViBoolean idQuery,
  207.                                                 ViBoolean resetDevice,
  208.                                                 ViPSession instrumentHandle);
  209. typedef  ViStatus _VI_FUNC (* TYPE_hp661x_close) (ViSession instrumentHandle);
  210. typedef  ViStatus _VI_FUNC (* TYPE_hp661x_outputVoltCurr) (ViSession instrumentHandle,
  211.                                                             ViReal64 voltLev,
  212.                                                             ViReal64 currLev);
  213. typedef  ViStatus _VI_FUNC (* TYPE_hp661x_measureVolt) (ViSession instrumentHandle,
  214.                                                         ViPReal64 measVolt);
  215. //------------------------------------------------------------------------------
  216. // hpe3631a
  217. typedef  ViStatus _VI_FUNC (* TYPE_hpe3631a_init)  (ViRsrc resourceName,
  218.                                                     ViBoolean IDQuery,
  219.                                                     ViBoolean resetDevice,
  220.                                                     ViPSession instrumentHandle);
  221. typedef  ViStatus _VI_FUNC (* TYPE_hpe3631a_close) (ViSession instrumentHandle);
  222. typedef  ViStatus _VI_FUNC (* TYPE_hpe3631a_current)  (ViSession instrumentHandle,
  223.                                                        ViInt16 instrument,
  224.                                                        ViReal64 current);
  225. typedef  ViStatus _VI_FUNC (* TYPE_hpe3631a_voltage)  (ViSession instrumentHandle,
  226.                                                              ViInt16 instrument,
  227.                                                              ViReal64 voltage);
  228. typedef  ViStatus _VI_FUNC (* TYPE_hpe3631a_measureVoltage_Q)  (ViSession instrumentHandle,
  229.                                                                 ViInt16 instrument,
  230.                                                                 ViPReal64 voltage);
  231. //------------------------------------------------------------------------------
  232. // visa32
  233. typedef  ViStatus _VI_FUNC  (* TYPE_viOpenDefaultRM) (ViPSession vi);
  234. typedef  ViStatus _VI_FUNC  (* TYPE_viOpen)
  235.                             (ViSession sesn, ViRsrc name, ViAccessMode mode,
  236.                              ViUInt32 timeout, ViPSession vi);
  237. typedef  ViStatus _VI_FUNC  (* TYPE_viClose) (ViObject vi);
  238. typedef  ViStatus _VI_FUNC  (* TYPE_viSetAttribute)
  239.                             (ViObject vi, ViAttr attrName, ViAttrState attrValue);
  240. typedef  ViStatus _VI_FUNC  (* TYPE_viRead)
  241.                             (ViSession vi, ViPBuf buf, ViUInt32 cnt, ViPUInt32 retCnt);
  242. typedef  ViStatus _VI_FUNC  (* TYPE_viWrite)
  243.                             (ViSession vi, ViBuf  buf, ViUInt32 cnt, ViPUInt32 retCnt);
  244. //------------------------------------------------------------------------------
  245. // Agilent N4010A
  246. typedef long _stdcall (* TYPE_AgN4010_Init)
  247. (const char *lpszAgN4010Address,
  248. #if defined(__cplusplus)
  249. BOOL boolDeleteARBSequenceFiles = false,
  250. BOOL boolUseInternalLicense = true,
  251. BOOL boolVsaVisible = false,
  252. BOOL boolWtaVisible = false);
  253. #else
  254. BOOL boolDeleteARBSequenceFiles,
  255. BOOL boolUseInternalLicense,
  256. BOOL boolVsaVisible,
  257. BOOL boolWtaVisible);
  258. #endif
  259. typedef long _stdcall (* TYPE_AgN4010_Close)();
  260. typedef long _stdcall (* TYPE_AgN4010_SetProperty)(const char *lpszPropertyName,double Value);
  261. typedef long _stdcall (* TYPE_AgN4010_Measure_AveragePower)
  262.                       (double *lpddAvgPower_dBm);
  263. //------------------------------------------------------------------------------
  264. #if 0
  265. // Mfiles
  266. typedef  void  (* TYPE_InitializeModule_freqz) (void);
  267. typedef  void  (* TYPE_InitializeModule_psdoptions) (void);
  268. typedef  void  (* TYPE_mlxFreqz)   (int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]);
  269. typedef  void  (* TYPE_TerminateModule_freqz)   (void);
  270. typedef  void  (* TYPE_TerminateModule_psdoptions)   (void);
  271. typedef  void  (* TYPE_InitializeModule_firls)  (void);
  272. typedef  void  (* TYPE_InitializeModule_signal_private_firchk)  (void);
  273. typedef  void  (* TYPE_InitializeModule_sinc)  (void);
  274. typedef  void  (* TYPE_mlxFirls) (int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]);
  275. typedef  void  (* TYPE_TerminateModule_sinc)   (void);
  276. typedef  void  (* TYPE_TerminateModule_signal_private_firchk)   (void);
  277. typedef  void  (* TYPE_TerminateModule_firls)   (void);
  278. #endif
  279. //==============================================================================
  280. #define age1960_init               function_age1960_init
  281. #define age1960_reset              function_age1960_reset
  282. #define age1960_timeOut            function_age1960_timeOut
  283. #define age1960_amplitudeOffset    function_age1960_amplitudeOffset
  284. #define age1960_operatingMode      function_age1960_operatingMode
  285. #define age1960_initMeasFcn        function_age1960_initMeasFcn
  286. #define age1960_fetchIQTuning_Q    function_age1960_fetchIQTuning_Q
  287. #define age1960_cellBand           function_age1960_cellBand
  288. #define age1960_cellPower          function_age1960_cellPower
  289. #define age1960_BCHARFCN           function_age1960_BCHARFCN
  290. #define age1960_TCHARFCN           function_age1960_TCHARFCN
  291. #define age1960_MSTXLevel          function_age1960_MSTXLevel
  292. #define age1960_readTXPower_Q      function_age1960_readTXPower_Q
  293. #define age1960_cmd                function_age1960_cmd
  294. #define age1960_close              function_age1960_close
  295. // added by Andy Ueng
  296. #define age1960_waitForInitDone_Q  function_age1960_waitForInitDone_Q
  297. #define age1960_dcl                function_age1960_dcl
  298. #define age1960_confTXPower        function_age1960_confTXPower
  299. #define age1960_confPFER           function_age1960_confPFER
  300. #define age1960_confIQTuning       function_age1960_confIQTuning
  301. #define age1960_fetchPFER_Q        function_age1960_fetchPFER_Q
  302. #define age1960_error_message      function_age1960_error_message
  303. // end of added
  304. // hp663x2
  305. #define  hp663x2_init              function_hp663x2_init
  306. #define  hp663x2_close             function_hp663x2_close
  307. #define  hp663x2_outputVoltCurr    function_hp663x2_outputVoltCurr
  308. #define  hp663x2_measureVolt       function_hp663x2_measureVolt
  309. // hp661x
  310. #define  hp661x_init               function_hp661x_init
  311. #define  hp661x_close              function_hp661x_close
  312. #define  hp661x_outputVoltCurr     function_hp661x_outputVoltCurr
  313. #define  hp661x_measureVolt        function_hp661x_measureVolt
  314. // hpe3631a
  315. #define  hpe3631a_init             function_hpe3631a_init
  316. #define  hpe3631a_close            function_hpe3631a_close
  317. #define  hpe3631a_current          function_hpe3631a_current
  318. #define  hpe3631a_voltage          function_hpe3631a_voltage
  319. #define  hpe3631a_measureVoltage_Q function_hpe3631a_measureVoltage_Q
  320. // visa32
  321. #define  viOpenDefaultRM           function_viOpenDefaultRM
  322. #define  viOpen                    function_viOpen
  323. #define  viClose                   function_viClose
  324. #define  viSetAttribute            function_viSetAttribute
  325. #define  viRead                    function_viRead
  326. #define  viWrite                   function_viWrite
  327. #define  AgN4010_Init                 function_AgN4010_Init
  328. #define  AgN4010_Close                function_AgN4010_Close
  329. #define  AgN4010_SetProperty          function_AgN4010_SetProperty
  330. #define  AgN4010_Measure_AveragePower function_AgN4010_Measure_AveragePower
  331. #if 0
  332. // Mfiles
  333. // R13
  334. //#define  InitializeModule_freqz        function_InitializeModule_freqz
  335. //#define  InitializeModule_psdoptions   function_InitializeModule_psdoptions
  336. //#define  mlxFreqz                      function_mlxFreqz
  337. //#define  TerminateModule_freqz         function_TerminateModule_freqz
  338. //#define  TerminateModule_psdoptions    function_TerminateModule_psdoptions
  339. //#define  InitializeModule_firls        function_InitializeModule_firls
  340. //#define  InitializeModule_signal_private_firchk  function_InitializeModule_signal_private_firchk
  341. //#define  InitializeModule_sinc  function_InitializeModule_sinc
  342. //#define  mlxFirls   function_mlxFirls
  343. //#define  TerminateModule_sinc   function_TerminateModule_sinc
  344. //#define  TerminateModule_signal_private_firchk   function_TerminateModule_signal_private_firchk
  345. //#define  TerminateModule_firls   function_TerminateModule_firls
  346. #define  InitializeModule_freqz        function_InitializeModule_freqz;
  347. #define  InitializeModule_psdoptions   function_InitializeModule_psdoptions;
  348. #define  mlxFreqz                      function_mlxFreqz;
  349. #define  TerminateModule_freqz         function_TerminateModule_freqz;
  350. #define  TerminateModule_psdoptions    function_TerminateModule_psdoptions;
  351. #define  InitializeModule_firls        function_InitializeModule_firls;
  352. #define  InitializeModule_sinc         function_InitializeModule_sinc;
  353. #define  mlxFirls                      function_mlxFirls;
  354. #define  TerminateModule_sinc          function_TerminateModule_sinc;
  355. #define  TerminateModule_firls         function_TerminateModule_firls;
  356. #endif
  357. ////////////////////////////////////////////////////////////////////////////////
  358. //---------------------------------------------------------------------------
  359. extern  TYPE_age1960_init               function_age1960_init;
  360. extern  TYPE_age1960_reset              function_age1960_reset;
  361. extern  TYPE_age1960_timeOut            function_age1960_timeOut;
  362. extern  TYPE_age1960_amplitudeOffset    function_age1960_amplitudeOffset;
  363. extern  TYPE_age1960_operatingMode      function_age1960_operatingMode;
  364. extern  TYPE_age1960_initMeasFcn        function_age1960_initMeasFcn;
  365. extern  TYPE_age1960_fetchIQTuning_Q    function_age1960_fetchIQTuning_Q;
  366. extern  TYPE_age1960_cellBand           function_age1960_cellBand;
  367. extern  TYPE_age1960_cellPower          function_age1960_cellPower;
  368. extern  TYPE_age1960_BCHARFCN           function_age1960_BCHARFCN;
  369. extern  TYPE_age1960_TCHARFCN           function_age1960_TCHARFCN;
  370. extern  TYPE_age1960_MSTXLevel          function_age1960_MSTXLevel;
  371. extern  TYPE_age1960_readTXPower_Q      function_age1960_readTXPower_Q;
  372. extern  TYPE_age1960_cmd                function_age1960_cmd;
  373. extern  TYPE_age1960_close              function_age1960_close;
  374. // added by Andy Ueng
  375. extern  TYPE_age1960_waitForInitDone_Q  function_age1960_waitForInitDone_Q;
  376. extern  TYPE_age1960_dcl                function_age1960_dcl;
  377. extern  TYPE_age1960_confTXPower        function_age1960_confTXPower;
  378. extern  TYPE_age1960_confPFER           function_age1960_confPFER;
  379. extern  TYPE_age1960_confIQTuning       function_age1960_confIQTuning;
  380. extern  TYPE_age1960_fetchPFER_Q        function_age1960_fetchPFER_Q;
  381. extern  TYPE_age1960_error_message      function_age1960_error_message;
  382. // end of added
  383. //---------------
  384. // hp663x2
  385. extern  TYPE_hp663x2_init               function_hp663x2_init;
  386. extern  TYPE_hp663x2_close              function_hp663x2_close;
  387. extern  TYPE_hp663x2_outputVoltCurr     function_hp663x2_outputVoltCurr;
  388. extern  TYPE_hp663x2_measureVolt        function_hp663x2_measureVolt;
  389. //hp661x
  390. extern  TYPE_hp661x_init                function_hp661x_init;
  391. extern  TYPE_hp661x_close               function_hp661x_close;
  392. extern  TYPE_hp661x_outputVoltCurr      function_hp661x_outputVoltCurr;
  393. extern  TYPE_hp661x_measureVolt         function_hp661x_measureVolt;
  394. // hpe3631a
  395. extern  TYPE_hpe3631a_init             function_hpe3631a_init;
  396. extern  TYPE_hpe3631a_close            function_hpe3631a_close;
  397. extern  TYPE_hpe3631a_current          function_hpe3631a_current;
  398. extern  TYPE_hpe3631a_voltage          function_hpe3631a_voltage;
  399. extern  TYPE_hpe3631a_measureVoltage_Q function_hpe3631a_measureVoltage_Q;
  400. // visa32
  401. extern  TYPE_viOpenDefaultRM            function_viOpenDefaultRM;
  402. extern  TYPE_viOpen                     function_viOpen;
  403. extern  TYPE_viClose                    function_viClose;
  404. extern  TYPE_viSetAttribute             function_viSetAttribute;
  405. extern  TYPE_viRead                     function_viRead;
  406. extern  TYPE_viWrite                    function_viWrite;
  407. #if 0
  408. // Mfile
  409. extern  TYPE_InitializeModule_freqz        function_InitializeModule_freqz;
  410. extern  TYPE_InitializeModule_psdoptions   function_InitializeModule_psdoptions;
  411. extern  TYPE_mlxFreqz                      function_mlxFreqz;
  412. extern  TYPE_TerminateModule_freqz         function_TerminateModule_freqz;
  413. extern  TYPE_TerminateModule_psdoptions    function_TerminateModule_psdoptions;
  414. extern  TYPE_InitializeModule_firls        function_InitializeModule_firls;
  415. extern  TYPE_InitializeModule_signal_private_firchk  function_InitializeModule_signal_private_firchk;
  416. extern  TYPE_InitializeModule_sinc  function_InitializeModule_sinc;
  417. extern  TYPE_mlxFirls   function_mlxFirls;
  418. extern  TYPE_TerminateModule_sinc   function_TerminateModule_sinc;
  419. extern  TYPE_TerminateModule_signal_private_firchk   function_TerminateModule_signal_private_firchk;
  420. extern  TYPE_TerminateModule_firls   function_TerminateModule_firls;
  421. #endif
  422. /*---------------------------------------------------------------------------*/
  423. class  CDllMan
  424. {
  425. private:
  426.     HANDLE m_hAgeDll;
  427.     HANDLE m_hHp663x2Dll;
  428.     HANDLE m_hHp661xDll;
  429.     HANDLE m_hHpe3631aDll;
  430.     HANDLE m_hVisa32;
  431.     HANDLE m_hN4010ADll;
  432.     HANDLE m_hControlsDll;
  433.    // HANDLE m_hMfiles;
  434.     bool m_bIsAgeDllLoaded;
  435.     bool m_bIsHp663x2DllLoaded;
  436.     bool m_bIsHp661xDllLoaded;
  437.     bool m_bIsHpe3631aDllLoaded;
  438.     bool m_bIsVisa32Loaded;
  439.     bool m_bIsN4010ADllLoaded;
  440.     bool m_bIsControlsDllLoaded;
  441.    // bool m_bIsMfilesLoaded;
  442. protected:
  443. public:
  444.     // Public interface
  445.     CDllMan( void );
  446.    ~CDllMan();
  447.     bool load_Age1960_Dll_functions( HANDLE hAge1960 );
  448.     bool load_Hp663x2_Dll_functions( HANDLE hHp663x2 );
  449.     bool load_Hp661x_Dll_functions( HANDLE hHp661x );
  450.     bool load_Hpe3631a_Dll_functions( HANDLE hHpe3631a );
  451.     bool load_Visa32_Dll_functions(HANDLE hVisa32);
  452.     bool load_N4010A_Dll_functions(HANDLE hN4010A);
  453.     bool load_Controls_Dll_functions(HANDLE hControls);
  454.     //bool load_Mfiles_Dll_functions( HANDLE hMfiles );
  455.     bool LoadAge1960DllFunctions(HANDLE hPostMsgDestHandle);
  456.     bool LoadVisa32DllFunctions(HANDLE hPostMsgDestHandle);
  457.     bool LoadHp661xDllFunctions(HANDLE hPostMsgDestHandle);
  458.     bool LoadHp663x2DllFunctions(HANDLE hPostMsgDestHandle);
  459.     bool LoadHpe3631aDllFunctions(HANDLE hPostMsgDestHandle);
  460.     bool LoadN4010ADllFunctions(HANDLE hPostMsgDestHandle);
  461.     bool LoadControlsDllFunctions(HANDLE hPostMsgDestHandle);
  462.    // bool LoadMfilesDllFunctions( HANDLE hPostMsgDestHandle );
  463.     bool FreeAge1960Dll(HANDLE hPostMsgDestHandle);
  464.     bool FreeHp663x2Dll(HANDLE hPostMsgDestHandle);
  465.     bool FreeHp661xDll(HANDLE hPostMsgDestHandle);
  466.     bool FreeHpe3631aDll(HANDLE hPostMsgDestHandle);
  467.     bool FreeVisa32Dll(HANDLE hPostMsgDestHandle);
  468.     bool FreeN4010ADll(HANDLE hPostMsgDestHandle);
  469.     bool FreeControlsDll(HANDLE hPostMsgDestHandle);
  470.    // bool FreeMfilesDll( HANDLE hPostMsgDestHandle );
  471. };
  472. extern  CDllMan *DllMan;
  473. /*---------------------------------------------------------------------------*/
  474. #endif