95d90475f539414b99ed8654782fd9b297fcb717
[staging/basesystem.git] / video_in_hal / stub / diag_code / library / src / DiagCodeAPI.cpp
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 /*
17  * Information.
18  * This source code is a sample source code .
19  * Implementation of the function must be performed by the vendor.
20  */
21
22 #include <DiagCodeAPI.h>
23
24 DGCODE_RET_API Diag_SubscribeAvailability(HANDLE hApp, uint8_t availabilityId) {
25   /*
26    *  Note.
27    *  This feature needs to be implemented by the vendor.
28    */
29     return DGCODE_RET_NORMAL;
30 }
31
32 DGCODE_RET_API Diag_NotifyAvailability(uint8_t availabilityId, BOOL bAvailability) {
33   /*
34    *  Note.
35    *  This feature needs to be implemented by the vendor.
36    */
37     return DGCODE_RET_NORMAL;
38 }
39
40 DGCODE_RET_API Diag_PutDiagCode(HANDLE hApp, uint64_t err_id, uint16_t diagcode_code) {
41   /*
42    *  Note.
43    *  This feature needs to be implemented by the vendor.
44    */
45     return DGCODE_RET_NORMAL;
46 }
47
48 DGCODE_RET_API Diag_DeleteDiagCode(HANDLE hApp, uint64_t err_id, uint16_t diagcode_code) {
49   /*
50    *  Note.
51    *  This feature needs to be implemented by the vendor.
52    */
53     return DGCODE_RET_NORMAL;
54 }
55
56 DGCODE_RET_API Diag_PutDiagCode_Custom(HANDLE hApp, DGCODE_MEMINFO_CUSTOM* err_info) {
57   /*
58    *  Note.
59    *  This feature needs to be implemented by the vendor.
60    */
61     return DGCODE_RET_NORMAL;
62 }
63
64 DGCODE_RET_API Diag_PutDTCInfo(const HANDLE hApp, const uint64_t dtc_id, const uint8_t test_result,
65                                const DGCODE_DTC_SSR_INFO &ssr_info,
66                                const uint16_t spply_code) {
67   /*
68    *  Note.
69    *  This feature needs to be implemented by the vendor.
70    */
71   return DGCODE_RET_NORMAL;
72 }
73
74 DGCODE_RET_API Diag_PutRoBInfo(const HANDLE hApp, const uint64_t rob_id, const DGCODE_ROB_SSR_INFO* ssr_info) {
75   /*
76    *  Note.
77    *  This feature needs to be implemented by the vendor.
78    */
79   return DGCODE_RET_NORMAL;
80 }
81
82 DGCODE_RET_API Diag_DeleteDTCInfo(const HANDLE hApp, const uint64_t err_id) {
83   /*
84    *  Note.
85    *  This feature needs to be implemented by the vendor.
86    */
87   return DGCODE_RET_NORMAL;
88 }
89
90 DGCODE_RET_API Diag_DeleteRoBInfo(const HANDLE hApp, const uint64_t rob_id) {
91   /*
92    *  Note.
93    *  This feature needs to be implemented by the vendor.
94    */
95   return DGCODE_RET_NORMAL;
96 }
97
98 DGCODE_RET_API Diag_GetDTCInfoList_CWORD29_(const DGCODE_GET_DTC_LIST_INFO* const get_info,
99                                    DGCODE_DTC_LIST_INFO* const list_info) {
100   /*
101    *  Note.
102    *  This feature needs to be implemented by the vendor.
103    */
104   return DGCODE_RET_NORMAL;
105 }
106
107 DGCODE_RET_API Diag_GetRoBInfoList(const DGCODE_GET_ROB_LIST_INFO* const get_info,
108                                    DGCODE_ROB_LIST_INFO* const list_info) {
109   /*
110    *  Note.
111    *  This feature needs to be implemented by the vendor.
112    */
113   return DGCODE_RET_NORMAL;
114 }
115
116 DGCODE_RET_API Diag_DeleteDTCInfoList(const DGCODE_DELETE_DTC_INFO* const del_info) {
117   /*
118    *  Note.
119    *  This feature needs to be implemented by the vendor.
120    */
121   return DGCODE_RET_NORMAL;
122 }
123
124 DGCODE_RET_API Diag_DeleteRoBInfoList(const DGCODE_DELETE_ROB_INFO* const del_info) {
125   /*
126    *  Note.
127    *  This feature needs to be implemented by the vendor.
128    */
129   return DGCODE_RET_NORMAL;
130 }
131
132 DGCODE_RET_API Diag_InitDiagCode(HANDLE hApp, uint8_t start_kind, CbFuncPtr fpOnCmd) {
133   /*
134    *  Note.
135    *  This feature needs to be implemented by the vendor.
136    */
137     return DGCODE_RET_NORMAL;
138 }
139
140 DGCODE_RET_API Diag_SetDiagCodeMask(uint8_t onoff) {
141   /*
142    *  Note.
143    *  This feature needs to be implemented by the vendor.
144    */
145     return DGCODE_RET_NORMAL;
146 }
147
148 DGCODE_RET_API Diag_SyncTimeStamp(uint32_t time_cnt, uint16_t trip_cnt) {
149   /*
150    *  Note.
151    *  This feature needs to be implemented by the vendor.
152    */
153     return DGCODE_RET_NORMAL;
154 }
155
156 DGCODE_RET_API Diag_SyncDcmTime(const DGCODE_SSR_INFO_TIME_INFO * const hour_info) {
157   /*
158    *  Note.
159    *  This feature needs to be implemented by the vendor.
160    */
161     return DGCODE_RET_NORMAL;
162 }
163
164 DGCODE_RET_API Diag_SyncOdometer(const uint32_t mileage, const uint8_t unit) {
165   /*
166    *  Note.
167    *  This feature needs to be implemented by the vendor.
168    */
169     return DGCODE_RET_NORMAL;
170 }
171
172 DGCODE_RET_API Diag_InhibitPutDiagCode(void) {
173   /*
174    *  Note.
175    *  This feature needs to be implemented by the vendor.
176    */
177     return DGCODE_RET_NORMAL;
178 }
179
180 DGCODE_RET_API Diag_GetDIDList(const uint64_t code, DGCODE_DID_LIST* const list) {
181   /*
182    *  Note.
183    *  This feature needs to be implemented by the vendor.
184    */
185     return DGCODE_RET_NORMAL;
186 }
187
188 DGCODE_RET_API Diag_StartupAllStatusOfDTC(void) {
189   /*
190    *  Note.
191    *  This feature needs to be implemented by the vendor.
192    */
193     return DGCODE_RET_NORMAL;
194 }
195
196 DGCODE_RET_API Diag_ClearAllStatusOfDTC(void) {
197   /*
198    *  Note.
199    *  This feature needs to be implemented by the vendor.
200    */
201     return DGCODE_RET_NORMAL;
202 }