solettaproject / soletta

Soletta Project is a framework for making IoT devices. With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.
http://solettaproject.org
Apache License 2.0
225 stars 108 forks source link

New IIO C-API to read configuration attributes V2 #2348

Closed guchaojie closed 8 years ago

guchaojie commented 8 years ago

including 3 C-API to read scale, offset and sampling_frequency attribute

Signed-off-by: guchaojie chao.jie.gu@intel.com

guchaojie commented 8 years ago

@ceolin @edersondisouza @fulong82 @laykuanloon This PR is for issue #2117. All thie C-API is to get configuration attribute from device level.

guchaojie commented 8 years ago

@ceolin Do you have any comments on new PR for source code? And we have test hmc5843 magnet sensor and 1-0040 temperature sensor to read scale and offset attributes, it works well.

ceolin commented 8 years ago

patch is ok, please rebase with upstream and fix these small issues that will be ready to be merged.