Open Storm
|
Implements functions for ISCO autosampler. More...
Functions | |
CY_ISR_PROTO (isr_SampleCounter) | |
uint8 | autosampler_start () |
Starts the autosampler UART. More... | |
uint8 | autosampler_stop () |
Stops the autosampler UART. More... | |
uint8 | autosampler_power_on () |
Powers on the autosampler. More... | |
uint8 | autosampler_power_off () |
Powers off the autosampler. More... | |
uint8 | autosampler_take_sample (uint8 *count) |
Takes a sample with the autosampler and writes current bottle count to count . More... | |
uint8 | zip_autosampler (char *labels[], float readings[], uint8 *array_ix, int *autosampler_trigger, uint8 *bottle_count, uint8 max_size) |
Inserts current values of autosampler_trigger and bottle_count into labels and readings arrays. More... | |
CY_ISR (isr_SampleCounter) | |
Variables | |
uint8 | SampleCount = 0 |
uint8 | SampleCount1 = 0 |
uint8 | autosampler_state |
Implements functions for ISCO autosampler.
uint8 autosampler_power_off | ( | ) |
Powers off the autosampler.
uint8 autosampler_power_on | ( | ) |
Powers on the autosampler.
uint8 autosampler_start | ( | ) |
Starts the autosampler UART.
uint8 autosampler_stop | ( | ) |
Stops the autosampler UART.
uint8 autosampler_take_sample | ( | uint8 * | count | ) |
Takes a sample with the autosampler and writes current bottle count to count
.
count | The current bottle count to be updated |
uint8 zip_autosampler | ( | char * | labels[], |
float | readings[], | ||
uint8 * | array_ix, | ||
int * | autosampler_trigger, | ||
uint8 * | bottle_count, | ||
uint8 | max_size | ||
) |
Inserts current values of autosampler_trigger
and bottle_count
into labels and readings arrays.
labels | Array to store labels corresponding to each trigger result |
readings | Array to store trigger results as floating point values |
array_ix | Array index to label and readings |
autosampler_trigger | Current value of autosampler trigger |
bottle_count | Current bottle count |
max_size | Maximum size of label and reading arrays (number of entries) |