beautypg.com

Digilent Port Communications User Manual

Page 13

background image

Digilent, Inc

TM

DPCUTIL Programmer’s Manual

www.digilentinc.com

© Digilent, Inc.

Page

13 of 14

Returns number of devices in the
device table

Description
Gets the total number of devices in the
device table.


BOOL DvmgGetDevName(int idvc, char *
szdvcTemp, ERC*perc)

Parameters
idvc

-

index of

device to query
szdvcTemp

-

string to store

device name
perc

-

pointer to

store error code

Return Values
Returns true if successful. Returns
false otherwise.

Description
Gets the name of a device from its
index into the device table


BOOL DvmgGetDevType(int idvc, DVCT *
dvtp, ERC* perc)

Parameters
idvc

-

index of device to

query
dvtp

-

pointer to store

device type
perc

-

pointer to store

error code

Return Values
Returns true if successful. Returns
false otherwise.

Description
Gets the type of a particular device,
given its index in the device table. The
device type is returned by reference in
dvtp.


int DvmgGetDefaultDev(ERC *perc)

Parameters
perc

-

pointer to store

error code

Return Values
Returns index of default device in table

Description
Gets the index of the default device in
the device table


int DvmgGetHDVC (char* szdvc, ERC *perc)

Parameters
Szdvc

-

name of device

perc

-

pointer to store

error code

Return Values
Returns index of default device in table

Description
Gets the index of a device given its
name. If no device is found, the
returned index is –1, and an error code
is set in perc.