All of lore.kernel.org
 help / color / mirror / Atom feed
* [IIO] Cleanup userspace
@ 2010-08-27  8:57 Manuel Stahl
       [not found] ` <4C77AC01.3090204@cam.ac.uk>
  0 siblings, 1 reply; 28+ messages in thread
From: Manuel Stahl @ 2010-08-27  8:57 UTC (permalink / raw)
  To: Jonathan Cameron, Song, Barry; +Cc: linux-iio, uclinux-dist-devel


[-- Attachment #1.1: Type: text/plain, Size: 1710 bytes --]

Hi guys,

I updated my drivers and the iio_utils to the current state in linux 
staging and I must say I'm still not very satisfied with the userspace 
ABI. Maybe we can clean this up until more drivers get into staging and 
would have to be restructured accordingly.

The points I'd like to clean up are:
- We currently have plenty of (optional) information per channel:
   * the raw value
   * an offset and scale to apply in user software
   * calibration offset and gain applied in the device
   * enable and bit size (not implemented yet) in the ring buffer

   Should we put all that stuff into a channel directory?
   |- /sys/bus/iio/device0/accel_x/
      |- raw_value
      |- offset
      |- scale
      |- calib_offset
      |- calib_scale
   The enable and bit size are maybe buffer specific and could go
   into the buffer directory.

- The trigger is also an iio device so I'd prefer to have:
   |- /sys/bus/iio/iio0 (can be empty, if it's a pure trigger)
   |- /sys/bus/iio/iio0:trigger0

- Consitent names in ABI and code:
   * bps: 'bits per sample' or 'bytes per scan'?
   * bpd: 'bytes per datum' but named bps in user space

- Endianess of the buffers:
   * Device specific? Then we need a sysfs file to publish this info.
   * CPU native byte order?
   * Network byte order?
   * Allow packed buffers for samples with fractional sizes?

Regards,
-- 
Dipl.-Inf. Manuel Stahl
Fraunhofer-Institut für Integrierte Schaltungen IIS
- Leistungsoptimierte Systeme -
Nordostpark 93                Telefon  +49 (0)911/58061-6419
90411 Nürnberg                Fax      +49 (0)911/58061-6398
http://www.iis.fraunhofer.de  manuel.stahl@iis.fraunhofer.de

[-- Attachment #1.2: manuel_stahl.vcf --]
[-- Type: text/x-vcard, Size: 170 bytes --]

begin:vcard
fn:Manuel Stahl
n:Stahl;Manuel
email;internet:manuel.stahl@iis.fraunhofer.de
tel;work:+49 911 58061-6419
x-mozilla-html:FALSE
version:2.1
end:vcard


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 6148 bytes --]

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

end of thread, other threads:[~2010-09-04 17:26 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27  8:57 [IIO] Cleanup userspace Manuel Stahl
     [not found] ` <4C77AC01.3090204@cam.ac.uk>
     [not found]   ` <4C77B68B.4060805@iis.fraunhofer.de>
2010-08-27 14:24     ` Jonathan Cameron
2010-08-27 14:31       ` Manuel Stahl
2010-08-27 15:09         ` Jonathan Cameron
2010-08-30 10:55           ` [PATCH 1/2] staging:iio rename ring attributes Manuel Stahl
2010-08-30 12:28             ` Jonathan Cameron
2010-08-30 10:55           ` [PATCH 2/2] staging:iio move scan_elements into ring buffer Manuel Stahl
2010-08-30 12:58             ` Jonathan Cameron
2010-08-30 13:37               ` Manuel Stahl
2010-08-30 14:09                 ` Jonathan Cameron
     [not found]                 ` <4C7BD886.3060109@cam.ac.uk>
2010-08-30 16:31                   ` Manuel Stahl
2010-08-30 16:48                     ` Jonathan Cameron
2010-08-30 14:03             ` [PATCH 1/3] staging:iio update documentation Manuel Stahl
2010-08-30 14:23               ` Jonathan Cameron
2010-08-30 14:24                 ` Manuel Stahl
2010-08-30 14:49                   ` Jonathan Cameron
2010-08-30 14:03             ` [PATCH 2/3] staging:iio sync drivers with current ABI Manuel Stahl
2010-08-30 14:44               ` Jonathan Cameron
2010-08-30 15:00                 ` Manuel Stahl
2010-08-30 15:42                   ` Jonathan Cameron
2010-08-30 15:48                     ` Manuel Stahl
2010-08-30 16:07                       ` Jonathan Cameron
2010-08-30 16:28                         ` Manuel Stahl
2010-08-30 16:43                           ` Jonathan Cameron
2010-08-30 14:03             ` [PATCH 3/3] staging:iio:hmc5843 change ABI to comply with documentation Manuel Stahl
2010-08-30 14:58               ` Jonathan Cameron
2010-08-31 12:16                 ` Datta, Shubhrajyoti
2010-09-04 17:26           ` [IIO] Cleanup userspace Jonathan Cameron

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.