~ubuntu-branches/ubuntu/wily/libsocketcan/wily

« back to all changes in this revision

Viewing changes to include/libsocketcan.h

  • Committer: Package Import Robot
  • Author(s): Alexander GQ Gerasiov
  • Date: 2014-03-18 18:47:57 UTC
  • Revision ID: package-import@ubuntu.com-20140318184757-0ri1lkf00s2mx3gd
Tags: upstream-0.0.9+git20140207
ImportĀ upstreamĀ versionĀ 0.0.9+git20140207

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * libsocketcan.h
 
3
 *
 
4
 * (C) 2009 Luotao Fu <l.fu@pengutronix.de>
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or modify it under
 
7
 * the terms of the GNU Lesser General Public License as published by the Free
 
8
 * Software Foundation; either version 2.1 of the License, or (at your option)
 
9
 * any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful, but without
 
12
 * any warranty; without even the implied warranty of merchantability or fitness
 
13
 * for a particular purpose. see the gnu lesser general public license for more
 
14
 * details.
 
15
 *
 
16
 * you should have received a copy of the gnu lesser general public license
 
17
 * along with this library; if not, write to the free software foundation, inc.,
 
18
 * 59 temple place, suite 330, boston, ma 02111-1307 usa
 
19
 */
 
20
 
 
21
#ifndef _socketcan_netlink_h
 
22
#define _socketcan_netlink_h
 
23
 
 
24
/**
 
25
 * @file
 
26
 * @brief API overview
 
27
 */
 
28
 
 
29
#include <can_netlink.h>
 
30
 
 
31
#ifdef __cplusplus
 
32
extern "C" {
 
33
#endif
 
34
 
 
35
int can_do_restart(const char *name);
 
36
int can_do_stop(const char *name);
 
37
int can_do_start(const char *name);
 
38
 
 
39
int can_set_restart_ms(const char *name, __u32 restart_ms);
 
40
int can_set_bittiming(const char *name, struct can_bittiming *bt);
 
41
int can_set_ctrlmode(const char *name, struct can_ctrlmode *cm);
 
42
int can_set_bitrate(const char *name, __u32 bitrate);
 
43
int can_set_bitrate_samplepoint(const char *name, __u32 bitrate, __u32 sample_point);
 
44
 
 
45
int can_get_restart_ms(const char *name, __u32 *restart_ms);
 
46
int can_get_bittiming(const char *name, struct can_bittiming *bt);
 
47
int can_get_ctrlmode(const char *name, struct can_ctrlmode *cm);
 
48
int can_get_state(const char *name, int *state);
 
49
int can_get_clock(const char *name, struct can_clock *clock);
 
50
int can_get_bittiming_const(const char *name, struct can_bittiming_const *btc);
 
51
int can_get_berr_counter(const char *name, struct can_berr_counter *bc);
 
52
int can_get_device_stats(const char *name, struct can_device_stats *cds);
 
53
 
 
54
#ifdef __cplusplus
 
55
}
 
56
#endif
 
57
 
 
58
#endif