Rev 1486 |
Rev 1510 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef _CAPACITY_H
#define _CAPACITY_H
#define STATIC_CURRENT 4 // always calculate with a Current of 0,xA
extern unsigned char OwnConsumptionCurrent; // always calculate with a Current of 0,xA
typedef struct
{
unsigned short ActualCurrent; // in 0.1A Steps
unsigned short UsedCapacity; // in mAh
} __attribute__((packed)) Capacity_t;
extern Capacity_t Capacity;
void Capacity_Init(void);
void Capacity_Update(void);
#endif //_CAPACITY_H