1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef WATCHDOG_TEST_H 10 #define WATCHDOG_TEST_H 11 12 #include "platform_if.h" 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 enum WatchdogTestCmd { 19 WATCHDOG_TEST_SET_GET_TIMEOUT = 0, 20 WATCHDOG_TEST_START_STOP, 21 WATCHDOG_TEST_FEED, 22 WATCHDOG_TEST_RELIABILITY, 23 WATCHDOG_TEST_BARK, 24 WATCHDOG_IF_PERFORMANCE_TEST, 25 WATCHDOG_TEST_MAX, 26 }; 27 28 struct WatchdogTestConfig { 29 int16_t id; 30 uint32_t timeoutSet; 31 uint32_t feedTime; 32 }; 33 34 struct WatchdogTester { 35 struct WatchdogTestConfig config; 36 DevHandle handle; 37 }; 38 39 int32_t WatchdogTestExecute(int cmd); 40 41 #ifdef __cplusplus 42 } 43 #endif 44 45 #endif /* WATCHDOG_TEST_H */ 46