beautypg.com

Digilent Port Communications User Manual

Page 12

background image

Digilent, Inc

TM

DPCUTIL Programmer’s Manual

www.digilentinc.com

© Digilent, Inc.

Page

12 of 14

rgbData[0], the data byte in the register
specified by the address in rgbAddr[1]
is written to rgbData[1], etc.


BOOL DpcPutRegRepeat(HANDLE hif, BYTE
bAddr, BYTE * rgbData, int cbData, ERC *
perc,
TRID * ptrid)

Parameters
hif

-

handle to Data

interface
bAddr

-

address of

register to send stream of data bytes
rgbData

-

buffer with data

bytes to be sent to address
cbData

-

number of bytes

to be sent
perc

-

pointer to

store error code
ptrid

-

pointer to

store transaction ID. If ptrid is NULL,
this function will be

blocking.


Return Values
Returns true if successful. Returns
false otherwise.

Description
Sends a stream of data bytes to a
single, specified register address.
BAddr is a register address that will be
sent many bytes one at a time in
sequential order. RgbData is a buffer
containing the data that will be sent to
bAddr. The will be sent as quickly as
the Digilent Communications Interface
Module will allow. The number of bytes
to be sent to bAddr is specified in
cbData.


BOOL DpcGetRegRepeat (HANDLE hif, BYTE
bAddr, BYTE * rgbData, int cbData, ERC *
perc,
TRID * ptrid)

Parameters
hif

-

handle to Data

interface
bAddr

-

address of

register to send stream of data bytes

rgbData

-

buffer to store

data bytes from address
cbData

-

number of

bytes to be received from address
perc

-

pointer to

store error code
ptrid

-

pointer to

store transaction ID. If ptrid is NULL,
this function will be

blocking.


Return Values
Returns true if successful. Returns
false otherwise.

Description
Gets a stream of data bytes from a
single, specified register address.
RgbData is a buffer that will contain
data read out of the register at address
bAddr. The data is read as quickly as
the Digilent Communications Interface
Module will allow. The number of bytes
to be read out of bAddr is specified in
cbData.

API Device Manager calls


void DvmgStartConfigureDevices(HWND
hwnd, ERC *perc)

Parameters
hwnd

-

handle to parent

window
perc

-

pointer to store

error code

Return Values
none
Description
Opens the Device Table dialog box.
This dialog box is used to add, remove,
or modify communication modules in
the device table.


int DvmgGetDevCount(ERC *perc)

Parameters
perc

-

pointer to store

error code

Return Values