From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: wcall@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] xenomai i2c
Date: Thu, 22 Jan 2009 20:16:20 +0100 [thread overview]
Message-ID: <4978C604.8020309@domain.hid> (raw)
In-Reply-To: <000101c97cbc$96bacc10$c4306430$@com>
Wayne Call wrote:
> Is there a way to use xenomai to do a simple read/ write to an i2c device?
> I simply want to read a temperature sensor value, via I2C, in the real time
> context. I currently use files such as i2c-bfin-twi.c and i2c-core.c and
> have built a sensor type driver, lm73.c. I can read temperature values from
> user space using the /sys/bus/i2c/devices/0-0048/temperature folder.
The clean way is to implement a driver (or several drivers) using the
RTDM skin. Then, you would access this driver using the real-time
version of the usual open/read/write/ioctl/close interface.
--
Gilles.
next prev parent reply other threads:[~2009-01-22 19:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-22 18:09 [Xenomai-help] xenomai i2c Wayne Call
2009-01-22 19:16 ` Gilles Chanteperdrix [this message]
[not found] <1231007816-1232652648-cardhu_decombobulator_blackberry.rim.net-1405832660-@domain.hid>
2009-01-22 19:33 ` Gilles Chanteperdrix
2009-01-22 20:46 ` Wayne Call
2009-01-22 21:02 ` Gilles Chanteperdrix
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=4978C604.8020309@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=wcall@domain.hid \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.