All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] i2c device w/o registers
@ 2011-06-07  0:25 Randy
  2011-06-07  6:48 ` Jean Delvare
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Randy @ 2011-06-07  0:25 UTC (permalink / raw)
  To: lm-sensors

I have an ADC (MCP3424) that doesn't use registers/commands. 

To configure the device, you simply write the configuration to the appropriate 
I2C device address.

To read the sensor data, you simply issue a read to the device, which will 
return the ADC sample and the current control register (3 or 4 bytes total, 
depending on mode).

All the commands in i2c-tools and the i2c drivers, except for the read/write 
byte commands, want to take an additional register parameter.  This extra param 
going over the wire messes up the chip.

Is there any simple way to support devices that don't support registers?  I 
searched the archive, and found some requests for a i2c_smbus_read_word() 
command, but that's about it.

thanks,

Randy


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-16 20:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07  0:25 [lm-sensors] i2c device w/o registers Randy
2011-06-07  6:48 ` Jean Delvare
2011-06-07  8:18 ` Ben Dooks
2011-06-07 18:57 ` Randy
2011-06-07 19:02 ` Guenter Roeck
2011-06-08 22:25 ` Randy
2011-06-13 21:18 ` Randy
2011-06-16 20:11 ` Randy

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.