1f16e0440Sopenharmony_ci/* 2f16e0440Sopenharmony_ci * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 3f16e0440Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4f16e0440Sopenharmony_ci * you may not use this file except in compliance with the License. 5f16e0440Sopenharmony_ci * You may obtain a copy of the License at 6f16e0440Sopenharmony_ci * 7f16e0440Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8f16e0440Sopenharmony_ci * 9f16e0440Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10f16e0440Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11f16e0440Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12f16e0440Sopenharmony_ci * See the License for the specific language governing permissions and 13f16e0440Sopenharmony_ci * limitations under the License. 14f16e0440Sopenharmony_ci */ 15f16e0440Sopenharmony_ci 16f16e0440Sopenharmony_ci#ifndef BATTERYD_API_H 17f16e0440Sopenharmony_ci#define BATTERYD_API_H 18f16e0440Sopenharmony_ci 19f16e0440Sopenharmony_ci#include <string> 20f16e0440Sopenharmony_ci 21f16e0440Sopenharmony_ci// Keep it same as the inner kit battery_info.h 22f16e0440Sopenharmony_cistruct BatterydInfo { 23f16e0440Sopenharmony_ci int32_t capacity_; 24f16e0440Sopenharmony_ci int32_t voltage_; 25f16e0440Sopenharmony_ci int32_t temperature_; 26f16e0440Sopenharmony_ci int32_t healthState_; 27f16e0440Sopenharmony_ci int32_t pluggedType_; 28f16e0440Sopenharmony_ci int32_t pluggedMaxCurrent_; 29f16e0440Sopenharmony_ci int32_t pluggedMaxVoltage_; 30f16e0440Sopenharmony_ci int32_t chargeState_; 31f16e0440Sopenharmony_ci int32_t chargeCounter_; 32f16e0440Sopenharmony_ci int32_t totalEnergy_; 33f16e0440Sopenharmony_ci int32_t curAverage_; 34f16e0440Sopenharmony_ci int32_t curNow_; 35f16e0440Sopenharmony_ci int32_t remainEnergy_; 36f16e0440Sopenharmony_ci int8_t present_; 37f16e0440Sopenharmony_ci std::string technology_; 38f16e0440Sopenharmony_ci std::string uevent_; 39f16e0440Sopenharmony_ci}; 40f16e0440Sopenharmony_ci 41f16e0440Sopenharmony_ci#endif // BATTERYD_API_H 42