Jonathan Cameron wrote on 2011-04-09: > Dear All, > > I'm messing with my favourite 'special' device, the sca3000. > > It has a hardware ring buffer and direct read abilities. > > Direct reads of current value are 13bit signed, the buffer is either > 11 bit or 8 bit. > > So ultimately the scale on the buffer can change which is nasty > enough, however direct reads are 13bits whatever the buffer is set to. > > Hence we need to export two scale's at a time. > > Would anyone mind if I add the option to have both > > /device0/accel_scale (applies to _raw files in the same dir). and > /device0/device0:buffer0/accel_scale (or maybe put it in the > 'scan_elements' directory? > > This means we will have to define a precedence for these attributes > when reading from buffers which isn't nice, but such is life... > > Jonathan If scaling the values in the buffer to 13-bit is not an alternative, that sounds like the way to go. Greetings, Michael -- Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368; Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html