4 * Copyright (c) 2019 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef __BD_PRIVATE_H__
21 #define __BD_PRIVATE_H__
30 /* Battery Dump db structures */
31 typedef struct _gbl_ble_stat_s {
33 long int ble_idle_time;
39 typedef struct _gbl_wifi_stat_s {
41 long int wifi_on_time;
42 long int wifi_conn_time;
43 long int wifi_idle_time;
44 long int wifi_rx_time;
45 long int wifi_tx_time;
46 long int wifi_pwi_val;
49 typedef struct _gbl_ntw_stat_s {
63 typedef struct _gbl_sbr_stat_s {
66 long int dim; // All are time values
68 long int light; //DEF: 0
72 typedef struct _gbl_sig_stat_s {
82 typedef struct _gbl_wst_stat_s {
92 typedef struct _gbl_bst_stat_s {
100 typedef struct _gbl_cpu_stat_s {
107 typedef struct _unt_ntw_stat_s {
112 long int wifi_rx_byt;
113 long int wifi_tx_byt;
120 /* Battery Dump db enumerations */
122 BD_GBLESTAT_NONE = -1,
127 } BD_GBLESTAT_DB_IDX;
130 BD_GWFLSTAT_NONE = -1,
137 } BD_GWFLSTAT_DB_IDX;
140 BD_GNTWSTAT_NONE = -1,
143 BD_GNTWSTAT_WIFI_RXB,
144 BD_GNTWSTAT_WIFI_TXB,
147 BD_GNTWSTAT_WIFI_RXP,
148 BD_GNTWSTAT_WIFI_TXP,
151 } BD_GNTWSTAT_DB_IDX;
154 BD_GSBRSTAT_NONE = -1,
160 } BD_GSBRSTAT_DB_IDX;
163 BD_GSGTSTAT_NONE = -1,
170 } BD_GSGTSTAT_DB_IDX;
173 BD_GBSTSTAT_NONE = -1,
178 } BD_GBSTSTAT_DB_IDX;
181 BD_GCPUSTAT_NONE = -1,
184 } BD_GCPUSTAT_DB_IDX;
188 BD_UNTWSTAT_NONE = -1,
192 BD_UNTWSTAT_WIFI_RXB,
193 BD_UNTWSTAT_WIFI_TXB,
195 } BD_UNTWSTAT_DB_IDX;
198 /* Battery Specific Enumeration */
207 } BD_BSTA_IDX; //B Status
219 } BD_BHLT_IDX;//B Health
227 } BD_BPLT_IDX;//B PlugT
233 #endif /* __BD_PRIVATE_H__*/