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