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 * @file VP_FuncCheck_CanRcv_private.h
20 * @brief Get function existence API internal header file
21 * @attention Cannot be included from external functions
23 * Exported because it will be inconvenient at MT
25 /* ====================================================================== */
27 #ifndef VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_VP_FUNCCHECK_CANRCV_PRIVATE_H_
28 #define VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_VP_FUNCCHECK_CANRCV_PRIVATE_H_
30 /* ====================================================================== */
31 /* Include public headers */
32 /* ====================================================================== */
33 #include <other_service/VP_FuncCheck_CanRcv.h>
35 /* ====================================================================== */
36 /* Internal definitions for debugging */
37 /* ====================================================================== */
41 #define MT_STATIC /**< Static definitions - Remove the static in order to remove the file scope at MT. */
43 /**< Debugging output function - Compile the entity at MT */
44 #define DEBUG_PRINT(msg) {printf("%s\n", (msg) ) ;}
45 /**< Debugging output function - Compile the entity at MT */
46 #define DEBUG_PRINTF(format, msg) {printf((format), (msg) ) ;}
48 /**< Static assertion */
49 #define VP_DEBUG_STATIC_ASSERT(expr) do { int static_assert[ (expr)? 1:-1 ]; }while(0);
51 /**< Static definitions. The scope shall be limited by static at the time of releasing.
52 * Remove the static in order to remove the file scope at MT.
54 #define MT_STATIC static
56 /**< Static definitions. The scope shall be limited by static at the time of releasing.
57 * Remove the static in order to remove the file scope at MT.
59 #define DEBUG_PRINT(msg)
61 /**< Static definitions. The scope shall be limited by static at the time of releasing.
62 * Remove the static in order to remove the file scope at MT.
64 #define DEBUG_PRINTF(format, msg)
66 /**< Static definitions. The scope shall be limited by static at the time of releasing.
67 * Remove the static in order to remove the file scope at MT.
69 #define VP_DEBUG_STATIC_ASSERT(expr)
72 /* ====================================================================== */
73 /* General-purpose type definition - Redifined for internal use */
74 /* ====================================================================== */
75 /**< Internal boolean type - sys/type.h has no type definitions, so defined it here. FCCR: "F"unc"C"heck_"C"an"R"cv */
76 typedef enum VP_FCCR_BOOL_Tag {
77 B_FALSE, /**< FALSE */
82 /* ====================================================================== */
84 /* ====================================================================== */
85 typedef struct TABLE_INDEX_INFO_tag {
86 char* code_str; /**< String that can be gotten from vehicle parameters */
87 unsigned int index; /**< Index for function existence */
90 #endif // VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_VP_FUNCCHECK_CANRCV_PRIVATE_H_