Digilent WaveForms User Manual

Page 56

Advertising
background image

WaveForms™ SDK Reference Manual

Copyright Digilent, Inc. All rights reserved.

Other product and company names mentioned may be trademarks of their respective owners.

Page 56 of 85


FDwfDigitalIOStatus
(HDWF hdwf)

Parameters:
-

hdwf – Open interface handle on a device.

The function above reads the status and input values, of the device DigitalIO to the PC. The status and values are
accessed from the FDwfDigitalIOInputStatus function.


FDwfDigitalIOOutputEnableInfo
(HDWF hdwf,

unsigned

int

*pfsOutputEnableMask)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfsOutputEnableMask – Variable to return the OE mask bit field.

The function above returns the output enable mask (bit set) that can be used on this device. These are the pins
that can be used as outputs on the device.


FDwfDigitalIOOutputEnableSet
(HDWF hdwf,

unsigned

int

fsOutputEnable)

Parameters:
-

hdwf – Open interface handle on a device.

-

fsOutputEnable – Output enable bit set.

The function above is used to enable specific pins for output. This is done by setting bits in the fsOutEnable bit field
(1 for enabled, 0 for disabled).


FDwfDigitalIOOutputEnableGet
(HDWF hdwf,

unsigned

int

*pfsOutputEnable)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfsOutputEnable – Pointer to variable to returns output enable bit set.

The function above returns a bit field that specifies which output pins have been enabled.


FDwfDigitalIOOutputInfo
(HDWF hdwf,

unsigned

int

*pfsOutputMask)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfsOutputMask – Variable to return the output value mask.

The function above returns the settable output value mask (bit set) that can be used on this device.

Advertising