dmgr programmers reference manualDMGR程序员参考手册.pdf
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