All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: "Peter F. Patel-Schneider" <pfpschneider@gmail.com>,
	Peter Meerwald <pmeerw@pmeerw.net>,
	Jonathan Cameron <jic23@kernel.org>,
	Reyad Attiyat <reyad.attiyat@gmail.com>,
	linux-iio@vger.kernel.org,
	Benjamin Tissoires <benjamin.tissoires@redhat.com>,
	Lars-Peter Clausen <lars@metafoo.de>
Subject: Re: User-space API for accelerometer(s)?
Date: Wed, 23 Jul 2014 18:51:00 +0200	[thread overview]
Message-ID: <1406134260.28464.2.camel@hadess.net> (raw)
In-Reply-To: <53CFB269.3040302@linux.intel.com>

On Wed, 2014-07-23 at 06:02 -0700, Srinivas Pandruvada wrote:
> On 07/23/2014 05:19 AM, Bastien Nocera wrote:
> > On Thu, 2014-07-10 at 08:04 -0700, Srinivas Pandruvada wrote:
> >> I suggest to look at https://01.org/android-ia/downloads. Under
> >> device/intel, you can see user space HAL for sensor hubs.
> > I can't find it anywhere on those pages. There only seems to be
> > installable images, with no source code.
> >
> 
> You can see instruction here to get source code. You can see source in 
> device/intel folder.
> 
> https://01.org/android-ia/downloads/android-4.4.2r1-ia1

Right, I found this:
https://github.com/android-ia/device_intel/blob/release/android-4.1.1_r1-ia0/pc_std/libsensors/SensorConfig.h

Which seems to have a number of bugs (defines "GRAVITY" but actually
uses "GRAVITY_EARTH" in some of the formulas), and doesn't make it clear
which one of the sensors each of the sections are for.

In any case, my problem was simply one of threshold. For reference, I've
also downloaded Microsoft's documentation for hardware manufacturers:
http://msdn.microsoft.com/en-us/library/windows/hardware/dn613934(v=vs.85).aspx

Cheers


      reply	other threads:[~2014-07-23 16:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18 14:09 User-space API for accelerometer(s)? Bastien Nocera
2014-06-18 23:31 ` Reyad Attiyat
2014-06-18 23:45   ` Srinivas Pandruvada
2014-06-19 11:20     ` Bastien Nocera
2014-06-21 12:01       ` Jonathan Cameron
2014-06-21 12:37         ` Bastien Nocera
2014-06-21 16:26           ` Srinivas Pandruvada
2014-07-01 12:10         ` Bastien Nocera
2014-07-03 17:51           ` Jonathan Cameron
2014-07-03 17:58             ` Lars-Peter Clausen
2014-07-04  9:35             ` Bastien Nocera
2014-07-09 14:33             ` Bastien Nocera
2014-07-09 14:54               ` Peter Meerwald
2014-07-09 22:16                 ` Bastien Nocera
2014-07-10  1:38                   ` Peter F. Patel-Schneider
2014-07-10 15:04                     ` Srinivas Pandruvada
2014-07-23 12:19                       ` Bastien Nocera
2014-07-23 13:02                         ` Srinivas Pandruvada
2014-07-23 16:51                           ` Bastien Nocera [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406134260.28464.2.camel@hadess.net \
    --to=hadess@hadess.net \
    --cc=benjamin.tissoires@redhat.com \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=pfpschneider@gmail.com \
    --cc=pmeerw@pmeerw.net \
    --cc=reyad.attiyat@gmail.com \
    --cc=srinivas.pandruvada@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.