atmd_pci.h
来自「msp430F413用DS18B20测温」· C头文件 代码 · 共 69 行
H
69 行
#ifndef __atmd_pci_h__
#define __atmd_pci_h__
//****************************************************************************
// acam messelectronic gmbh
// Haid-und-Neu-Str. 7
// 76131 Karlsruhe
//
// file: atmd_pci.h
//
// purpose: declaration of functions to get base address of ATMD-PCI boards
// and to detect the number of ATMD-PCI boards under NT and WIN95/98
//
// atmd_pci.lib must be linked to the program and atmd_pci.dll must
// be present at runtime.
//
// if run under NT windrvr.sys must be installed
//****************************************************************************
#ifdef __cplusplus
extern "C"
{ // only need to export C interface if used by C++ source code
#endif
//****************************************************************************
// function: GetATMDPCIBoardCount
//
// purpose: number of ATMD-PCI Boards. Detects OS Type (NT or WIN95/98 OS)
// and calls appropriate function.
//
// parameter: none
//
// return: number of ATMD-PCI Boards found
//****************************************************************************
__declspec(dllimport) int WINAPI GetATMDPCIBoardCount(void);
//****************************************************************************
// function: GetATMDPCIBaseAddr
//
// purpose: Get base address of ATMD-PCI boards PLX9052 local space 0
// Detects OS Type (NT or WIN95/98 OS) and calls appropriate
// function.
//
// parameter: index zero based index to board to get address from
//
// addr returns base address
//
// return: TRUE on success
// FALSE if address couldn't be detected
//****************************************************************************
__declspec(dllimport) BOOL WINAPI GetATMDPCIBaseAddr(int index,DWORD& addr);
//****************************************************************************
// function: EnablePortAccess()
//
// purpose: Opens giveio.sys driver if runnung under NT
//
// return: TRUE on success
// FALSE if giveio couldn't be opened
//****************************************************************************
__declspec(dllexport) BOOL WINAPI EnablePortAccess(void);
#ifdef __cplusplus
}
#endif
#endif // #ifndef __atmd_pci_h__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?