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 |