Re: [Patch v2.1] Adds support for the Texas Instruments ADS1110 adc.

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

 



+static struct attribute *ads1110_attributes[] = {
+	&iio_const_attr_sampling_frequency_available.dev_attr.attr,
+	&iio_dev_attr_sampling_frequency.dev_attr.attr,
+	&iio_dev_attr_scale_available.dev_attr.attr,
+	&iio_dev_attr_scale.dev_attr.attr,
scale wants to be done via infomask element of the iio_chan_spec and
relevant element of a switch statement in read raw.  That way it will
be available via the inkernel interfaces (once we pin down exactly
how they will be registered - another discussion entirely...)

Here I need some help.
I looked at the ad7793 driver how to do this. If I understand it right, this driver also has the possibility to change the scale. I changed read_raw and added write_raw to the ads1110 driver. When I test the driver on my hardware I'm not able to set the gain, there is no sysfs attribute for it (on the board runs a 3.1 kernel with a backprot of the driver).

Best regards
Pirmin
--
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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux