* ds1682
@ 2009-09-15 18:05 Dan Mor
0 siblings, 0 replies; only message in thread
From: Dan Mor @ 2009-09-15 18:05 UTC (permalink / raw)
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
Hi Guys,
I am trying to use ds1682 Linux driver under 2.6.27.30 Fedora Core 10
Kernel.
I am new to sysfs driver approach. I successfully compiled the module and
loaded it.
The device doesn't recognized by default and no sub directories created.
I add insmode parameters to the driver and loading it with force=i2c_bus,
i2c_address parameters.
In this case, it works.
I can read/write from/to devices by: cat /sys/..../elapsed_time, etc.
My question is, how can I read/write from/to sysfs from the C test
application?
I am trying to: "open" "/sys/..../elapsed_time" and "read" from it but
apparently I am doing something wrong.
Do you have some C code examples of how to communicate with sysfs devices?
Regards,
Dan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-15 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 18:05 ds1682 Dan Mor
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).