Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 1464 → Rev 1465

/NGVideo5_8/tags/V1.30/lipo.h
0,0 → 1,33
#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