15
Programmer's reference
5.4.2
HRDLCollectSingleValueAsync
int16_t HRDLCollectSingleValueAsync
(
int16_t handle,
int16_t channel,
int16_t range,
int16_t conversionTime,
int16_t singleEnded
)
This function starts the unit sampling one value without blocking the calling
application's flow. Used in conjunction with
and
Arguments
handle
Handle returned by
channel
Channel number to convert. If the channel is not valid then the
function will fail.
range
The voltage range to be used. If the range is not valid, the
function
will return 0.
conversionTime
The time interval in which the sample should be converted. If the
conversion time is invalid,the function
will fail and return 0.
singleEnded
The type of voltage to be measured:
0: differential
nonzero: single-ended
Returns
1
if a valid handle is passed and the settings are correct
0
if not
adc20.en r6
Copyright © 2005–2016 Pico Technology Ltd. All rights reserved.