1 /* 2 * Copyright (c) 2020 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 /** 17 * @addtogroup power 18 * @{ 19 * 20 * @brief Provides device power management functions. 21 * 22 * This module is used to reboot the device and set low power consumption for the device. \n 23 * 24 * @since 2.2 25 * @version 2.2 26 */ 27 28 /** 29 * @file reset.h 30 * 31 * @brief Reboots the device. 32 * 33 * 34 * 35 * @since 2.2 36 * @version 2.2 37 */ 38 39 #ifndef RESET_H 40 #define RESET_H 41 42 /** 43 * @brief Reboots the device using different causes. 44 * 45 * 46 * 47 * @param cause Indicates the reboot cause. 48 * @since 2.2 49 * @version 2.2 50 */ 51 void RebootDevice(unsigned int cause); 52 53 #endif // RESET_H 54 /** @} */ 55