2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 ///////////////////////////////////////////////////////////////////////////////
22 /// \ingroup tag_NSFramework
23 ///////////////////////////////////////////////////////////////////////////////
26 * @file ns_system_mode.h
27 * @brief \~english The file defines enum SystemModeProtocol
30 /** @addtogroup BaseSystem
33 /** @addtogroup native_service
37 /** @addtogroup framework_unified
38 * @ingroup native_service
41 /** @addtogroup native
42 * @ingroup framework_unified
45 #ifndef __NATIVESERVICES_SYSTEM_MODE_H__ // NOLINT (build/header_guard)
46 #define __NATIVESERVICES_SYSTEM_MODE_H__
48 #include <native_service/frameworkunified_types.h>
49 #include <native_service/frameworkunified_service_protocol.h>
51 ////////////////////////////////////////////////////////////////////////////////////////////////
52 /// \ingroup tag_System
53 /// \brief System Mode Protocol
54 ////////////////////////////////////////////////////////////////////////////////////////////////
55 typedef enum _SystemModeProtocol {
56 SYSTEM_ON_INITIALIZATION = PROTOCOL_THREAD_INITIALIZATION, ///< Initialize thread after creation
57 SYSTEM_ON_WAKEUP = PROTOCOL_THREAD_WAKEUP, ///< Wakeup Thread after sleep
58 SYSTEM_ON_SHUTDOWN = PROTOCOL_THREAD_SHUTDOWN, ///< Stop the thread
59 SYSTEM_ON_DESTROY = PROTOCOL_THREAD_DESTROY ///< Destroy the thread
62 #endif /* __NATIVESERVICES_SYSTEM_MODE_H__ */ // NOLINT (build/header_guard)