1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef THERMAL_LEVEL_INFO_H 17 #define THERMAL_LEVEL_INFO_H 18 19 #include <string> 20 21 namespace OHOS { 22 namespace PowerMgr { 23 enum class ThermalLevel : int32_t { 24 /** 25 * @brief cool level 26 * 27 */ 28 COOL, 29 /** 30 * @brief NORMAL level 31 * 32 */ 33 NORMAL, 34 /** 35 * @brief warm level 36 * 37 */ 38 WARM, 39 /** 40 * @brief hot level 41 * 42 */ 43 HOT, 44 /** 45 * @brief overheated level 46 * 47 */ 48 OVERHEATED, 49 /** 50 * @brief warning level 51 * 52 */ 53 WARNING, 54 /** 55 * @brief emergency level, it will make device shutdown 56 * 57 */ 58 EMERGENCY, 59 }; 60 61 enum class ThermalCommonEventCode : uint32_t { 62 /** 63 * @brief The thermal level changed common event code. 64 */ 65 CODE_THERMAL_LEVEL_CHANGED = 0 66 }; 67 } // PowerMgr 68 } // OHOS 69 70 #endif // THERMAL_LEVEL_INFO_H