1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
/*
* @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*****************************************************************************
* @file DIAG_API_DCCC.h
* @brief Diagcode feature API defined
*****************************************************************************/
/*****************************************************************************
* *********************************
* * Diagcode feature API defined *
* *********************************
*
* ** Creation and release considerations **
* -Because DiagCode API depends on product specifications, it is created at the product level.
*
* -Submit and request the created headers and dummy Lib(empty functions defined only for I/F)
* from DiagService to BaseSystem and build them from BaseSystem.
*
* -The century Lib created(not dummy Lib) is built from DiagService.
*
* ->Since this API is also used in BaseSystem,
* the API must be inserted from the BaseSystem built to avoid errors in JointBuild.
*
* ** Notes on change **
* -When modifying a header without cahnging the I/F,
* only the header should be submitted to the BaseSystem and requested.
*
* -Submit header and source code for dummy Lib when the header is modified due to an I/F change.
*
* -When the legitimate Lib is changed without changing headers and I/F,
* no need to submit or request to BaseSystem.
*
*****************************************************************************/
#ifndef DIAG_CODE_LIBRARY_DUMMY_DCCC_INCLUDE_VEHICLE_SERVICE_DIAG_API_DCCC_H_
#define DIAG_CODE_LIBRARY_DUMMY_DCCC_INCLUDE_VEHICLE_SERVICE_DIAG_API_DCCC_H_
#include <native_service/frameworkunified_framework_if.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#define NTFY_DiagService_Availability_DCCC ("DiagService/Availability")
/***********************************************************
Enumerated type
***********************************************************/
/*! @brief Return value for DiagCode re-checking and clearing feature APIs */
typedef enum {
RET_DIAG_API_DCCC_NORMAL = 0, //!<Success
RET_DIAG_API_DCCC_ERROR //!<Error
} RET_DIAG_API_DCCC;
/***********************************************************
Constant
***********************************************************/
// Common
/*! @brief message ID */
#define MSGID_DIAG_API_DCCC_DELIVERY_ENTRY (0xFF000001) // Delivery registration notice
#define MSGID_DIAG_API_DCCC_SND_RECHECK (0xFF000002) // Re-assay instruction
#define MSGID_DIAG_API_DCCC_RET_RECHECK (0xFF000003) // Re-assay completion notice
#define MSGID_DIAG_API_DCCC_SND_DIAGCODECLR (0xFF000004) // Diag deletion instruction
#define MSGID_DIAG_API_DCCC_RET_DIAGCODECLR (0xFF000005) // Daig deletion completion notice
/*! @brief Delivery features */
#define DIAG_API_DCCC_DELIVERY_RECHECK (0x00000001) // Recheck
#define DIAG_API_DCCC_DELIVERY_DIAGCODECLR (0x00000002) // Diag delete
#define DIAG_API_DCCC_DELIVERY_ALL (0xFFFFFFFF) // All function
/*! @brief Result of re-assay execution */
#define DIAG_API_DCCC_RET_RECHECK_SUCCESS (0x00000000) // Recheck successed
#define DIAG_API_DCCC_RET_RECHECK_ERROR (0x00000001) // Recheck failed
/*! @brief Diag deletion result */
#define DIAG_API_DCCC_RET_DIAGCODECLR_SUCCESS (0x00000000) // Diag deleion successed
#define DIAG_API_DCCC_RET_DIAGCODECLR_ERROR (0x00000001) // Diag deleion failed
/***********************************************************
API
***********************************************************/
extern RET_DIAG_API_DCCC DIAG_API_DCCC_DeliveryEntry(HANDLE hApp, PCSTR notifyName, u_int32_t delivery);
extern RET_DIAG_API_DCCC DIAG_API_DCCC_SND_ReCheck(HANDLE hApp, PCSTR notifyName);
extern RET_DIAG_API_DCCC DIAG_API_DCCC_RET_ReCheck(HANDLE hApp, PCSTR notifyName, u_int32_t status);
extern RET_DIAG_API_DCCC DIAG_API_DCCC_SND_DiagCodeCLR(HANDLE hApp, PCSTR notifyName);
extern RET_DIAG_API_DCCC DIAG_API_DCCC_RET_DiagCodeCLR(HANDLE hApp, PCSTR notifyName, u_int32_t status);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // DIAG_CODE_LIBRARY_DUMMY_DCCC_INCLUDE_VEHICLE_SERVICE_DIAG_API_DCCC_H_
|