From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Michael Economides <mecono@gmail.com>
Cc: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>,
Oliver Hartkopp <socketcan@hartkopp.net>
Subject: Re: changing bit timings from C program
Date: Tue, 08 May 2012 23:35:49 +0200 [thread overview]
Message-ID: <4FA991B5.90602@pengutronix.de> (raw)
In-Reply-To: <CABHoAv=Q70Uegejcapk=ntFitR6--XaS05Wubsm4FTwZeCZ0dg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
On 05/08/2012 11:18 PM, Michael Economides wrote:
> In the socketCAN documentation it says we should use the netlink
> interface (from the command line) to change can bit timings:
>
> http://lxr.linux.no/linux+v3.1.1/Documentation/networking/can.txt#L742
>
> But I would like to know if there is an API I can call directly from
> my C program to do it.
http://www.pengutronix.de/software/libsocketcan/download/
http://git.pengutronix.de/?p=tools/libsocketcan.git;a=blob;f=include/libsocketcan.h;h=dc52053b824d1a8976126b043de4ee5d843c1401;hb=5b990a47714ea21911538304f9350edefe349299
cheers, Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
prev parent reply other threads:[~2012-05-08 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-08 21:18 changing bit timings from C program Michael Economides
2012-05-08 21:35 ` Marc Kleine-Budde [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FA991B5.90602@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=mecono@gmail.com \
--cc=socketcan@hartkopp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).