Rev 2000 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef _CAPACITY_H
#define _CAPACITY_H
typedef struct
{
unsigned short ActualCurrent; // in 0.1A Steps
unsigned short ActualPower; // in 0.1W
signed short UsedCapacity; // in mAh //Modified by metro
signed short RemainCapacity; // in mAh //Added by metro
unsigned char MinOfMaxPWM; // BL Power Limit
} __attribute__((packed)) Capacity_t;
extern Capacity_t Capacity;
void Capacity_Init(void);
void Capacity_Update(void);
#endif //_CAPACITY_H