|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Interfaces for CAN transceivers. More...
Files | |
| file | transceiver.h |
| Header file for CAN transceiver driver API. | |
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. | |
Interfaces for CAN transceivers.
|
inlinestatic |
#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 <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. |