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.
17 /******************************************************************************
19 @detail DR_API external header file<BR>
20 DR_API External public header
21 ******************************************************************************/
22 #ifndef POSITIONING_CLIENT_INCLUDE_DR_API_H_
23 #define POSITIONING_CLIENT_INCLUDE_DR_API_H_
25 /*****************************************************************************
27 *****************************************************************************/
29 /*****************************************************************************
31 *****************************************************************************/
33 #define CID_DR_MAP_MATCHING_DATA (0x0209)
34 #define CID_DR_CLEAR_BACKUP_DATA (0x020F)
36 /* DR_EXT_RET_API definition */
37 #define DR_EXT_RET_NORMAL (0) /* Successful completion */
38 #define DR_EXT_RET_ERROR (-1) /* Setup failure */
40 /*****************************************************************************
42 *****************************************************************************/
43 typedef int32 DR_EXT_RET_API;
45 /*****************************************************************************
47 *****************************************************************************/
49 NAVI_DATA_STATUS_2D_FIX = 0x00,
50 NAVI_DATA_STATUS_3D_FIX,
51 NAVI_DATA_STATUS_DR_COMBINED,
52 NAVI_DATA_STATUS_DR_ONLY,
53 NAVI_DATA_STATUS_MAP_2D_GPS_FIX,
54 NAVI_DATA_STATUS_MAP_3D_GPS_FIX,
55 NAVI_DATA_STATUS_MAP_DR_COMBINED,
56 NAVI_DATA_STATUS_MAP_DR_ONLY,
57 NAVI_DATA_STATUS_MAP_NO_FIX,
58 NAVI_DATA_STATUS_AWAITING_FIRST_FIX,
59 NAVI_DATA_STATUS_DATA_INVALID,
60 NAVI_DATA_STATUS_NO_FIX,
61 NAVI_DATA_STATUS_TIME_ONLY_FIX
65 NAVI_DATA_INVALID = 0x00,
67 } NAVI_DATA_AVAILABLE;
69 /*****************************************************************************
71 *****************************************************************************/
72 /*****************************************************************************
74 * ABSTRACT : Position information structure
76 *****************************************************************************/
78 int32 latitude; /* 10^-7deg North : plus, South : minus */
79 int32 longitude; /* 10^-7deg East : plus, West : minus */
80 NAVI_DATA_AVAILABLE status; /* Status of data */
83 /*****************************************************************************
85 * ABSTRACT : Rate information structure
87 *****************************************************************************/
89 u_int16 rate; /* 10^-2m/sec */
90 u_int8 reserve[2]; /* reserve */
91 NAVI_DATA_AVAILABLE status; /* Status of data */
94 /*****************************************************************************
96 * ABSTRACT : Orient information structure
98 *****************************************************************************/
100 u_int16 orient; /* 10^-2deg N : 0, E : 90, S : 180, W : 270 */
101 u_int8 reserve[2]; /* reserve */
102 NAVI_DATA_AVAILABLE status; /* Status of data */
105 /*****************************************************************************
106 * TAG : MAP_MATCHING_DATA
107 * ABSTRACT : Map-Matching information data structure
109 *****************************************************************************/
111 POSITION_INFO position_info; /* Position information */
112 RATE_INFO rate_info; /* Rate information */
113 ORIENT_INFO orient_info; /* Orient information */
114 NAVI_DATA_STATUS status; /* Status */
117 /*****************************************************************************
118 * TAG : DR_MSG_MAP_MATCHING_DATA
119 * ABSTRACT : Map-Matching information data message buffer structure
120 * NOTE : Message structure(User -> VehicleSens)
121 *****************************************************************************/
123 T_APIMSG_MSGBUF_HEADER hdr; /* Message header */
124 MAP_MATCHING_DATA data; /* Message data (Map-Matching information) */
125 } DR_MSG_MAP_MATCHING_DATA;
127 /*****************************************************************************
128 * TAG : DR_MSG_CLEAR_BACKUP_DATA
129 * ABSTRACT : Clear backup data message buffer structure
130 * NOTE : Message structure(User -> VehicleSens)
131 *****************************************************************************/
133 T_APIMSG_MSGBUF_HEADER hdr; /* Message header */
134 } DR_MSG_CLEAR_BACKUP_DATA;
136 /*****************************************************************************
137 * Function prototypes *
138 *****************************************************************************/
142 extern DR_EXT_RET_API DrSetMapMatchingData(PNO pno, MAP_MATCHING_DATA* map_matching_data);
143 extern DR_EXT_RET_API DrClearBackupData(PNO pno);
148 #endif // POSITIONING_CLIENT_INCLUDE_DR_API_H_