2022-08-05 18:44:44 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
* @brief Private functions for native posix canbus driver.
|
|
|
|
*/
|
|
|
|
|
2024-08-13 23:26:41 +08:00
|
|
|
#ifndef ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
|
|
|
|
#define ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_
|
2022-08-05 18:44:44 +08:00
|
|
|
|
|
|
|
int linux_socketcan_iface_open(const char *if_name);
|
|
|
|
|
|
|
|
int linux_socketcan_iface_close(int fd);
|
|
|
|
|
|
|
|
int linux_socketcan_poll_data(int fd);
|
|
|
|
|
2023-12-28 18:50:48 +08:00
|
|
|
int linux_socketcan_read_data(int fd, void *buf, size_t buf_len, bool *msg_confirm);
|
2022-08-05 18:44:44 +08:00
|
|
|
|
|
|
|
int linux_socketcan_set_mode_fd(int fd, bool mode_fd);
|
|
|
|
|
2024-08-13 23:26:41 +08:00
|
|
|
#endif /* ZEPHYR_DRIVERS_CAN_NATIVE_LINUX_ADAPT_H_ */
|