Rev 2000 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1995 | - | 1 | #ifndef _CAPACITY_H |
2 | #define _CAPACITY_H |
||
3 | |||
4 | typedef struct |
||
5 | { |
||
6 | unsigned short ActualCurrent; // in 0.1A Steps |
||
7 | unsigned short ActualPower; // in 0.1W |
||
8 | signed short UsedCapacity; // in mAh //Modified by metro |
||
2000 | - | 9 | |
1995 | - | 10 | signed short RemainCapacity; // in mAh //Added by metro |
2005 | - | 11 | |
1995 | - | 12 | unsigned char MinOfMaxPWM; // BL Power Limit |
13 | } __attribute__((packed)) Capacity_t; |
||
14 | |||
15 | extern Capacity_t Capacity; |
||
16 | |||
17 | void Capacity_Init(void); |
||
18 | void Capacity_Update(void); |
||
19 | |||
20 | #endif //_CAPACITY_H |
||
21 |