DscADSetSettings

Universal Driver Documentation
Sets the A/D configuration for future A/D conversions. A delay of approximately 10 microseconds occurs during this function call in order to allow the analog circuit on the board to settle on the new settings. On -AT (auto-calibrating) boards, if adsettings->load_cal is TRUE, then load the A/D calibration settings from the EEPROM for the current A/D range. This results in slightly more accurate A/D conversions but causes an additional, longer delay of approximately 10 milliseconds.

Function Definition

BYTE dscADSetSettings(DSCB board, DSCADSETTINGS* adsettings);

Function Parameters

NameDescription
boardThe handle of the board to operate on
adsettingsThe A/D conversion settings to be used in subsequent A/D conversions; these settings will be used for all A/D conversions until they are changed with dscADSetChannel() or a call to an A/D interrupt function. See DSCADSETTINGS.

Return Value

Error code or 0.


This page was last modified 19:24, 30 Jan 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.