Digilent WaveForms User Manual
Page 75

WaveForms™ SDK Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 75 of 85
FDwfDigitalOutEnableGet(HDWF hdwf,
int
idxChannel, BOOL *pfEnable)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- pfEnable – Pointer to variable to receive enabled state.
The function above is used to verify if a specific channel is enabled or disabled.
FDwfDigitalOutOutputInfo(
HDWF hdwf,
int
idxChannel,
int
*pfsDwfDigitalOutOutput)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- pfsDwfDigitalOutOutput – Pointer to variable to receive the supported output modes.
The function above returns the supported output modes of the channel. They are returned (by reference) as a bit
field. This bit field can be parsed using the IsBitSet Macro. Individual bits are defined using the
DwfDigitalOutOutput constants in DWF.h:
DwfDigitalOutOutputPushPull: Default setting.
DwfDigitalOutOutputOpenDrain: External pull needed.
DwfDigitalOutOutputOpenSource: External pull needed.
DwfDigitalOutOutputThreeState: Available with custom and random types.
FDwfDigitalOutOutputSet(HDWF hdwf,
int
idxChannel, DwfDigitalOutOutput v)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- v – Output mode.
The function above specifies output mode of the channel.
FDwfDigitalOutOutputGet(HDWF hdwf,
int
idxChannel, DwfDigitalOutOutput *pv)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- pfEnable – Pointer to variable to receive enabled state.
The function above is used to verify if a specific channel output mode.