16 #define AUTOSAMPLER_STATE_OFF 0 17 #define AUTOSAMPLER_STATE_IDLE 1 18 #define AUTOSAMPLER_STATE_BUSY 3 19 #define MAX_BOTTLE_COUNT 24 20 #define PULSE_COUNT 20 22 extern uint8 autosampler_state;
23 extern uint8 SampleCount;
74 uint8
zip_autosampler(
char *labels[],
float readings[], uint8 *array_ix,
int *autosampler_trigger, uint8 *bottle_count, uint8 max_size);
uint8 autosampler_take_sample(uint8 *count)
Takes a sample with the autosampler and writes current bottle count to count.
Definition: autosampler.c:49
uint8 autosampler_power_off()
Powers off the autosampler.
Definition: autosampler.c:42
uint8 autosampler_power_on()
Powers on the autosampler.
Definition: autosampler.c:33
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...
Definition: autosampler.c:91
uint8 autosampler_stop()
Stops the autosampler UART.
Definition: autosampler.c:26
uint8 autosampler_start()
Starts the autosampler UART.
Definition: autosampler.c:19