main/task_ina219.h

changeset 5
b1f38105ca7e
parent 3
e5d91caa6ab4
child 6
bad3414f7bc4
equal deleted inserted replaced
4:d0155c16e992 5:b1f38105ca7e
36 typedef struct { 36 typedef struct {
37 bool valid; ///< Valid measurement 37 bool valid; ///< Valid measurement
38 bool fake; ///< Fake measurement 38 bool fake; ///< Fake measurement
39 INA219_tt Battery; ///< Battery measurement 39 INA219_tt Battery; ///< Battery measurement
40 INA219_tt Solar; ///< Solar measurement 40 INA219_tt Solar; ///< Solar measurement
41 float s_Volts[I_MAX_LOOPS];
42 float s_Current[I_MAX_LOOPS];
43 float b_Volts[I_MAX_LOOPS];
44 float b_Current[I_MAX_LOOPS];
45 bool m_Valid[I_MAX_LOOPS];
46 time_t m_Time[I_MAX_LOOPS];
47 time_t gLastTime;
48 uint8_t loopno;
49 uint8_t loops;
50 uint8_t tries; 41 uint8_t tries;
51 int error; ///< Error result 42 int error; ///< Error result
52 } INA219_State; 43 } INA219_State;
53 44
54 45

mercurial