beautypg.com

Digilent WaveForms User Manual

Page 57

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 57 of 85


FDwfDigitalIOOutputSet
(HDWF hdwf,

unsigned

int

fsOutput)

Parameters:
-

hdwf – Open interface handle on a device.

-

fsOutput – Output bit set.

The function above is used to set the output logic value on all output pins.


FDwfDigitalIOOutputGet
(HDWF hdwf,

unsigned

int

*pfsOutput)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfsOutput – Pointer to variable to returns output bit set.

The function above returns the currently set output values across all output pins.


FDwfDigitalIOInputInfo
(HDWF hdwf,

unsigned

int

*pfsInputMask)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfsInputMask – Variable to return the input value mask.

The function above returns the readable input value mask (bit set) that can be used on the device.


FDwfDigitalIOInputStatus
(HDWF hdwf,

unsigned

int

*pfsInput)

Parameters:
-

hdwf – Open interface handle on a device.

-

pfsInput – Variable to return the input value.

The function above returns the input states of all I/O pins. Before calling the function above, call the
FDwfDigitalIOStatus function to read the Digital I/O states from the device.