X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Fhtml%2Ftep109.html;h=d353a66f19039496d826fbcae08daf131bf455a0;hb=826bb539a6c489db5b216e7326bf693ec67d15e5;hp=27ed3ab49f08b97e384993d4c8129b45a13e4714;hpb=618c63a3bd6752cdd94d8511ffecaac79499283a;p=tinyos-2.x.git diff --git a/doc/html/tep109.html b/doc/html/tep109.html index 27ed3ab4..d353a66f 100644 --- a/doc/html/tep109.html +++ b/doc/html/tep109.html @@ -3,7 +3,7 @@ - + Sensors and Sensor Boards -

Sensors and Sensor Boards

@@ -312,6 +306,7 @@ ul.auto-toc {
+

Note

This memo documents a part of TinyOS for the TinyOS Community, and @@ -319,15 +314,15 @@ requests discussion and suggestions for improvements. Distribution of this memo is unlimited. This memo is in full compliance with TEP 1.

-
-

Abstract

+
+

Abstract

This memo documents how sensor drivers are organized in TinyOS and how sets of sensor drivers are combined into sensor boards and sensor platforms, along with general principles followed by the components that provide access to sensors.

-
-

1. Principles

+
+

1. Principles

This section describes the basic organization principles for sensor drivers in TinyOS.

For background, a sensor can be attached to the microcontroller on a @@ -379,8 +374,8 @@ the driver MAY provide additional interfaces that would allow higher-level clients to obtain information needed to properly interpret the value.

-
-

2. Sensor HIL Components

+
+

2. Sensor HIL Components

A sensor HIL component MUST provide:

  • One or more SID interfaces [TEP114], for reading data.
  • @@ -472,8 +467,8 @@ implementation { }
-
-

3. Sensor HAL Components

+
+

3. Sensor HAL Components

Sensors with a richer interface than would be supported by the SID interfaces MAY provide a HAL component in addition to a HIL component.

@@ -502,8 +497,8 @@ implementation { }
-
-

4. Directory Organization Guidelines

+
+

4. Directory Organization Guidelines

Because the same physical sensor can be attached to TinyOS platforms in many different ways, the organization of sensor drivers SHOULD reflect the distinction between sensor and sensor interconnect.

@@ -572,8 +567,8 @@ code that will enter the core source tree. In general, sensor components can be placed anywhere as long as the nesC compiler receives enough -I directives to locate all of the necessary pieces.

-
-

5. Authors' Addresses

+
+

5. Authors' Addresses

David Gay
2150 Shattuck Ave, Suite 1300
@@ -616,8 +611,8 @@ receives enough -I directives to locate all of the necessary pieces
-
-

6. Citations

+
+

6. Citations

@@ -637,10 +632,10 @@ receives enough -I directives to locate all of the necessary pieces
-
-

Appendix A: Sensor Driver Examples

-
-

1. Analog ADC-Connected Sensor

+
+

Appendix A: Sensor Driver Examples

+
+

1. Analog ADC-Connected Sensor

The Analog sensor requires two components

  • a component to present the sensor itself (HamamatsuS1087ParC)
  • @@ -701,8 +696,8 @@ implementation { }
-
-

2. Binary Pin-Connected Sensor

+
+

2. Binary Pin-Connected Sensor

The Binary sensor gets a bit more complex, because it has three components:

    @@ -814,8 +809,8 @@ implementation { }
-
-

3. Digital Bus-Connected Sensor

+
+

3. Digital Bus-Connected Sensor

The Digital sensor is the most complex out of the set, and includes six components: