libsocketcan v0.0.12
libsocketcan.h File Reference

API overview. More...

#include <linux/can/netlink.h>
Include dependency graph for libsocketcan.h:
This graph shows which files directly or indirectly include this file:

Functions

int can_do_restart (const char *name)
 can_do_restart - restart the can interface
 
int can_do_stop (const char *name)
 can_do_stop - stop the can interface
 
int can_do_start (const char *name)
 can_do_start - start the can interface
 
int can_set_restart_ms (const char *name, __u32 restart_ms)
 can_set_restart_ms - set interval of auto restart.
 
int can_set_bittiming (const char *name, struct can_bittiming *bt)
 can_set_bittiming - setup the bittiming.
 
int can_set_ctrlmode (const char *name, struct can_ctrlmode *cm)
 can_set_ctrlmode - setup the control mode.
 
int can_set_bitrate (const char *name, __u32 bitrate)
 can_set_bitrate - setup the bitrate.
 
int can_set_bitrate_samplepoint (const char *name, __u32 bitrate, __u32 sample_point)
 can_set_bitrate_samplepoint - setup the bitrate.
 
int can_get_restart_ms (const char *name, __u32 *restart_ms)
 can_get_restart_ms - get the current interval of auto restarting.
 
int can_get_bittiming (const char *name, struct can_bittiming *bt)
 can_get_bittiming - get the current bittimnig configuration.
 
int can_get_ctrlmode (const char *name, struct can_ctrlmode *cm)
 can_get_ctrlmode - get the current control mode.
 
int can_get_state (const char *name, int *state)
 can_get_state - get the current state of the device
 
int can_get_clock (const char *name, struct can_clock *clock)
 can_get_clock - get the current clock struct.
 
int can_get_bittiming_const (const char *name, struct can_bittiming_const *btc)
 can_get_bittiming_const - get the current bittimnig constant.
 
int can_get_berr_counter (const char *name, struct can_berr_counter *bc)
 can_get_berr_counter - get the tx/rx error counter.
 
int can_get_device_stats (const char *name, struct can_device_stats *cds)
 can_get_device_stats - get the can_device_stats.
 
int can_get_link_stats (const char *name, struct rtnl_link_stats64 *rls)
 can_get_link_statistics - get RX/TX statistics (64 bits version)
 

Detailed Description

API overview.