13#ifndef ZEPHYR_INCLUDE_DRIVERS_CAN_TRANSCEIVER_H_
14#define ZEPHYR_INCLUDE_DRIVERS_CAN_TRANSCEIVER_H_
42typedef int (*can_transceiver_enable_t)(
const struct device *dev,
can_mode_t mode);
48typedef int (*can_transceiver_disable_t)(
const struct device *dev);
50__subsystem
struct can_transceiver_driver_api {
51 can_transceiver_enable_t enable;
52 can_transceiver_disable_t disable;
#define DEVICE_API_GET(_class, _dev)
Expands to the pointer of a device's API for a given class.
Definition device.h:1350
Main header file for Controller Area Network (CAN) driver API.
uint32_t can_mode_t
Provides a type to hold CAN controller configuration flags.
Definition can.h:122
static int can_transceiver_enable(const struct device *dev, can_mode_t mode)
Enable CAN transceiver.
Definition transceiver.h:72
static int can_transceiver_disable(const struct device *dev)
Disable CAN transceiver.
Definition transceiver.h:91
Runtime device structure (in ROM) per driver instance.
Definition device.h:510