Re-organized sub-directory by category
[staging/basesystem.git] / hal / can_hal / src / inc / can_hal_core.h
1 /*
2  * @copyright Copyright (c) 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 #ifndef _CAN_HAL_CORE_H_
18 #define _CAN_HAL_CORE_H_
19 #include <stdint.h>
20 #include "can_hal.h"
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 CANHAL_RET_API CanOpenCore(CanHalType type);
25 CANHAL_RET_API CanCloseCore(CanHalType type);
26 EFrameworkunifiedStatus CanSendThreadStart(HANDLE h_app);
27 EFrameworkunifiedStatus CanSendThreadStop(HANDLE h_app);
28 void *CanRecvRun(void *arg);
29 void *CanHalPackMessage(HANDLE h_app, const void *msg, ssize_t msg_sz,
30                         ssize_t *packed_sz);
31 void CanHalUnPackMessage(void *packed, HANDLE *h_app, void **msg,
32                           ssize_t *msg_sz);
33 void CanHalDestroyPackedMessage(void *packed);
34 #ifdef __cplusplus
35 }
36 #endif
37 #endif