]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
missing file
authoridgay <idgay>
Thu, 7 Jun 2007 16:59:34 +0000 (16:59 +0000)
committeridgay <idgay>
Thu, 7 Jun 2007 16:59:34 +0000 (16:59 +0000)
apps/tests/mts300/PhotoTemp/Oscilloscope.h [new file with mode: 0644]

diff --git a/apps/tests/mts300/PhotoTemp/Oscilloscope.h b/apps/tests/mts300/PhotoTemp/Oscilloscope.h
new file mode 100644 (file)
index 0000000..1e6af20
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2006 Intel Corporation
+ * All rights reserved.
+ *
+ * This file is distributed under the terms in the attached INTEL-LICENSE     
+ * file. If you do not find these files, copies can be found by writing to
+ * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 
+ * 94704.  Attention:  Intel License Inquiry.
+ */
+
+// @author David Gay
+
+#ifndef OSCILLOSCOPE_H
+#define OSCILLOSCOPE_H
+
+enum {
+  /* Number of readings per message. If you increase this, you may have to
+     increase the message_t size. */
+  NREADINGS = 10,
+
+  /* Default sampling period. */
+  DEFAULT_INTERVAL = 256,
+
+  AM_OSCILLOSCOPE = 0x93
+};
+
+typedef nx_struct oscilloscope {
+  nx_uint16_t version; /* Version of the interval. */
+  nx_uint16_t interval; /* Samping period. */
+  nx_uint16_t id; /* Mote id of sending mote. */
+  nx_uint16_t count; /* The readings are samples count * NREADINGS onwards */
+  nx_uint16_t readings[NREADINGS];
+} oscilloscope_t;
+
+#endif