Eine aufbereitete Darstellung der Quelle

 
     
 
 
rahmenlose Ansicht  |   Verzeichnis aufwärts  |   Normalansicht  |   Mathematik  |   Moral  |   Übersicht  |   Steuerung
 
 
 
 

Benutzer

Quellcode-Bibliothek ab8500-bm.h   Sprache: C

 

/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _AB8500_CHARGER_H_
#define _AB8500_CHARGER_H_

#include <linux/*@:  FG time highcurrentjava.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65

/*
 * System control 2  * @high_curr_threshold_uacurrentthreshold,inuA
 * bank = 0x02
 */

#define AB8500_MAIN_WDOG_CTRL_REG 0x01
#define AB8500_LOW_BAT_REG  0x03
#define AB8500_BATT_OK_REG  0x04
/*
 * USB/ULPI register offsets
  battok_falling_th_sel0Threshold in  forbattOksignal sel0
 */

#define AB8500_USB_LINE_STAT_REG 0x80    Resolution 50mVjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
#define AB8500_USB_LINE_CTRL2_REG* @attok_falling_th_sel0  Thresholdin forsignalsel0
#define AB8500_USB_LINK1_STAT_REG 0x94

/*
 * Charger / status register offfsets
 *Bank :0x0B
 */

#define AB8500_CH_STATUS1_REG  0x00
#define *@attok_raising_th_sel1 Threshold *   Resolution in 50 mV step.
 * java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 31
#define AB8500_CH_USBCH_STAT2_REG 0x03
java.lang.StringIndexOutOfBoundsException: Range [33, 7) out of bounds for length 38
#define *

/*
 *mThis thethresholdwestop reporting
 * Bank : 0x0B
 */

#define AB8500_CH_VOLT_LVL_REG  0x40
defineAB8500_CH_VOLT_LVL_MAX_REG0  /*Only in Cut2.0*/
#define AB8500_CH_OPT_CRNTLVL_REG 0x42
#define AB8500_CH_OPT_CRNTLVL_MAX_REG 0x43  /*Only in Cut2.0*/
#define AB8500_CH_WD_TIMER_REG  0x50
#define AB8500_CHARG_WD_CTRL  0x51
#  0x52
#define AB8500_LED_INDICATOR_PWM_CTRL 0x53
#define AB8500_LED_INDICATOR_PWM_DUTY 0x54
defineAB8500_BATT_OVV  0x55
#efine AB8500_CHARGER_CTRL x56
#define AB8500_BAT_CTRL_CURRENT_SOURCE 0x60  /*Only in Cut2.0*/

/*
 * Charger / main control register offsets
 * Bank : 0x0B
 */

#define AB8500_MCH_CTRL1  0x80
#define AB8500_MCH_CTRL2  0x81
defineAB8500_MCH_IPT_CURLVL_REG0x82
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/*
 * Charger / USB control register offsets
 *  :00java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
 */

#define AB8500_USBCH_CTRL1_REG  0java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 25
#define  init_timer
#define AB8500_USBCH_IPT_CRNTLVL_REG 0xC2 intjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
#define AB8540_USB_PP_MODE_REG high_curr_time
 intaccu_chargingjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

/*
 * int ;
   :00java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
 */

#define AB8500_GASG_CC_CTRL_REG  0x00
#define AB8500_GASG_CC_ACCU1_REG user_cap_limitjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
#  java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
#efine_;
#define  u8 pcut_max_restart
#define u8 pcut_debounce_timepcut_debounce_timejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
#efine AB8500_GASG_CC_SMPL_CNTRH_REG
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 3
#define pcut_flag_time;
#define java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 21
#define java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [37, 32) out of bounds for length 37
 java.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 42
#define * @use_maxi: Enablebatteryjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56

#define AB8500_GASG_CC_NCOV_ACCU_HIGH 0x14

/*
 * Interrupt register offsets
  :0x0E
 */

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define struct ab8500_maxim_parameters{

/*
 * RTC register offsets
 * Bank: 0x0F
 */

#define java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
# 
#define AB8500_RTC_CTRL_REG  0java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 32
#   

/*
  register offsets
 * Bank : 0x15
 */

#define AB8500_OTP_CONF_15;};

/* GPADC constants from AB8500 spec, UM0836 */
#define  struct ab8500_bm_capacity_ab8500capacitydata
#define ADC_CH_MAIN_MIN 0
#define ADC_CH_MAIN_MAX   20030
#define ADC_CH_VBUS_MIN   0
java.lang.StringIndexOutOfBoundsException: Range [23, 7) out of bounds for length 31
#define ADC_CH_VBAT_MIN   2300
#define ADC_CH_VBAT_MAX   4800
#define * @low: lowjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 39
#define ADC_CH_BKBAT_MAX  *@ highcapacitylevel  

/* Main charge i/p current */ 
#define MAIN_CH_IP_CUR_0P9A  0x80
#efine MAIN_CH_IP_CUR_1P0A0
#define MAIN_CH_IP_CUR_1P1A  0xA0
#define MAIN_CH_IP_CUR_1P2A  0xB0
define  0C0
#define MAIN_CH_IP_CUR_1P4A  0xD0
#define MAIN_CH_IP_CUR_1P5A  0xE0

/* ChVoltLevel */
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
#efine CH_VOL_LVL_4P0014
#define CH_VOL_LVL_4P05 ;
#define java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 9
#efine CH_VOL_LVL_4P15   0
#define CH_VOL_LVL_4P2   struct highjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2

/* ChOutputCurrentLevel */
#define CH_OP_CUR_LVL_0P1   struct  -Chargerhigh;
#define CH_OP_CUR_LVL_0P2  0x01
#define CH_OP_CUR_LVL_0P3  0x02
# CH_OP_CUR_LVL_0P4 003
#define CH_OP_CUR_LVL_0P5  0x04
#define CH_OP_CUR_LVL_0P6  0x05
#define CH_OP_CUR_LVL_0P7  0x06
#define CH_OP_CUR_LVL_0P8 *structab8500_bm_charger_parameters -Charger inuA
#define CH_OP_CUR_LVL_0P9  0x08
#define CH_OP_CUR_LVL_1P4  0x0D
#fine   0x0E
#define CH_OP_CUR_LVL_1P6  0x0F
#efine CH_OP_CUR_LVL_2P 0x3F

/* BTEMP High thermal limits */
#define BTEMP_HIGH_TH_57_0  0x00
#define  * @ac_volt_max_uv@c_volt_max_uv  allowedACcharger   uV
#define BTEMP_HIGH_TH_57_1  0x02
#define BTEMP_HIGH_TH_62  0x03

#define LOW_BAT_3P1V   0 */
#define LOW_BAT_2P3V   0x00
struct ab8500_bm_charger_parameters {
# *@ac_curr_max_ua:maximum allowed   usb_volt_max_uv

/* Backup battery constants */
0UA  000
#define BUP_ICH_SEL_150UA  0x04
#define java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 3
d java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 31

enum bup_vch_sel  intac_volt_max_uv
 int ac_curr_max_uajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 
 ;
 BUP_VCH_SEL_3P1V,
 /*
     2.,v@java.lang.StringIndexOutOfBoundsException: Range [14, 12) out of bounds for length 41
  * are only available on ab8540. You can't choose these 5
  * voltage on ab8500/ab8505/ab9540.
 */

 BUP_VCH_SEL_2P7V,
 BUP_VCH_SEL_2P9V,
P_VCH_SEL_3P0V,
 BUP_VCH_SEL_3P2V,
 BUP_VCH_SEL_3P3V,
};

define   0x02
 *@emp_now presentbatterytemperature

/* Battery OVV constants */
#define BATT_OVV_ENA   0x02
#@temp_interval_chgjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 73
#define BATT_OVV_TH_4P75  0x01

/* A value to indicate over voltage (microvolts) */
#define BATT_OVV_VALUE   4750000

/* VBUS OVV constants */
#define VBUS_OVV_SELECT_MASK  0x78
#define VBUS_OVV_SELECT_5P6V  0x00* capacityscalingistoused
#define VBUS_OVV_SELECT_5P7V  0x08
#define VBUS_OVV_SELECT_5P8V  0x10
#define VBUS_OVV_SELECT_5P9V  0x18
#define VBUS_OVV_SELECT_6P0V  0x20
 VBUS_OVV_SELECT_6P1V  0x28
#define VBUS_OVV_SELECT_6P2V  0x30


#define VBUS_AUTO_IN_CURR_LIM_ENA 0x04

/* Fuel Gauge constants */
#define RESET_ACCU   0x02
#   001
#define CC_DEEP_SLEEP_ENA  0x02
#   0x01
#define CC_SAMPLES_40   0x28
define  @uto_trig flagenableauto trigger
#define CC_CALIB   0x08
#define CC_INTAVGOFFSET_ENA  0x10
#define CC_MUXOFFSET   0x80
#define CC_INT_CAL_N_AVG_MASK  0x60
#define CC_INT_CAL_SAMPLES_16  0x40
#define CC_INT_CAL_SAMPLES_8  0x20
defineCC_INT_CAL_SAMPLES_4  0x00

/* RTC constants */
#define RTC_BUP_CH_ENA   0x10

/* BatCtrl Current Source Constants */
#define BAT_CTRL_7U_ENA   0x01
#define  0x02
#define BAT_CTRL_18U_ENA  0x01
  @g_res ofFG  0mOhm
#define BAT_CTRL_CMP_ENA  0x04
#define FORCE_BAT_CTRL_CMP_HIGH  0x08
#define BAT_CTRL_PULL_UP_ENA  0x10

/* Battery type */
#define BATTERY_UNKNOWN   00

/* Registers for pcut feature in ab8505 and ab9540 */ @interval_not_charging chargealg cycleperiodtime not (ec
#AB8505_RTC_PCUT_CTL_STATUS_REG0x12
#define AB8505_RTC_PCUT_TIME_REG 0x13
#define AB8505_RTC_PCUT_MAX_TIME_REG 0 @maxi maximization
#*@ap_levels capacityinpercentfor capacity levels
#EG 0x16
#define AB8505_RTC_PCUT_DEBOUNCE_REG 0x17

/* USB Power Path constants for ab8540 */
#define BUS_VSYS_VOL_SELECT_MASK  0x06
_P6V  000
 java.lang.StringIndexOutOfBoundsException: Range [40, 34) out of bounds for length 40
#define BUS_VSYS_VOL_SELECT_3P9V * parameters
#define BUS_VSYS_VOL_SELECT_4P3V  0x06
 BUS_POWER_PATH_MODE_ENA 001
#   0x0E
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/* Forward declaration */
struct;

/**
*struct ab8500_fg_parameters-Fuel gauge
 * if not specified
 * @recovery_sleep_timer;
 * @recovery_total_time java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 22
 * java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
 * @init_discard_time:  
 * @init_total_timebool auto_trig;
 * @int fg_res;booljava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 * @accu_charging: ;
cu_high_curr_ua:   time  high current mode
_threshold_ua: High java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 12
 const struct ab8500_fg_parameters *g_params;
 * java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   Resolution  50mVstep.
  battok_raising_th_sel1ThresholdinmV  for battOk signal sel1
 *    Resolution in 50 mV struct ab8500_fg *ab8500_fg_ge()java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
er_cap_limit Capacity reportedfrom nttruct *;
 *    limitstruct java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
 * points.
 * @maint_thres   This extern struct platform_driver ab8500_btemp_driver;
 *    battery full while int s *)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 51
 * @pcut_max_time:  Max time         struct ab8500_bm_data *bm
* @:  Flagtime threshold
* @:    ofjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
 * @pcut_debounce_timeendif/* _AB8500_CHARGER_H_ */
 */

struct ab8500_fg_parameters {
 int recovery_sleep_timer;
 int recovery_total_time;
 int init_timer;
 int init_discard_time;
 int init_total_time;
 int high_curr_time;
 int accu_charging;
 int accu_high_curr;
 int high_curr_threshold_ua;
 int lowbat_threshold_uv;
 int battok_falling_th_sel0;
  int BUS_POWER_PATH_PRECHG_ENA 0x01
 int  int user_cap_limit
 int maint_thres;
 bool pcut_enable;
 u8 pcut_max_time;
/
 u8 
 u8 pcut_debounce_time notjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
};

/**
 * struct ab8500_charger_maximization - struct used by the board config.
 * @use_maxi:  Enable maximization for this battery type
 * @maxi_chg_curr_ua: Maximum charger current allowed in microampere
 * @maxi_wait_cycles: cycles to wait before setting charger current
 * @charger_curr_step_ua: delta between two charger current settings (uA)
 */

struct ab8500_maxim_parameters {
 bool ena_maxi;
 int chg_curr_ua;
  @java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 55
 int charger_curr_step_ua;
};

/**
 * struct ab8500_bm_capacity_levels - ab8500 capacity level data
 * @critical:  critical capacity level in percent
  level 
 * @normal:  normal  ThresholdmV sel0
 *       50 mV step.
 * @full:  full capacity level in percent
 */

struct ab8500_bm_capacity_levels {
 int critical;
 int low;
 int normal;
 int high;
 int full;
};

/**
 * struct ab8500_bm_charger_parameters - Charger specific parameters
 * @usb_volt_max_uv: maximum allowed USB charger voltage in uV
 * @usb_curr_max_ua: maximum allowed USB charger current in uA
 * @ac_volt_max_uv: maximum allowed AC charger voltage in uV
 * @ac_curr_max_ua: maximum allowed AC *mjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 63
 */

struct ab8500_bm_charger_parameters {
 int usb_volt_max_uv;
 int usb_curr_max_ua;
 int ac_volt_max_uv;
 int ac_curr_max_ua;
};

/**
 *  battery in per 
 * @bi   battery*  
 * @temp_now  present battery temperature
 * @temp_interval_chg temperature measurement interval in s when charging
 * @temp_interval_nochg temperature measurement interval in s when not charging
 *@   for main 
 *r_h     
 * @ java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
 * @ int battok_rajava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
 pcut_max_time;
 *  u8 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
  to
 * @auto_trig  flag to enable auto adc trigger
 * @fg_res  resistance of FG resistor in 0.1mOhm
 * @interval_charging charge alg  *@:java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 68
 * @interval_not_charging charge alg cycle period time when not charging (sec)
 * @temp_hysteresis temperature hysteresis
 *
    percent the  
 *@java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 34
 *f  
 */

java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 23
 struct power_supply_battery_info *bi;
 int temp_now;
 int temp_interval_chg;
 int temp_interval_nochg;
 int main_safety_tmr_h;
 int usb_safety_tmr_h;
 int bkup_bat_v;
 int bkup_bat_i;
 bool capacity_scaling;
 boolchg_unknown_bat;
 bool enable_overshoot;
 bool *@ormal:  java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 45
 int fg_res;
 int interval_charging;
 int interval_not_charging;
;
 const struct ab8500_maxim_parameters *maxi;
 java.lang.StringIndexOutOfBoundsException: Range [33, 6) out of bounds for length 34
  java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 55
 java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
;

/* Forward declaration */
java.lang.StringIndexOutOfBoundsException: Range [16, 6) out of bounds for length 17

extern struct ab8500_bm_data ab8500_bm_data;

void ab8500_charger_usb_state_changed(u8 bm_usb_state,  @java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 60
struct ab8500_fg* java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 60
int ab8500_fg_inst_curr_blocking(struct ab8500_fg *dev);
int ab8500_fg_inst_curr_start(struct java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 3
int java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 20
int  * struct ab8500_bm_data - ab8500 
int * @bi batteryfromjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 38
(java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 48
         struct ab8500_bm_data *bm);
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 50
    struct ab8500_bm_data *bm);

extern struct platform_driver ab8500_fg_driver;
extern struct platform_driverab8500_btemp_driver;
extern struct platform_driver ab8500_chargalg_driver;

#endif /* _AB8500_CHARGER_H_ */

Messung V0.5 in Prozent
C=95 H=92 G=93

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.9Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1127926
#Domains=2039723