]> git.itanic.dy.fi Git - log-plotter/blobdiff - data.h
data.c: Implement initial support for handling multiple data channels
[log-plotter] / data.h
diff --git a/data.h b/data.h
index 3034e0c62ad1999081b342dceb206cdd2d862c7d..b9c04c96dd52eddd992e94c1c13c5139825a027f 100644 (file)
--- a/data.h
+++ b/data.h
@@ -1,10 +1,12 @@
 #ifndef _DATA_H_
 #define _DATA_H_
 
+#include "config.h"
+
 #define MAX_CELLS 10
 
 struct charger_data {
-       int channel;
+       unsigned int channel;
        int state;
        double timestamp;       /* seconds since beginning of the charging */
        double input_voltage;
@@ -13,10 +15,10 @@ struct charger_data {
        double cell_voltage[MAX_CELLS];
 
        double total_charge;    /* mAh */
-       double int_temp;        /* milli celsius */
+       double int_temp;        /* celsius */
        double ext_temp;
 };
 
-int read_data(int infd, int outfd);
+int init_data_parser(int infd, struct plotter_config *cfg);
 
 #endif