Apply modifications to mass-produced boards
- 3 channel power sensor ina3221 - io expander pca9557 - Some gpio moves - ... Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
This commit is contained in:
@@ -3,8 +3,16 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define NUM_CHANNELS 3
|
||||
|
||||
typedef struct {
|
||||
float voltage;
|
||||
float current;
|
||||
float power;
|
||||
} channel_data_t;
|
||||
|
||||
void datalog_init(void);
|
||||
void datalog_add(uint32_t timestamp, float voltage, float current, float power);
|
||||
void datalog_add(uint32_t timestamp, const channel_data_t* channel_data);
|
||||
const char* datalog_get_path(void);
|
||||
|
||||
#endif /* MAIN_SERVICE_DATALOG_H_ */
|
||||
|
||||
Reference in New Issue
Block a user