summaryrefslogtreecommitdiffstats
path: root/otherservice/vehicle_parameter_library/library/include/other_service/VP_FuncCheck_CanRcv.h
blob: 17b450369e0f6a6c57d127a222d41ddcc3141054 (plain)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
 * @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 VP_FuncCheck_CanRcv.h
 * @brief \~english Get function existence API header file
 */
/* ====================================================================== */

#ifndef VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_OTHER_SERVICE_VP_FUNCCHECK_CANRCV_H_
#define VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_OTHER_SERVICE_VP_FUNCCHECK_CANRCV_H_

#include <sys/types.h>

/** @addtogroup BaseSystem
 *  @{
 */
/** @addtogroup other_service
 *  @ingroup BaseSystem
 *  @{
 */
/** @addtogroup vehicle_parameter_library
 *  @ingroup other_service
 *  @{
 */

// typedef unsigned char u_int8;


/**
* @~english  XM Audio
*/
#define XM_AUDIO                        ((u_int8_t)1)
/**
* @~english  _CWORD76_
*/
#define _CWORD76_                       ((u_int8_t)2)

#define VP_CANRCV__CWORD27_             ((u_int8_t)3)                           /**< _CWORD27_                   */
/**
* @~english  WiFi HotSpot
*/
#define WIFI_HOTSPOT                    ((u_int8_t)4)
/**
* @~english standard driving rregulation of AREA1
*/
#define AREA1_STD_TRAF_LIMIT            ((u_int8_t)5)
/**
* @~english HD Data (Include traffic)
*/
#define HD_DATA                         ((u_int8_t)6)
/**
* @~english WiFi 5G
*/
#define WIFI_5G                         ((u_int8_t)7)

/**
* @~english definiton of return value of API(VP_FuncCheck_CanRcv),which is used to get status of function implemention
*/
#define FUNCTION_CHECK_RESULT_OK        ((u_int8_t)0)
/**
* @~english   this function is invalid
*/
#define FUNCTION_CHECK_RESULT_NG        ((u_int8_t)1)
/**
* @~english this function does not exist
*/
#define FUNCTION_CHECK_RESULT_UNKNOWN   ((u_int8_t)2)
/**
* @~english reference out of AREA1
*/
#define FUNCTION_CHECK_RESULT_OUT_OF_AREA1 ((u_int8_t)3)

/* Function prototype declaration */
#ifdef __cplusplus
extern "C" {
#endif

////////////////////////////////////////////////////////////////////////////////
/// \ingroup VP_FuncCheck_CanRcv
/// \~english @par Brief
///         VP_FuncCheck_CanRcv
/// \~english @param [in] FunctionName
///         function name
/// \~english @retval FUNCTION_CHECK_RESULT_OK: This function is available
/// \~english @retval FUNCTION_CHECK_RESULT_NG: This function is unavailable
/// \~english @retval FUNCTION_CHECK_RESULT_UNKNOWN: This function does not exist
/// \~english @retval FUNCTION_CHECK_RESULT_OUT_OF_AREA1: reference out of Area1
/// \~english @par Prerequisite
///         None
/// \~english @par Change of internal state
///         None
/// \~english @par Conditions of processing failure
///         None
/// \~english @par Classification
///         Public
/// \~english @par Type
///         Sync Only
/// \~english @par Detail
///         - To get the function check result from
///            - vehicle parameter:CAN info judge
///            - vehicle parameter:country ID
///            - country ID and function judge info in API
///         - When vehicle parameter:CAN info judge
///           is [CAN_judge] or [country_ID],
///           and if country_ID is unacquainted or undefined, the API returns [available].
/// \~english @see None
////////////////////////////////////////////////////////////////////////////////
u_int8_t VP_FuncCheck_CanRcv(u_int8_t FunctionName);

#ifdef __cplusplus
}
#endif

/** @}*/  // end of vehicle_parameter_library
/** @}*/  // end of other_service
/** @}*/  // end of BaseSystem

#endif  // VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_OTHER_SERVICE_VP_FUNCCHECK_CANRCV_H_