CAN Transceiver Driver APIs .
More...
CAN Transceiver Driver APIs .
- Since
- 3.1
- Version
- 0.1.0
◆ can_transceiver_disable()
static 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()
static int can_transceiver_enable |
( |
const struct device * | dev, |
|
|
can_mode_t | mode ) |
|
inlinestatic |
#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. |