SSPC-Tester/Driver/急停报警相关资料/PCI2312 Samples/VC/Advanced/StdAfx.h

61 lines
1.6 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxcview.h>
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // 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 <afxcmn.h> // 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_)