ds1682

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux