User`s guide

Driver Formats & Routines
15
Copyright © 1995-2007 Pico Technology. All rights reserved. adc1042.en-2
4.2.10
adc10_run
void adc10_run
(
unsigned long no_of_values,
unsigned short method
)
This routine starts a streaming unit collecting data It collects readings at intervals
and from channels specified in the most recent adc10_set_interval call. For
non-streaming devices, this function has no effect.
Arguments
no_of_values the number of samples to collect
method the data collection method:
BM_SINGLE (0) - collect a single block and stop
BM_WINDOW (1) - collect a sequence of overlapping blocks
BM_STREAM (2) - collect a continuous stream of data
4.2.11
adc10_ready
short adc10_ready (void)
This routine indicates whether a streaming device has completed its data collection. It
returns TRUE if the device is ready to transfer data. For non-streaming devices, it
always return TRUE.
4.2.12
adc10_stop
void adc10_stop (void)
This function cancels any pending request for data from a streaming device. It has no
effect for non-streaming devices.
4.2.13
adc10_get_values
unsigned long adc10_get_values
(
unsigned short HUGE * values,
unsigned long no_of_values
)
This routine reads in a block of values. It collects readings at intervals and from
channels specified in the most recent adc10_set_interval call.
For streaming devices, you should not call this routine until adc10_ready returns
TRUE.