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.
18 * This source code is a sample source code .
19 * Implementation of the function must be performed by the vendor.
22 #include <DiagCodeAPI.h>
24 DGCODE_RET_API Diag_SubscribeAvailability(HANDLE hApp, uint8_t availabilityId) {
27 * This feature needs to be implemented by the vendor.
29 return DGCODE_RET_NORMAL;
32 DGCODE_RET_API Diag_NotifyAvailability(uint8_t availabilityId, BOOL bAvailability) {
35 * This feature needs to be implemented by the vendor.
37 return DGCODE_RET_NORMAL;
40 DGCODE_RET_API Diag_PutDiagCode(HANDLE hApp, uint64_t err_id, uint16_t diagcode_code) {
43 * This feature needs to be implemented by the vendor.
45 return DGCODE_RET_NORMAL;
48 DGCODE_RET_API Diag_DeleteDiagCode(HANDLE hApp, uint64_t err_id, uint16_t diagcode_code) {
51 * This feature needs to be implemented by the vendor.
53 return DGCODE_RET_NORMAL;
56 DGCODE_RET_API Diag_PutDiagCode_Custom(HANDLE hApp, DGCODE_MEMINFO_CUSTOM* err_info) {
59 * This feature needs to be implemented by the vendor.
61 return DGCODE_RET_NORMAL;
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) {
69 * This feature needs to be implemented by the vendor.
71 return DGCODE_RET_NORMAL;
74 DGCODE_RET_API Diag_PutRoBInfo(const HANDLE hApp, const uint64_t rob_id, const DGCODE_ROB_SSR_INFO* ssr_info) {
77 * This feature needs to be implemented by the vendor.
79 return DGCODE_RET_NORMAL;
82 DGCODE_RET_API Diag_DeleteDTCInfo(const HANDLE hApp, const uint64_t err_id) {
85 * This feature needs to be implemented by the vendor.
87 return DGCODE_RET_NORMAL;
90 DGCODE_RET_API Diag_DeleteRoBInfo(const HANDLE hApp, const uint64_t rob_id) {
93 * This feature needs to be implemented by the vendor.
95 return DGCODE_RET_NORMAL;
98 DGCODE_RET_API Diag_GetDTCInfoList_CWORD29_(const DGCODE_GET_DTC_LIST_INFO* const get_info,
99 DGCODE_DTC_LIST_INFO* const list_info) {
102 * This feature needs to be implemented by the vendor.
104 return DGCODE_RET_NORMAL;
107 DGCODE_RET_API Diag_GetRoBInfoList(const DGCODE_GET_ROB_LIST_INFO* const get_info,
108 DGCODE_ROB_LIST_INFO* const list_info) {
111 * This feature needs to be implemented by the vendor.
113 return DGCODE_RET_NORMAL;
116 DGCODE_RET_API Diag_DeleteDTCInfoList(const DGCODE_DELETE_DTC_INFO* const del_info) {
119 * This feature needs to be implemented by the vendor.
121 return DGCODE_RET_NORMAL;
124 DGCODE_RET_API Diag_DeleteRoBInfoList(const DGCODE_DELETE_ROB_INFO* const del_info) {
127 * This feature needs to be implemented by the vendor.
129 return DGCODE_RET_NORMAL;
132 DGCODE_RET_API Diag_InitDiagCode(HANDLE hApp, uint8_t start_kind, CbFuncPtr fpOnCmd) {
135 * This feature needs to be implemented by the vendor.
137 return DGCODE_RET_NORMAL;
140 DGCODE_RET_API Diag_SetDiagCodeMask(uint8_t onoff) {
143 * This feature needs to be implemented by the vendor.
145 return DGCODE_RET_NORMAL;
148 DGCODE_RET_API Diag_SyncTimeStamp(uint32_t time_cnt, uint16_t trip_cnt) {
151 * This feature needs to be implemented by the vendor.
153 return DGCODE_RET_NORMAL;
156 DGCODE_RET_API Diag_SyncDcmTime(const DGCODE_SSR_INFO_TIME_INFO * const hour_info) {
159 * This feature needs to be implemented by the vendor.
161 return DGCODE_RET_NORMAL;
164 DGCODE_RET_API Diag_SyncOdometer(const uint32_t mileage, const uint8_t unit) {
167 * This feature needs to be implemented by the vendor.
169 return DGCODE_RET_NORMAL;
172 DGCODE_RET_API Diag_InhibitPutDiagCode(void) {
175 * This feature needs to be implemented by the vendor.
177 return DGCODE_RET_NORMAL;
180 DGCODE_RET_API Diag_GetDIDList(const uint64_t code, DGCODE_DID_LIST* const list) {
183 * This feature needs to be implemented by the vendor.
185 return DGCODE_RET_NORMAL;
188 DGCODE_RET_API Diag_StartupAllStatusOfDTC(void) {
191 * This feature needs to be implemented by the vendor.
193 return DGCODE_RET_NORMAL;
196 DGCODE_RET_API Diag_ClearAllStatusOfDTC(void) {
199 * This feature needs to be implemented by the vendor.
201 return DGCODE_RET_NORMAL;