Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / otherservice / rpc_library / library / include / other_service / rpc_id.h
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 /**
18  * @file rpc_id.h
19  * @brief \~english   RPC library -- RPC_ID(port no) define
20  */
21 /** @addtogroup BaseSystem
22  *  @{
23  */
24 /** @addtogroup other_service
25  *  @ingroup BaseSystem
26  *  @{
27  */
28 /** @addtogroup rpc_library
29  *  @ingroup other_service
30  *  @{
31  */
32
33 /** @brief \~english define the RPC_ID used by program
34  *  like #define XXX_RPC_ID ID
35  *  but RPC_START_CLIENT() is not necessary
36  *
37  * RPC_ID as the following
38  * - UI Application       : 50xxx
39  * - Application Service  : 51xxx
40  *   + HMI                : 511xx
41  *   + AV                 : 512xx
42  *   + Radio              : 513xx
43  *   + Connectivity       : 514xx
44  *   + Navigation/Location: 515xx
45  *   + Vehicle            : 516xx
46  *   + Communication      : 517xx
47  *   + BasePF             : 518xx
48  *   + System             : 519xx
49  *   + Others             : 510xx
50  * - Common Service       : 53xxx
51  * - Extension Service    : 55xxx
52  * - System/Device Driver : 56xxx
53  *
54  * - 49152~59999 are Reserved.
55  * @note  \~english RPC_ID==port num ,
56  *        when not call from RPClibrary, and not well-known(~1023)/registered(1024~49151)
57  *        use the fixed port num to IP communicate, use 6xxxx port number.
58  * @note  \~english when RPC_START_CLIENT,and distribute automatically.
59  *        use the linux kernel port distribute function
60  *        1024~4999 as the port num unused.
61  */
62
63 #ifndef OTHERSERVICE_RPCID_H_  // NOLINT(build/header_guard)
64 #define OTHERSERVICE_RPCID_H_  // NOLINT(build/header_guard)
65
66
67 #define test_RPC_ID             49999
68 ///< \~english sample(ID is used by RPClibrary test program)
69
70 /* UI Aapplication      : 50xxx */
71
72 /* Application Service  : 51xxx */
73 #define MODEMANAGER_RPC_ID      51100  /* ModeManager */
74 #define ACTIVITYMANAGER_RPC_ID  51101  /* ActivityManager */
75
76 /* Common Service       : 53xxx */
77 #define TIMERENTRYDRV_RPC_ID    53000  /* TimerEntryDrv */
78 #define TSKM_RPC_ID             53001  /* TaskManager */
79 #define MSGBRK_RPC_ID           53002  /* MessageBroker */
80 #define IPMANAGER_RPC_ID        53003  /* IPManager */
81 #define IPMANAGER_RPC_ID        53003  /* IPManager */
82 #define DEVICEMANAGER_RPC_ID    53004  /* DeviceManager */
83 #define CAN_RPC_ID              53005  /* Communication(CAN) */
84 #define _CWORD83__RPC_ID        53006  /* Communication(_CWORD83_) */
85 #define SENSOR_RPC_ID           53007  /* Vehicle(Sensor) */
86 #define GPS_RPC_ID              53008  /* Vehicle(GPS) */
87 #define RESMGR_RPC_ID           53009  /* ResourceManager */
88 #define GRAPHICS_RPC_ID         53010  /* Graphic */
89
90 /* Extension Service    : 55xxx */
91
92 /* System/Device Driver : 56xxx */
93 /** @}*/  // end of rpc_library
94 /** @}*/  // end of other_service
95 /** @}*/  // end of BaseSystem
96 #endif  // OTHERSERVICE_RPCID_H_