summaryrefslogtreecommitdiff
path: root/drivers/power/mxs/ddi_bc_ramp.h
blob: b43db8147f528da9e66aa76e4bfc377cd13c4d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
 */

/*
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 */


/* addtogroup ddi_bc */
/* ! @{ */
/*  */
/* Copyright (c) 2004-2005 SigmaTel, Inc. */
/*  */
/* file ddi_bc_ramp.h */
/* brief Internal header file for Battery Charger current ramp controller. */
/* date 06/2005 */
/* ! */
/* ! This file contains internal declarations for Battery current ramp */
/* ! controller. */


#ifndef _DDI_BC_RAMP_H
#define _DDI_BC_RAMP_H


/* Prototypes */


extern void ddi_bc_RampReset(void);
extern uint16_t ddi_bc_RampSetTarget(uint16_t);
extern uint16_t ddi_bc_RampGetTarget(void);
extern uint16_t ddi_bc_RampSetLimit(uint16_t);
extern uint16_t ddi_bc_RampGetLimit(void);
extern void ddi_bc_RampUpdateAlarms(void);
extern int ddi_bc_RampGetDieTempAlarm(void);
extern int ddi_bc_RampGetBatteryTempAlarm(void);
extern int ddi_bc_RampGetAmbientTempAlarm(void);
extern ddi_bc_Status_t ddi_bc_RampStep(uint32_t);


/* End of file */

#endif				/* _DDI_BC_H */
/* ! @} */