User Manual

Programmer's reference15
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved.adc20.en
5.4
Driver functions
The following sections describe the functions available to an application using the
ADC-20 and ADC-24. All functions are C functions using the standard call naming
convention (__stdcall) and are exported with both decorated and undecorated
names.
Function
Description
HRDLCloseUnit
Shuts down unit
HRDLCollectSingleValueAsync
Starts the unit sampling one value without
blocking the calling application's flow
HRDLGetMinMaxAdcCounts
Returns the maximum and minimum ADC
count available for the device
HRDLGetNumberOfEnabledChannels
Returns the number of analog channels
enabled
HRDLGetSingleValue
Takes one sample for the specified channel at
the selected voltage range and conversion
time
HRDLGetSingleValueAsync
Retrieves the reading when the
HRDLCollectSingleValueAsync has been called
HRDLGetTimesAndValues
Returns the requested number of time-
stamped samples for each enabled channel
HRDLGetUnitInfo
Writes unit information to a character string
HRDLGetValues
Returns the requested number of samples for
each enabled channel
HRDLOpenUnit
Opens data logger unit
HRDLOpenUnitAsync
Opens unit without blocking the calling
thread
HRDLOpenUnitProgress
Checks the progress of an asynchronous open
operation
HRDLReady
Indicates when readings are ready to be
collected
HRDLRun
Starts the device sampling and storing the
samples into the driver's buffer
HRDLSetAnalogInChannel
Enables or disables the analog channel
HRDLSetDigitalIOChannel
Sets a digital output or input (ADC-24 only)
HRDLSetInterval
Sets the sampling time interval
HRDLSetMains
Sets the mains noise rejection frequency
HRDLStop
Stops the device when streaming