]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/types/AM.h
Merge devel code into the trunk.
[tinyos-2.x.git] / tos / types / AM.h
diff --git a/tos/types/AM.h b/tos/types/AM.h
new file mode 100644 (file)
index 0000000..a9d4cf0
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef AM_H
+#define AM_H
+
+// These are the right types, but ncc currently does not 
+// like parameters being network types
+typedef nx_uint8_t nx_am_id_t;
+typedef nx_uint8_t nx_am_group_t;
+typedef nx_uint16_t nx_am_addr_t;
+
+typedef uint8_t am_id_t;
+typedef uint8_t am_group_t;
+typedef uint16_t am_addr_t;
+
+enum {
+  AM_BROADCAST_ADDR = 0xffff,
+};
+
+#ifndef DEFINED_TOS_AM_GROUP
+#define DEFINED_TOS_AM_GROUP 0x22
+#endif
+
+#ifndef DEFINED_TOS_AM_ADDRESS
+#define DEFINED_TOS_AM_ADDRESS 1
+#endif
+
+enum {
+  TOS_AM_GROUP = DEFINED_TOS_AM_GROUP,
+  TOS_AM_ADDRESS = DEFINED_TOS_AM_ADDRESS
+};
+
+#define UQ_AMQUEUE_SEND "amqueue.send"
+
+#endif
+