Declares functions for ISCO autosampler.
More...
#include <project.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
#define | AUTOSAMPLER_STATE_OFF 0 |
|
#define | AUTOSAMPLER_STATE_IDLE 1 |
|
#define | AUTOSAMPLER_STATE_BUSY 3 |
|
#define | MAX_BOTTLE_COUNT 24 |
|
#define | PULSE_COUNT 20 |
|
|
uint8 | autosampler_state |
|
uint8 | SampleCount |
|
Declares functions for ISCO autosampler.
- Author
- Brandon Wong and Matt Bartos
- Version
- TODO
- Date
- 2017-06-19
uint8 autosampler_power_off |
( |
| ) |
|
Powers off the autosampler.
- Returns
- 1u on success
uint8 autosampler_power_on |
( |
| ) |
|
Powers on the autosampler.
- Returns
- 1u on success
uint8 autosampler_start |
( |
| ) |
|
Starts the autosampler UART.
- Returns
- 1u on success
uint8 autosampler_stop |
( |
| ) |
|
Stops the autosampler UART.
- Returns
- 1u on success
uint8 autosampler_take_sample |
( |
uint8 * |
count | ) |
|
Takes a sample with the autosampler and writes current bottle count to count
.
- Parameters
-
count | The current bottle count to be updated |
- Returns
- 1u on success
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.
- Parameters
-
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) |
- Returns
- (*array_ix) + number of entries filled