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

📄 pmdpci.h

📁 一个机器人的源代码.软件设计得超级好!是商业级代码.
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
//
//  PMDpci.h -- parallel IO via PCI interface and PLX Windows driver
//
//  Note: The corresponding object file (PMDpci.obj) must be linked in 
//	      with any project using this header file. 
//        The PLX SDK can be purchased from PLX. (www.plxtech.com)
//
///////////////////////////////////////////////////////////////////////////////

#ifndef PMD_PCI
#define	PMD_PCI
#ifdef _LINUX#include "PciTypes.h"#include "PMDtrans.h"#include "PMDtypes.h"#else#include <windows.h> // for HANDLE
#endif
#if defined(__cplusplus)
extern "C" {
#endif

typedef struct tagPMDPCIIOTransportData {

	PMDuint16 bVerifyChecksum;
	PMDuint16 bDiagnostics;
	PMDuint16 nBoardNo;
	int nDeviceID;
    int nBasePortAddress;

	HANDLE hDrv;

} PMDPCIIOTransportData;

// forward declaration
#ifndef _LINUXtypedef struct tagPMDIOTransport PMDIOTransport;
typedef struct tagPMDAxisHandle PMDAxisHandle;
#endif
// functions that can be called externally
PMDuint16 PMDPCI_Init(void* handle);
void PMDPCI_InitData(PMDPCIIOTransportData* transport_data);
PMDuint16 PMDSetupAxisInterface_PCI(PMDAxisHandle* axis_handle, PMDAxis axis_number, int board_number);
PMDuint16 PMDPCI_SetInterruptEvent(PMDAxisHandle* axis_handle,  HANDLE *pEventHdl);

// support functions that may be called directly
// once the interface is initialized
PMDuint16 PMDPCI_ReadDPRAM(void* transport_data, PMDuint32* data, PMDuint32 offset_in_dwords, PMDuint32 words_to_read);
PMDuint16 PMDPCI_WriteDPRAM(void* transport_data, PMDuint32* data, PMDuint32 offset_in_dwords, PMDuint32 words_to_write);

#if defined(__cplusplus)
}
#endif

#endif

⌨️ 快捷键说明

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