Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

#ifndef _LIPO_H_
#define _LIPO_H_               

#include "mk.h"

typedef struct {
        uint8_t Umk;
        uint16_t Capacity;
        uint16_t UsedCapacity;
        uint32_t time_on;
}mk_lipo_t;

typedef struct {
                uint32_t Sum;
                uint16_t Count;
}mk_current_t;


extern uint8_t                  mk_UBat;                                                // Battery Voltage in 0.1 Volts
extern uint16_t                 mk_dUsedCapacity;
extern uint16_t                 mk_Ikorr;

extern mk_current_t     mk_current;
extern uint8_t                  mk_akku_nr;
extern mk_lipo_t                mk_lipo;
extern uint8_t                  mk_i_offset;
extern uint8_t                  mk_i_faktor;
extern uint8_t                  mk_w_faktor;

void store_LipoData(void);
void MK_ProcessLipo(NaviData_t *navi_data);

#endif