Open Storm
autosampler.h
Go to the documentation of this file.
1 
8 #ifndef AUTOSAMPLER_H
9 #define AUTOSAMPLER_H
10 
11 #include <project.h>
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <string.h>
15 
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
21 
22 extern uint8 autosampler_state;
23 extern uint8 SampleCount;
24 
30 uint8 autosampler_start();
31 
37 uint8 autosampler_stop();
38 
44 uint8 autosampler_power_on();
45 
51 uint8 autosampler_power_off();
52 
60 uint8 autosampler_take_sample(uint8 *count);
61 
74 uint8 zip_autosampler(char *labels[], float readings[], uint8 *array_ix, int *autosampler_trigger, uint8 *bottle_count, uint8 max_size);
75 
76 #endif
77 /* [] END OF FILE */
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