2014-10-28 09:58:25 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
#ifndef __LTC4150_H
|
2013-06-21 22:36:48 +02:00
|
|
|
#define __LTC4150_H
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2013-12-16 17:54:58 +01:00
|
|
|
#include "ltc4150_arch.h"
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2014-10-13 15:49:17 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
void ltc4150_init(void);
|
|
|
|
void ltc4150_start(void);
|
|
|
|
void ltc4150_stop(void);
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
double ltc4150_get_current_mA(void);
|
|
|
|
double ltc4150_get_total_mAh(void);
|
2011-03-04 16:46:20 +01:00
|
|
|
double ltc4150_get_total_Joule(void);
|
2013-02-06 13:20:21 +01:00
|
|
|
double ltc4150_get_avg_mA(void);
|
|
|
|
int ltc4150_get_interval(void);
|
2011-01-31 18:25:20 +01:00
|
|
|
long ltc4150_get_intcount(void);
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2014-10-13 15:49:17 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
#endif /* __LTC4150_H */
|