Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / positioning_hal / inc / Common / positioning_common.h
1 /*
2  * @copyright Copyright (c) 2017-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 * @file positioning_common.h
18 */
19
20 #ifndef INC_COMMON_POSITIONING_COMMON_H_
21 #define INC_COMMON_POSITIONING_COMMON_H_
22
23 /*---------------------------------------------------------------------------*/
24 // Include files
25
26 #include "positioning_def.h"
27
28 /*---------------------------------------------------------------------------*/
29 // Definition
30
31 /*---------------------------------------------------------------------------*/
32 // ENUMERATION
33
34 /*---------------------------------------------------------------------------*/
35 // STRUCTURE
36
37 typedef struct PosResetinfo {
38     uint8_t       mode;               // Reset mode
39     uint8_t       reserve[3];         // reserve
40     PNO           sndpno;             // Caller PNO
41     PNO           respno;             // Destination PNO
42 } POS_RESETINFO;
43
44 /*!
45    @brief   Thread activation information
46 */
47 typedef struct StThreadSetupInfo {
48   EnumSetupMode_POS mode;            // Thread activation mode
49 } ST_THREAD_SETUP_INFO;
50
51
52 /*---------------------------------------------------------------------------*/
53 // Prototype
54 EFrameworkunifiedStatus PosInitialize(HANDLE h_app);
55 EnumSetupMode_POS PosSetupThread(HANDLE h_app, EnumTID_POS e_tid);
56 void PosTeardownThread(EnumTID_POS e_tid);
57 EFrameworkunifiedStatus PosCreateThread(HANDLE h_app, int8_t index);
58
59 /*---------------------------------------------------------------------------*/
60 #endif  // INC_COMMON_POSITIONING_COMMON_H_
61
62 /*---------------------------------------------------------------------------*/
63 /*EOF*/