33
Programmer's reference
5.4.17 HRDLSetInterval
int16_t HRDLSetInterval
(
int16_t handle,
int32_t sampleInterval_ms,
int16_t conversionTime
)
This sets the sampling time interval. The number of channels active must be able to
convert within the specified interval.
Arguments
handle
sampleInterval_ms
conversionTime
Returns
0 if failed
1 if successful
Handle returned by
Time interval in milliseconds within which all conversions
must take place before the next set of conversions starts.
The amount of time given to one channel's conversion. This
must be one of the constants below.
If the function fails, call
with
info = HRDL_SETTINGS_ERRORS
for
the specific settings error.
Conversion times
Value of
Conversion time
conversionTime
HRDL 60MS (0)
60 ms
HRDL 100MS (1)
100 ms
HRDL 180MS (2)
180 ms
HRDL 340MS (3)
340 ms
HRDL 660MS (4)
660 ms
adc20.en r6
Copyright © 2005–2016 Pico Technology Ltd. All rights reserved.