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

📄 samplib.h

📁 The PCI Local bus concept was developed to break the PC data I/O bottleneck and clearly opens the d
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
//	sisamplib.h
//
//	Description:
//		Common files for sample DLL program for PLX C6711
//
//	Revision History:
//		2002-03-07: mik
//			Created.
//		2004-03-15: RES (Stermon)
//          Modified for NVRAM Only
///////////////////////////////////////////////////////////////////////////////

#include "../../../common/sicommon_amcc.h"

///////////////////////////////////////////////////////////////////////////////

#ifdef WIN32
#define DLLReturnType __declspec(dllexport) INT32 WINAPI 
#endif

#ifdef LINUX
#define DLLReturnType INT32
#endif

///////////////////////////////////////////////////////////////////////////////
// All these are SO exported functions. This means these function names will 
//	be used by external program. If these functions are C++, then their names
//	will be mangled by the compiler. C++ mangles the name by appending type
//	and other info in the function names during compile/link. Since we have
//	no complete control over C++ function name mangling, we cast these
//	exported functions to be C functions to preserve their names.

extern "C"
{

bool SI_DLL_Entry();
int SI_DLL_Exit();

DLLReturnType  
Sample_ReadConfigurationSpace
(
	INT32 board, UINT32 count, UINT32 offset, UINT32 *data
);

DLLReturnType  
Sample_WriteNVRAM( INT32 board, UINT32 addrNVRam, UINT32 *data );

DLLReturnType  
Sample_ReadNVRAM( INT32 board, UINT32 addrNVRam, UINT32 *data );

}


⌨️ 快捷键说明

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