// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__D485DEFF_85AB_11D1_B878_A68EB300DD63__INCLUDED_) #define AFX_STDAFX_H__D485DEFF_85AB_11D1_B878_A68EB300DD63__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include // MFC core and standard components #include // MFC extensions #include #include // MFC Automation classes #include // MFC support for Internet Explorer 4 Common Controls ///////////////////////////////// // 用户填加部分 #include "PCI2312.h" // 包含驱动程序接口 // 定义用于控制数据位数及量程的常数 #define LSB_COUNT 4096.0 // LSB码数量 #define LSB_HALF 2048 // 当取偏移码时,其原点位置 #define VOLT_RANGE 10000.0 // 量程(mV)(注意必须带小数) // 定义其他常量 #define DeviceName "PCI2312" // 定义设备名 #define MAX_FREQUENCE 110000 // 最高频率 #define MAX_SEGMENT 32 typedef struct _FILE_HEADER { int VenderID; UINT FirstChannel; UINT LastChannel; UINT TimerFrequence; DWORD Frequence; char CardType[100]; } FILE_HEADER, *PFILE_HEADER; ///////////////////////////////// #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__D485DEFF_85AB_11D1_B878_A68EB300DD63__INCLUDED_)