Interfaces for CAN transceivers.
More...
Interfaces for CAN transceivers.
- Since
- 3.1
- Version
- 0.1.0
◆ can_transceiver_disable()
int can_transceiver_disable |
( |
const struct device * | dev | ) |
|
|
inlinestatic |
#include <zephyr/drivers/can/transceiver.h>
Disable CAN transceiver.
Disable the CAN transceiver.
- Note
- The CAN transceiver is controlled by the CAN controller driver and should not normally be controlled by the application.
- See also
- can_stop()
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
- Return values
-
0 | If successful. |
-EIO | General input/output error, failed to disable device. |
◆ can_transceiver_enable()
#include <zephyr/drivers/can/transceiver.h>
Enable CAN transceiver.
Enable the CAN transceiver.
- Note
- The CAN transceiver is controlled by the CAN controller driver and should not normally be controlled by the application.
- See also
- can_start()
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
mode | Operation mode. |
- Return values
-
0 | If successful. |
-EIO | General input/output error, failed to enable device. |