Rev 1486 | Rev 1510 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1486 | Rev 1506 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _CAPACITY_H |
1 | #ifndef _CAPACITY_H |
2 | #define _CAPACITY_H |
2 | #define _CAPACITY_H |
Line -... | Line 3... | ||
- | 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 |
|
3 | 6 | ||
4 | typedef struct |
7 | typedef struct |
5 | { |
8 | { |
6 | unsigned short ActualCurrent; // in 0.1A Steps |
9 | unsigned short ActualCurrent; // in 0.1A Steps |
7 | unsigned short UsedCapacity; // in mAh |
10 | unsigned short UsedCapacity; // in mAh |
Line 10... | Line 13... | ||
10 | extern Capacity_t Capacity; |
13 | extern Capacity_t Capacity; |
Line 11... | Line 14... | ||
11 | 14 | ||
12 | void Capacity_Init(void); |
15 | void Capacity_Init(void); |
Line 13... | Line -... | ||
13 | void Capacity_Update(void); |
- | |
14 | 16 | void Capacity_Update(void); |