Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
CAN Transceiver

Interfaces for CAN transceivers. More...

Topics

 CAN Transceiver Driver Backend API

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.

Detailed Description

Interfaces for CAN transceivers.

Since
3.1
Version
0.1.0

Function Documentation

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

◆ can_transceiver_enable()

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.