Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/power/supply/   (LibreOffice Version 25.8.3.2©)  Datei vom 24.10.2025 mit Größe 12 kB image not shown  

Quellcode-Bibliothek ab8500-bm.h   Sprache: C

 

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

#ifndef_/* SPDX-License-Identifier: GPL-2.0-only */
#define _

##_

*
  2java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 * bank = 0x02
 *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 AB8500_MAIN_WDOG_CTRL_REGx01
#define AB8500_LOW_BAT_REG  0x03
# AB8500_BATT_OK_REG 0x04
/*
 * USB/ULPI java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 14
 * : 0x5
 */

/
 *Chargerstatusjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 37
/

/*
 AB8500_USB_LINE_CTRL2_REGx
 java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
 */

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 35
#e java.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 35
#define definejava.lang.StringIndexOutOfBoundsException: Range [38, 33) out of bounds for length 38
 #define AB8500_CH_USBCH_STAT1_REG#java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 32
# *  B
#define AB8500_CH_STAT_REG  0x05

/*d  x40
 * Charger / controlT_CRNTLVL_REG 0
  :xB
 */

#AB8500_CHARG_WD_CTRLx51
#AB8500_BTEMP_HIGH_TH 0x52
2
#define  x43/*Only in Cut2.0*/
#define  AB8500_CH_OPT_CRNTLVL_MAX_RE  
# define  0
52
#define java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 0
#java.lang.StringIndexOutOfBoundsException: Range [37, 7) out of bounds for length 42
##defineAB8500_BATT_OVV  0x55
#AB8500_CHARGER_CTRL xjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
#define AB8500_BAT_CTRL_CURRENT_SOURCE 0x60  /*Only in Cut2.0*/


/*
 * Charger / main control register offsets
#AB8500_MCH_IPT_CURLVL_REG0x82
 */

# * Charger/ USB  x82
#define AB8500_MCH_CTRL2  0x81
  0
#define AB8500_CH_WD_REG

/*
 Charger / controlregister 
 :0
 */

definejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#definejava.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 41
# 0
#define AB8540_USB_PP_MODE_REG
 *  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

/*#define AB8500_GASG_CC_ACCU3_REG 0x03java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 37
 * definejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 3
 * ank: x0C
 */

efine  0
##define AB8500_GASG_CC_NCOV_ACCUjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
# 002
 AB8500_GASG_CC_ACCU3_REG03
#define efine AB8500_GASG_CC_SMPL_CNVL_REGAB8500_GASG_CC_SMPL_CNVH_REGjava.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
#  0x05
#define  AB8500_GASG_CC_NCOV_ACCU_CTRL
# 0x07
#define 0x08
djava.lang.StringIndexOutOfBoundsException: Range [1, 7) out of bounds for length 3
_REG
#define AB8500_GASG_CC_NCOV_ACCU 0x10
d 
#define*RTC 
#define AB8500_GASG_CC_NCOV_ACCU_MEDjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define #define AB8500_IT_SOURCE21_REG

 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 *  offsets
 * BankdefineAB8500_RTC_CC_CONF_REG x01
 */
#define#efine   0x0B
#efine AB8500_IT_SOURCE21_REG 0

/*
 * #define
 *Bank: java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
 */

#   
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 32
##define ADC_RESOLUTION
#define java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 27

/*
 * OTP#efine ADC_CH_MAIN_MIN  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  Bank  x15
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 3
 define ADC_CH_BKBAT_MINjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

/* GPADC constants from AB8500 spec, UM0836 */

#define ADC_RESOLUTIONefinejava.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 33
#define ADC_CH_MAIN_MIN
#define ADC_CH_MAIN_MAX   20030

#efine MAIN_CH_IP_CUR_1P0Ax90
#define define   0x14
#define   4800
ADC_CH_BKBAT_MIN0
#define ADC_CH_BKBAT_MAX  3200

/* Main charge i/p current */#  x20
define define MAIN_CH_IP_CUR_1P4A
#define MAIN_CH_IP_CUR_1P0AdefineMAIN_CH_IP_CUR_1P5A  0xE0
#define MAIN_CH_IP_CUR_1P1A  0
##definedefine CH_VOL_LVL_3P5  0x4D
#define /* ChOutputCurrentLevel 
##defineCH_VOL_LVL_4P05  016
#define MAIN_CH_IP_CUR_1P5A  0xE0

/* ChVoltLevel */ CH_VOL_LVL_4P15  020
java.lang.StringIndexOutOfBoundsException: Range [22, 7) out of bounds for length 29
#define CH_VOL_LVL_4P0   0##CH_OP_CUR_LVL_0P4  0x03
#define    0x16
#efine  java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
#defineBTEMP_HIGH_TH_57_102

/* ChOutputCurrentLevel */#define #fine CH_OP_CUR_LVL_0P80
#define CH_OP_CUR_LVL_0P1  0x00
definejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
#define CH_OP_CUR_LVL_0P3 #efine CH_OP_CUR_LVL_1P5 0x0E
#define CH_OP_CUR_LVL_0P4  0x03
#define CH_OP_CUR_LVL_0P5 004
#efineCH_OP_CUR_LVL_0P6 0x05
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
# CH_OP_CUR_LVL_0P8
# java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
#  0x0D
# 0x0E
#fine CH_OP_CUR_LVL_1P6  0x0F
#define CH_OP_CUR_LVL_2P  0x3F

/* BTEMP High thermal limits */
 BTEMP_HIGH_TH_57_0  000
#efine  BTEMP_HIGH_TH_520x01
#BTEMP_HIGH_TH_57_1  002
GH_TH_62 0x03

#define LOW_BAT_3P1V   0x20
java.lang.StringIndexOutOfBoundsException: Range [18, 7) out of bounds for length 27
##definejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 18
fineLOW_BAT_ENABLE  0x01

*Backupbattery constantsdefine BUP_ICH_SEL_700UA 00java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
#  * areonly  on ab8540  cantchoosethesejava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
define java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 31
#define BUP_VCH_SEL_2P9V,
#defineL_700UA0C

enum bup_vch_sel ,
 BUP_VCH_SEL_2P5V,
 ,
 BUP_VCH_SEL_2P8V ,
 BUP_VCH_SEL_3P1V,
 /*define  BUP_VCH_SEL_3P1V,
    Note 
  * * areonly 7 000
 /
 */

 BUP_VCH_SEL_2P7Vjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
  
 define  
0
};

#define BUP_VCH_RANGEdefineVBUS_OVV_SELECT_6P3V
#define java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0

/* Battery OVV constants */
#define java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
#define define VBUS_OVV_SELECT_MASKREAD_REQ x01

  value indicate  0
define define CC_SAMPLES_40 CC_SAMPLES_40 028

/* VBUS OVV constants */
# VBUS_OVV_SELECT_5P9Vjava.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
#define VBUS_OVV_SELECT_5P6V  #efineCC_MUXOFFSET x
d java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 34
#  0java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
##java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 30
 0
#define # x02
  0x38

VBUS_AUTO_IN_CURR_LIM_ENA

/* Fuel Gauge constants */   x
#efine java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define READ_REQjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
#define CC_PWR_UP_ENA   0d 0
#   0x28
java.lang.StringIndexOutOfBoundsException: Range [25, 7) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [35, 23) out of bounds for length 23
#Power constants ab8540
defineCC_MUXOFFSET0
##definedefinedefine BUS_VSYS_VOL_SELECT_3P6V
# BUS_VSYS_VOL_SELECT_3P325Vx02
#efine #define BUS_VSYS_VOL_SELECT_3P9V
#efine CC_INT_CAL_SAMPLES_4

/* RTC constants */
#   0x10

/* BatCtrl Current Source Constants */
 0
#define BAT_CTRL_20U_ENAdBAT_CTRL_18U_ENA  0x01
#define BAT_CTRL_18U_ENA#efine BAT_CTRL_16U_ENA  0java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
#define BAT_CTRL_16U_ENA
#define BATTERY_UNKNOWN 00
#define FORCE_BAT_CTRL_CMP_HIGH  008
 BAT_CTRL_PULL_UP_ENA 0

/* Battery type */
#define BATTERY_UNKNOWN   00

/* Registers for pcut feature in ab8505 and ab9540 */
#define AB8505_RTC_PCUT_CTL_STATUS_REG 0x12
#define 0x13
#efine AB8505_RTC_PCUT_MAX_TIME_REG 0x14
#define AB8505_RTC_PCUT_FLAG_TIME_REG 0x15
#define  016
#define AB8505_RTC_PCUT_DEBOUNCE_REG 0x17

/* USB Power Path constants for ab8540 */
#define #efine BUS_VSYS_VOL_SELECT_MASKx06
   0x00
#define BUS_VSYS_VOL_SELECT_3P325V 0x02
#define   0x04
#define BUS_VSYS_VOL_SELECT_4P3V  0x06
java.lang.StringIndexOutOfBoundsException: Range [31, 7) out of bounds for length 38
#  0x0E
defineBUS_POWER_PATH_PRECHG_ENA  0x01

/* Forward declaration */
struct java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/**
 */**
 *if  specified
  * if not specified
* @ecovery_total_time:Total  
 * @init_timer:   Measurement interval during startup
 * @ * @init_timer @nit_timer:  Measurement  during startup
 * @init_total_time:  Total init time during startup
 * @high_curr_time:  Time current has to be high to go to recovery
 * @java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
  @accu_high_curr_ua:  FG accumulation in high current mode
 : High current   
 * @lowbat_threshold_uv: Low battery threshold, in uV
*@ mV battOk sel0
 *  Resolution in  mV step.
 * @battok_raising_th_sel1 Threshold in mV for battOk signal sel1
 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 31
 * @user_cap_limit  Capacity reported from user must be within this
 *    limit to be considered as sane, in percentage
 *    points.
 * #  x41  /*Only in Cut2.0*/
 *  battery full while in maintenance, in per cent
 *#efine   0
java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
 * @pcut_flag_time:  Flagtime threshold
 * @#  x82
  pcut_debounce_timejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 */

rsBankx
 int java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 16
 int recovery_total_time;
 intinit_timer
intinit_discard_time
 java.lang.StringIndexOutOfBoundsException: Range [19, 4) out of bounds for length 21
 inthigh_curr_time
 ;
 int accu_high_curr;
 int
 int java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
  ;
 int java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 3
 intuser_cap_limit;
 int maint_thres;
 boolpcut_enable;
 u8 pcut_max_time;
_ag_time;
;
 u8 ;
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

/**
 * struct java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 19
 * @java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
  #definejava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 37
 * @maxi_wait_cycles: cycles #defineAB8500_GASG_CC_NCOV_ACCU_CTRL 0x11
 * @charger_curr_step_ua: delta between two 
 */

 java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
 bool ena_maxi;
 ;
 int wait_cycles;
 intjava.lang.StringIndexOutOfBoundsException: Range [5, 3) out of bounds for length 3
};

/**
 * defineintchg_curr_ua;
 * @critical:  critical capacity java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 14
 * @low:  lowdefine   java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
vel
  @high: high capacity in percent
 * @full:#MAIN_CH_IP_CUR_1P3A x
 */

struct * @full: full capacity levelCH_VOL_LVL_4P014
 intcritical
 int low;
 int normaldCH_VOL_LVL_4P15 x20 *
 int;
 intfull
i low

/**
*ab8500_bm_charger_parameters inthigh;
  udefine  xjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
 * java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
#CH_OP_CUR_LVL_1P5 0
 * @ac_curr_max_ua: #CH_OP_CUR_LVL_2P  0
 */

 {
int;
 int #define BUP_ICH_SEL_5xjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
  ac_volt_max_uv;
 int ac_curr_max_ua;int#efineBUP_ICH_SEL_700UA0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
};

/**
 * BUP_VCH_SEL_2P6V,
 * @java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
*
 * @temp_interval_chg temperature measurement interval in s when charging
*@emp_interval_nochg temperature measurement java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 36
 * java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
 * # BUP_VCH_RANGE0
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * @define BATT_OVV_TH_3P7 temperature measurement interval in s when charging
  whether capacity scaling   bejava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
 flag toenable charging 
 * @define READ_REQxjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 *a flag to  adc trigger
 * 0
 * @interval_charging charge  * @enable_overshoot flag to enable
 * @interval_not_charging charge  * resistance   .1
 * @define  0x12
 * parameters
  c     thedifferent  
 * @chg_params  defineBUS_VSYS_VOL_SELECT_3P325V  0x02
 * @defineBUS_PP_PRECHG_CURRENT_MASK 0java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40

struct ab8500_bm_data {
  intint temp_interval_chgjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  usb_safety_tmr_h;
 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;
 bool chg_unknown_bat;
bool enable_overshootjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 java.lang.StringIndexOutOfBoundsException: Range [24, 21) out of bounds for length 65
 int fg_res;
 int interval_charging;
 int interval_not_charging;
 int temp_hysteresis;
  struct ab8500_maxim_parameters *  in50 mV stepjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
 constintab8500_fg_inst_curr_start di;
  * @us Capacity  user must   sab8500_fg *java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 54
 const struct ab8500_fg_parameters   * java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
};

/* Forward declaration */

struct ab8500_fg

externstructab8500_bm_data ab8500_bm_data;

void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA);
struct ab8500_fg *ab8500_fg_get(void);
intab8500_fg_inst_curr_blocking(tructab8500_fg dev;
int ab8500_fg_inst_curr_start(struct ab8500_fg *di);
int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res);
int ab8500_fg_inst_curr_started(struct ab8500_fg *di);
int ab8500_fg_inst_curr_done(struct ab8500_fg *di);
int ab8500_bm_of_probe(struct power_supply *psy,
 );
void ab8500_bm_of_remove(struct power_supply *psy,
    struct ab8500_bm_data *bm)pcut_flag_time

  pcut_max_restart Maxnumber of restarts
extern struct platform_driver ab8500_btemp_driver_btemp_driver;
extern struct platform_driver ab8500_chargalg_driver;

# 

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.