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

ddi_bc_hw.h File Reference


Detailed Description

Internal header file for Battery Charger hardware operations.

Date:
06/2005
This file contains internal declarations for Battery Charger hardware operations.

See also:
ddi_bc.c and related files.

Definition in file ddi_bc_hw.h.

Go to the source code of this file.

Typedefs

typedef enum _ddi_bc_BatteryMode ddi_bc_BatteryMode_t
 The enumeration of battery modes.
typedef enum
_ddi_bc_BiasCurrentSource 
ddi_bc_BiasCurrentSource_t
 The enumeration of bias current sources.

Enumerations

enum  _ddi_bc_BatteryMode { DDI_BC_BATTERY_MODE_LI_ION_2_CELLS = 0, DDI_BC_BATTERY_MODE_LI_ION_1_CELL = 1, DDI_BC_BATTERY_MODE_2_CELLS = 2, DDI_BC_BATTERY_MODE_1_CELL = 3 }
 The enumeration of battery modes.
enum  _ddi_bc_BiasCurrentSource { DDI_BC_EXTERNAL_BIAS_CURRENT = 0, DDI_BC_INTERNAL_BIAS_CURRENT = 1 }
 The enumeration of bias current sources.

Functions

int ddi_bc_hwBatteryChargerIsEnabled (void)
 Report if the battery charging hardware is available.
int ddi_bc_hwChargerPowerIsOn (void)
 Report if the charger hardware power is on.
uint8_t ddi_bc_hwCurrentToSetting (uint16_t u16Current)
 Convert a current in mA to a hardware setting.
uint16_t ddi_bc_hwExpressibleCurrent (uint16_t u16Current)
 Compute the actual current expressible in the hardware.
ddi_bc_BatteryMode_t ddi_bc_hwGetBatteryMode (void)
 Report the battery configuration.
ddi_bc_Status_t ddi_bc_hwGetBatteryTemp (uint16_t *pReading)
 Report the battery temperature reading.
uint16_t ddi_bc_hwGetBatteryVoltage (void)
 Report the voltage across the battery.
ddi_bc_BiasCurrentSource_t ddi_bc_hwGetBiasCurrentSource (void)
int ddi_bc_hwGetChargeStatus (void)
 Reports if the charging current has fallen below the threshold.
uint16_t ddi_bc_hwGetCurrentThreshold (void)
 Report the charging current threshold.
void ddi_bc_hwGetDieTemp (int16_t *pLow, int16_t *pHigh)
 Report on the die temperature.
uint16_t ddi_bc_hwGetMaxCurrent (void)
 Report the maximum charging current.
bool ddi_bc_hwIsDcdcOn (void)
 Checks to see if the DCDC has been manually enabled.
int ddi_bc_hwPowerSupplyIsPresent (void)
 Report on the presence of the power supply.
ddi_bc_Status_t ddi_bc_hwSetBiasCurrentSource (ddi_bc_BiasCurrentSource_t)
void ddi_bc_hwSetChargerPower (int on)
 Turn the charging hardware on or off.
ddi_bc_Status_t ddi_bc_hwSetChargingVoltage (uint16_t)
uint16_t ddi_bc_hwSetCurrentThreshold (uint16_t u16Threshold)
 Set the charging current threshold.
uint16_t ddi_bc_hwSetMaxCurrent (uint16_t u16Limit)
 Set the maximum charging current.
uint16_t ddi_bc_hwSettingToCurrent (uint8_t u8Setting)
 Convert a hardware current setting to a value in mA.


Generated by  Doxygen 1.6.0   Back to index