Zephyr API 3.6.99
Loading...
Searching...
No Matches
CAN Transceiver

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.
 

Detailed Description

CAN Transceiver Driver APIs .

Since
3.1
Version
0.1.0

Function Documentation

◆ 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
devPointer to the device structure for the driver instance.
Return values
0If successful.
-EIOGeneral 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
devPointer to the device structure for the driver instance.
modeOperation mode.
Return values
0If successful.
-EIOGeneral input/output error, failed to enable device.