comparison src/cs/drivers/drv_app/pwr/pwr_liion_cha.h @ 0:92470e5d0b9e

src: partial import from FC Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 01:28:16 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92470e5d0b9e
1 /*******************************************************************************
2 *
3 * pwr_liion_cha.h
4 *
5 * Purpose: This file contains definitions for managing the Li-ion batteries
6 * charging process.
7 *
8 * Author Candice Bazanegue (c-brille@ti.com)
9 *
10 * (C) Texas Instruments 2001
11 *
12 ******************************************************************************/
13
14 #ifndef __PWR_LIION_CHA_H__
15 #define __PWR_LIION_CHA_H__
16
17 /* Define for battery qualification */
18
19 #define BATTERY_OK (0)
20 #define OPEN_BATTERY (1)
21 #define SHORT_BATTERY (2)
22
23
24 /* Prototypes */
25
26 void pwr_start_CI_charging(unsigned short DAC_current);
27 void pwr_start_CV_charging(unsigned short charging_voltage);
28 void pwr_stop_charging(void);
29 void pwr_current_loop_cal(void);
30 void pwr_calibration_process(void);
31 void pwr_battery_qualification(void);
32 void pwr_start_fast_charge(void);
33 void pwr_CI_charge_process(void);
34 void pwr_CV_charge_process(void);
35 void pwr_bat_test_timer_process(void);
36 void pwr_short_test_timer_process(void);
37 void pwr_open_test_timer_process(void);
38 void pwr_cal_timer_process(void);
39 void pwr_CI_charge_timer_process(void);
40 void pwr_CV_charge_timer_process(void);
41
42 #endif /* __PWR_LIION_CHA_H__ */