Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / positioning_hal / inc / LineSensDrv / LineSensDrv_Thread.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 * @file LineSensDrv_Thread.h
18 */
19
20 #ifndef INC_LINESENSDRV_LINESENSDRV_THREAD_H_
21 #define INC_LINESENSDRV_LINESENSDRV_THREAD_H_
22
23 /*---------------------------------------------------------------------------*/
24 // Include files
25
26 #include "LineSensDrv_Api.h"
27 #include "LineSensDrv_Sensor.h"
28
29 /*---------------------------------------------------------------------------*/
30 // Define
31
32 // Return value
33 #define RET_LSDRV_SUCCESS       RET_NORMAL  // API processing success
34 #define RET_LSDRV_ERROR         RET_ERROR   // API processing failed
35
36 /*---------------------------------------------------------------------------*/
37 // Rcv Message Related
38
39 // Size of data section
40 #define LSDRV_RCVMSG_MSGBUF     512         // Byte count of RcvMSG data section
41
42 /*---------------------------------------------------------------------------*/
43 // Struct
44
45 // TAG       : LSDRV_RCVDATA
46 // ABSTRACT  : Message receive buffer structure
47 typedef struct LsDrvRcvData {
48   T_APIMSG_MSGBUF_HEADER  st_head;                        // Message header
49   u_int8                  uc_data[LSDRV_RCVMSG_MSGBUF];   // Data portion
50 } LSDRV_RCVDATA;
51
52 /*---------------------------------------------------------------------------*/
53 // Prototype
54
55 int32       LineSensDrvMainThreadInit(HANDLE);
56 void        LineSensDrvParamInit(void);
57
58 EFrameworkunifiedStatus  LineSensDrvThread(HANDLE);
59 void        LineSensDrvThreadStopProcess(void);
60 u_int8      LineSensDrvGetSysRecvFlag(void);
61
62 /*---------------------------------------------------------------------------*/
63 #endif  // INC_LINESENSDRV_LINESENSDRV_THREAD_H_
64
65 /*---------------------------------------------------------------------------*/
66 /*EOF*/