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.
19 * positioning_common.h
21 * Positioing NSFW Dependency Section Common Headers
23 #ifndef POSITIONING_SERVER_INCLUDE_NSFW_POSITIONING_COMMON_H_
24 #define POSITIONING_SERVER_INCLUDE_NSFW_POSITIONING_COMMON_H_
26 #include <positioning_hal.h>
28 /*---------------------------------------------------------------------------------*
30 *---------------------------------------------------------------------------------*/
31 /* Thread control command ID */
32 #define CID_EXTTERM_REQ (0x0011) /* External pin status request */
34 /* Internal thread activation status determination */
35 #define THREAD_STS_MSK_POS_MAIN (0x01)
36 #define THREAD_STS_MSK_POS_SENS (0x02)
37 #define THREAD_STS_MSK_POS_GPS (0x04)
38 #define THREAD_STS_MSK_POS_GPS_RECV (0x08)
39 #define THREAD_STS_MSK_POS_GPS_ROLLOVER (0x10)
42 /*---------------------------------------------------------------------------------*
44 *---------------------------------------------------------------------------------*/
46 @brief Positioning operating status definitions
49 EPOS_EXE_STS_STOP = 0, /* Stopped */
50 EPOS_EXE_STS_RUNNING, /* Running (From FrameworkunifiedOnStart to FrameworkunifiedOnStop) */
51 EPOS_EXE_STS_RUNNING_COLDSTART /* Running after cold start */
55 @brief Positioning Thread Startup Modes
58 EPOS_SETUP_MODE_NORMAL = 0, /* Normal start */
59 EPOS_SETUP_MODE_DATA_RESET /* Data reset start */ /* QAC 930 */
62 /*---------------------------------------------------------------------------------*
64 *---------------------------------------------------------------------------------*/
66 @brief Thread activation information
69 EnumSetupMode_POS e_mode; /* Thread activation mode */
70 } ST_THREAD_SETUP_INFO;
72 /*---------------------------------------------------------------------------------*
74 *---------------------------------------------------------------------------------*/
78 EnumSetupMode_POS PosSetupThread(HANDLE h_app, EnumTID_POS e_tid);
79 void PosTeardownThread(EnumTID_POS e_tid);
84 /*---------------------------------------------------------------------------------*
86 *---------------------------------------------------------------------------------*/
87 extern BOOL g_thread_stop_req; /* Pos_Gps_Recv Thread Stop Flag */
90 #endif // POSITIONING_SERVER_INCLUDE_NSFW_POSITIONING_COMMON_H_