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 * @file LineSensDrv_Thread.h
20 #ifndef INC_LINESENSDRV_LINESENSDRV_THREAD_H_
21 #define INC_LINESENSDRV_LINESENSDRV_THREAD_H_
23 /*---------------------------------------------------------------------------*/
26 #include "LineSensDrv_Api.h"
27 #include "LineSensDrv_Sensor.h"
29 /*---------------------------------------------------------------------------*/
33 #define RET_LSDRV_SUCCESS RET_NORMAL // API processing success
34 #define RET_LSDRV_ERROR RET_ERROR // API processing failed
36 /*---------------------------------------------------------------------------*/
37 // Rcv Message Related
39 // Size of data section
40 #define LSDRV_RCVMSG_MSGBUF 512 // Byte count of RcvMSG data section
42 /*---------------------------------------------------------------------------*/
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
52 /*---------------------------------------------------------------------------*/
55 int32 LineSensDrvMainThreadInit(HANDLE);
56 void LineSensDrvParamInit(void);
58 EFrameworkunifiedStatus LineSensDrvThread(HANDLE);
59 void LineSensDrvThreadStopProcess(void);
60 u_int8 LineSensDrvGetSysRecvFlag(void);
62 /*---------------------------------------------------------------------------*/
63 #endif // INC_LINESENSDRV_LINESENSDRV_THREAD_H_
65 /*---------------------------------------------------------------------------*/