Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1465 - 1
#ifndef _LIPO_H_
2
#define _LIPO_H_                
3
 
4
#include "mk.h"
5
 
6
typedef struct {
7
        uint8_t Umk;
8
        uint16_t Capacity;
9
        uint16_t UsedCapacity;
10
        uint32_t time_on;
11
}mk_lipo_t;
12
 
13
typedef struct {
14
                uint32_t Sum;
15
                uint16_t Count;
16
}mk_current_t;
17
 
18
 
19
extern uint8_t                  mk_UBat;                                                // Battery Voltage in 0.1 Volts
20
extern uint16_t                 mk_dUsedCapacity;
21
extern uint16_t                 mk_Ikorr;
22
 
23
extern mk_current_t     mk_current;
24
extern uint8_t                  mk_akku_nr;
25
extern mk_lipo_t                mk_lipo;
26
extern uint8_t                  mk_i_offset;
27
extern uint8_t                  mk_i_faktor;
28
extern uint8_t                  mk_w_faktor;
29
 
30
void store_LipoData(void);
31
void MK_ProcessLipo(NaviData_t *navi_data);
32
 
33
#endif