#ifndef _DATA_H_
#define _DATA_H_
+#include "config.h"
+
#define MAX_CELLS 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