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.
16 #ifndef POSITIONING_CLIENT_INCLUDE_COMMONDEFINE_H_
17 #define POSITIONING_CLIENT_INCLUDE_COMMONDEFINE_H_
20 * @file CommonDefine.h
23 /** @addtogroup vehicle_service
26 /** @addtogroup positioning
27 * @ingroup vehicle_service
31 /*---------------------------------------------------------------------------------*
33 *---------------------------------------------------------------------------------*/
34 #include <vehicle_service/POS_sensor_API.h>
35 #include <vehicle_service/POS_define.h>
36 #include <vehicle_service/pos_message_header.h>
38 /*---------------------------------------------------------------------------------*
40 *---------------------------------------------------------------------------------*/
41 /* Date and Time Status Definition */
42 #define NAVIINFO_NAVI_GPS_TD_STS_NOTFIX (0)
43 //!< \~english time has not been adjusted after GPS receiver reset
44 #define NAVIINFO_NAVI_GPS_TD_STS_RTCBACKUP (1) // !<\~english time output from RTC Backup(have time adjustment)
45 #define NAVIINFO_NAVI_GPS_TD_STS_FIX (2) //!< \~english time adjustment completed
47 /* Vehicle sensor data information */
48 #define POS_SNS_CONNECTION (0x01U) //!< \~english connected
49 #define POS_SNS_UNCONNECTION (0x00U) //!< \~english not connected
50 #define POS_SNS_SHORT (0x02U) //!< \~english short
51 #define POS_SNS_UNSPECIFIED (0x03U) //!< \~english not specified
53 /* NMEA Receive Flag(_CWORD82_) */
54 #define POS_SNS__CWORD82__DRMC (0x01U) //!< \~english DRMC sentence
55 #define POS_SNS__CWORD82__GSA (0x02U) //!< \~english GSA sentence
56 #define POS_SNS__CWORD82__GSV_1 (0x04U) //!< \~english GSV_1 sentence
57 #define POS_SNS__CWORD82__GSV_2 (0x08U) //!< \~english GSV_2 sentence
58 #define POS_SNS__CWORD82__GSV_3 (0x10U) //!< \~english GSV_3 sentence
59 #define POS_SNS__CWORD82__PJRDC_GP_3 (0x20U) //!< \~english PJRDC_GP_3 sentence
61 /* NMEA Receive Flag */
62 #define POS_SNS_GPS_NMEA_PASCD (0x01000000U) //!< \~english pascd sentence
64 typedef u_int16 PNO; //!< \~english PNo.
66 /*---------------------------------------------------------------------------------*
67 * Struct declaration *
68 *---------------------------------------------------------------------------------*/
70 /** @}*/ // end of positioning
71 /** @}*/ // end of vehicle_service
72 #endif // POSITIONING_CLIENT_INCLUDE_COMMONDEFINE_H_