文档详情

dmgr programmers reference manualDMGR程序员参考手册.pdf

发布:2025-04-23约3.02万字共16页下载文档
文本预览下载声明

DigilentAdeptDeviceAccess

DigilentAdeptDeviceAccess

Manager(DMGR)Programmer’s

Manager(DMGR)Programmer’s

ReferenceManual

ReferenceManual

Revision:September2,20101300NEHenleyCourt,Suite3

Pullman,WA99163

(509)3346306Voice|(509)3346300Fax

Introduction

ThisdocumentdescribestheprogramminginterfacetotheDigilentAdeptDeviceAccessManager

(DMGR)subsystemforversion2oftheDigilentAdeptsoftwaresystem.Itdescribesthefeatures

supportedbytheDMGRsubsystemandtheAPIfunctionsusedtoaccessthesefeatures.

TheDMGRsubsystemisusedtoopenandclosehandlesforaccesstoDigilentAdeptcompatible

devices.ItisalsousedtoenumerateDigilentAdeptcompatibledevicesconnectedtooraccessible

fromtheuser’sPCandtoqueryandsetattributeswithinthedevices.

GeneralAPIFunctions

ThefollowingAPIfunctionsmakeupthebasicDMGRinterface.

DmgrGetVersion(char*szVersion)

Parameters:

szVersion-pointertobuffertoreceiveversionstring

ThisfunctionreturnsaversionnumberstringidentifyingtheversionnumberoftheDMGRDLL.The

symbolcchVersionMaxdeclaredindpcdecl.hdefinesthelongeststringthatcanbereturnedin

szVersion.

DmgrGetLastError()

Parameters:

none

Thisfunctionreturnstheerrorcodeofthelasterrortooccurinthecontextofthecallingprocessand

thread.Ifnoerrorhasoccurredsincethelasttimethisfunctionwascalled,thevalueercNoErroris

returned.Aftertheerrorcodehasbeenreturned,theerrorstatusforthecallingthreadisresetto

ercNoError.

DmgrSzFromErc(ERCerc,char*szErc,char*szErcMessage)

Parameters:

erc-errorcode

szErc-buffertoreceivesymbolicnamefor

显示全部
相似文档