Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
CAN Transceiver Driver APIs. More...
Functions | |
static int | can_transceiver_enable (const struct device *dev, can_mode_t mode) |
Enable CAN transceiver. | |
static int | can_transceiver_disable (const struct device *dev) |
Disable CAN transceiver. | |
CAN Transceiver Driver APIs.
|
inlinestatic |
#include <include/zephyr/drivers/can/transceiver.h>
Disable CAN transceiver.
Disable the CAN transceiver.
dev | Pointer to the device structure for the driver instance. |
0 | If successful. |
-EIO | General input/output error, failed to disable device. |
|
inlinestatic |
#include <include/zephyr/drivers/can/transceiver.h>
Enable CAN transceiver.
Enable the CAN transceiver.
dev | Pointer to the device structure for the driver instance. |
mode | Operation mode. |
0 | If successful. |
-EIO | General input/output error, failed to enable device. |