2 * @copyright Copyright (c) 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 #ifndef _CAN_HAL_CORE_H_
18 #define _CAN_HAL_CORE_H_
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,
31 void CanHalUnPackMessage(void *packed, HANDLE *h_app, void **msg,
33 void CanHalDestroyPackedMessage(void *packed);