Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

ddi_bc_sm.c File Reference


Detailed Description

Contains the Battery Charger state machine.

Definition in file ddi_bc_sm.c.

#include <mach/ddi_bc.h>
#include "ddi_bc_internal.h"
#include <linux/delay.h>

Go to the source code of this file.

Defines

#define TRANSITION_TO_TOPOFF_MINIMUM_CHARGE_TIME_mS   1 * 60 * 1000

Functions

static ddi_bc_Status_t ddi_bc_Broken (void)
 Broken state function.
static ddi_bc_Status_t ddi_bc_Charging (void)
 Charging state function.
static ddi_bc_Status_t ddi_bc_Conditioning (void)
 Conditioning state function.
static ddi_bc_Status_t ddi_bc_Disabled (void)
 Disabled state function.
static ddi_bc_Status_t ddi_bc_ToppingOff (void)
 Topping Off state function.
static ddi_bc_Status_t ddi_bc_Uninitialized (void)
 Uninitialized state function.
static ddi_bc_Status_t ddi_bc_WaitingToCharge (void)
 Waitin to Charge state function.
ddi_bc_Status_t stateFunctionTable (void)
 The state function table.
static void TransitionToBroken (void)
 Transition to the Broken state.
static void TransitionToCharging (void)
 Transition to the Charging state.
static void TransitionToConditioning (void)
 Transition to the Conditioning state.
static void TransitionToToppingOff (void)
 Transition to the Topping Off state.
static void TransitionToWaitingToCharge (void)
 Transition to the Waiting to Charge state.

Variables

bool bRestartChargeCycle = true
ddi_bc_BrokenReason_t ddi_bc_gBrokenReason = DDI_BC_BROKEN_UNINITIALIZED
ddi_bc_State_t g_ddi_bc_State = DDI_BC_STATE_UNINITIALIZED
 The current state.
uint32_t g_ddi_bc_u32StateTimer = 0


Generated by  Doxygen 1.6.0   Back to index