Open Storm
decagon.h
Go to the documentation of this file.
1 
8 #ifndef DECAGON_H
9 #define DECAGON_H
10 #include <project.h>
11 #include <stdint.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include "cytypes.h"
15 #include "sensors_uart_control.h"
16 #include "strlib.h"
17 
22 struct {
23  float dielectric;
24  float temp;
25  int conductivity;
26  uint8 valid;
27  uint8 err;
28 }typedef DecagonGS3;
29 
35 uint8_t Decagon_Take_Reading(DecagonGS3 *decagon_reading);
36 
41 
56 uint8 zip_decagon(char *labels[], float readings[], uint8 *array_ix, uint8 take_average, int decagon_loops, uint8 max_size);
57 
58 #endif
59 /* [] END OF FILE */
DecagonGS3 Decagon_Convert_Raw_Reading(char *raw_D)
TODO: Not implemented.
Definition: decagon.c:47
uint8 zip_decagon(char *labels[], float readings[], uint8 *array_ix, uint8 take_average, int decagon_loops, uint8 max_size)
Inserts current values of decagon_reading into labels and readings arrays.
Definition: decagon.c:64
uint8_t Decagon_Take_Reading(DecagonGS3 *decagon_reading)
Takes a reading with the Decagon GS3 sensor.
Definition: decagon.c:11
struct @1 DecagonGS3
Type definition for decagon GS3 sensor struct.
Functions for parsing c strings.
A collection of common patterns used to interface with the sensors UART.