6#ifndef NETLINK_LINK_CAN_H_
7#define NETLINK_LINK_CAN_H_
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
11#include <linux/can/netlink.h>
17struct can_bittiming_const;
19struct can_berr_counter;
23extern char *rtnl_link_can_ctrlmode2str(
int,
char *,
size_t);
24extern int rtnl_link_can_str2ctrlmode(
const char *);
35 struct can_bittiming_const *);
37 struct can_bittiming *);
39 const struct can_bittiming *);
55 struct can_bittiming_const *);
57 const struct can_bittiming_const *);
59 struct can_bittiming *);
61 const struct can_bittiming *);
int rtnl_link_can_berr_rx(struct rtnl_link *)
Get CAN RX bus error count.
int rtnl_link_can_set_restart_ms(struct rtnl_link *, uint32_t)
Set CAN device restart intervall.
int rtnl_link_can_get_restart_ms(struct rtnl_link *, uint32_t *)
Get CAN device restart intervall.
int rtnl_link_can_get_ctrlmode(struct rtnl_link *, uint32_t *)
Get CAN control mode.
int rtnl_link_can_freq(struct rtnl_link *, uint32_t *)
Get CAN base frequency.
int rtnl_link_can_get_bittiming(struct rtnl_link *, struct can_bittiming *)
Get CAN device bit-timing.
int rtnl_link_can_unset_ctrlmode(struct rtnl_link *, uint32_t)
Unset a CAN Control Mode.
int rtnl_link_can_set_data_bittiming_const(struct rtnl_link *, const struct can_bittiming_const *)
Set CAN FD device data bit-timing-const.
int rtnl_link_is_can(struct rtnl_link *link)
Check if link is a CAN link.
int rtnl_link_can_get_data_bittiming(struct rtnl_link *, struct can_bittiming *)
Get CAN FD device data bit-timing.
int rtnl_link_can_restart(struct rtnl_link *)
Restart CAN device.
int rtnl_link_can_set_sample_point(struct rtnl_link *, uint32_t)
Set CAN device sample point.
int rtnl_link_can_set_data_bittiming(struct rtnl_link *, const struct can_bittiming *)
Set CAN FD device data bit-timing.
int rtnl_link_can_get_sample_point(struct rtnl_link *, uint32_t *)
Get CAN device sample point.
int rtnl_link_can_set_bittiming(struct rtnl_link *, const struct can_bittiming *)
Set CAN device bit-timing.
int rtnl_link_can_set_bitrate(struct rtnl_link *, uint32_t)
Set CAN device bit-rate.
int rtnl_link_can_get_data_bittiming_const(struct rtnl_link *, struct can_bittiming_const *)
Get CAN FD hardware-dependent data bit-timing constant.
int rtnl_link_can_get_bitrate(struct rtnl_link *, uint32_t *)
Get CAN device bit-timing.
int rtnl_link_can_berr_tx(struct rtnl_link *)
Get CAN TX bus error count.
int rtnl_link_can_state(struct rtnl_link *, uint32_t *)
Get CAN state.
int rtnl_link_can_get_bt_const(struct rtnl_link *, struct can_bittiming_const *)
Get CAN hardware-dependent bit-timing constant.
int rtnl_link_can_set_ctrlmode(struct rtnl_link *, uint32_t)
Set a CAN Control Mode.
int rtnl_link_can_berr(struct rtnl_link *, struct can_berr_counter *)
Get CAN bus error count.