Rev 1506 | Rev 1526 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1506 | Rev 1510 | ||
---|---|---|---|
1 | #ifndef _CAPACITY_H |
1 | #ifndef _CAPACITY_H |
2 | #define _CAPACITY_H |
2 | #define _CAPACITY_H |
3 | - | ||
4 | #define STATIC_CURRENT 4 // always calculate with a Current of 0,xA |
- | |
5 | extern unsigned char OwnConsumptionCurrent; // always calculate with a Current of 0,xA |
- | |
6 | 3 | ||
7 | typedef struct |
4 | typedef struct |
8 | { |
5 | { |
9 | unsigned short ActualCurrent; // in 0.1A Steps |
6 | unsigned short ActualCurrent; // in 0.1A Steps |
10 | unsigned short UsedCapacity; // in mAh |
7 | unsigned short UsedCapacity; // in mAh |
11 | } __attribute__((packed)) Capacity_t; |
8 | } __attribute__((packed)) Capacity_t; |
12 | 9 | ||
13 | extern Capacity_t Capacity; |
10 | extern Capacity_t Capacity; |
14 | 11 | ||
15 | void Capacity_Init(void); |
12 | void Capacity_Init(void); |
16 | void Capacity_Update(void); |
13 | void Capacity_Update(void); |
17 | 14 | ||
18 | #endif //_CAPACITY_H |
15 | #endif //_CAPACITY_H |
19 | 16 | ||
20 | 17 |