From: Christoph Mair <christoph.mair@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
Jonathan Cameron <kernel@jic23.retrosnub.co.uk>,
Stefan Schmidt <stefan@datenfreihafen.org>,
Datta Shubhrajyoti <shubhrajyoti@ti.com>,
Christoph Mair <christoph.mair@gmail.com>
Subject: [PATCH 2/2] bmp085: Add interface documentation and link to datasheet.
Date: Sat, 26 Jun 2010 13:10:24 +0200 [thread overview]
Message-ID: <1277550624-13879-3-git-send-email-christoph.mair@gmail.com> (raw)
In-Reply-To: <20100621144958.d5fc694e.akpm@linux-foundation.org>
Signed-off-by: Christoph Mair <christoph.mair@gmail.com>
---
drivers/misc/bmp085.c | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/bmp085.c b/drivers/misc/bmp085.c
index 16a2b2c..67ed8b2 100644
--- a/drivers/misc/bmp085.c
+++ b/drivers/misc/bmp085.c
@@ -1,5 +1,32 @@
/* Copyright (c) 2010 Christoph Mair <christoph.mair@gmail.com>
+ This driver supports the bmp085 digital barometric pressure
+ and temperature sensor from Bosch Sensortec. The datasheet
+ is avaliable from their website:
+ http://www.bosch-sensortec.com/content/language1/downloads/BST-BMP085-DS000-05.pdf
+
+ A pressure measurement is issued by reading from pressure0_input.
+ The return value ranges from 30000 to 110000 pascal with a resulution
+ of 1 pascal (0.01 millibar) which enables measurements from 9000m above
+ to 500m below sea level.
+
+ The temperature can be read from temp0_input. Values range from
+ -400 to 850 representing the ambient temperature in degree celsius
+ multiplied by 10.The resolution is 0.1 celsius.
+
+ Because ambient pressure is temperature dependent, a temperature
+ measurement will be executed automatically even if the user is reading
+ from pressure0_input. This happens if the last temperature measurement
+ has been executed more then one second ago.
+
+ To decrease RMS noise from pressure measurements, the bmp085 can
+ autonomously calculate the average of up to eight samples. This is
+ set up by writing to the oversampling sysfs file. Accepted values
+ are 0, 1, 2 and 3. 2^x when x is the value written to this file
+ specifies the number of samples used to calculate the ambient pressure.
+ RMS noise is specified with six pascal (without averaging) and decreases
+ down to 3 pascal when using an oversampling setting of 3.
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
--
1.7.1
prev parent reply other threads:[~2010-06-26 12:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-19 1:58 [PATCH] Support for the pressure sensor BMP085 from Bosch Sensortec Christoph Mair
2010-06-19 10:29 ` Jonathan Cameron
2010-06-20 0:27 ` Christoph Mair
2010-06-20 11:00 ` Jonathan Cameron
2010-06-20 20:50 ` Christoph Mair
2010-06-21 6:45 ` Datta, Shubhrajyoti
2010-06-21 8:52 ` Datta, Shubhrajyoti
2010-06-21 21:49 ` Andrew Morton
2010-06-22 23:26 ` Christoph Mair
2010-06-23 11:41 ` Jonathan Cameron
2010-06-26 11:10 ` bmp085: add inline and ABI documentation Christoph Mair
2010-06-26 11:10 ` [PATCH 1/2] Add ABI documentation for the bmp085 digital pressure sensor Christoph Mair
2010-06-26 11:10 ` Christoph Mair [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=1277550624-13879-3-git-send-email-christoph.mair@gmail.com \
--to=christoph.mair@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=kernel@jic23.retrosnub.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=shubhrajyoti@ti.com \
--cc=stefan@datenfreihafen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).