]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/AntiTheft/Nodes/antitheft.h
RC4 fixes for Epic support
[tinyos-2.x.git] / apps / AntiTheft / Nodes / antitheft.h
index f17c15b0355f58c46f5786f707c786222a409c16..fefe553e4a6bef78da1268dedee65672baae9a7c 100644 (file)
@@ -1,3 +1,17 @@
+// $Id$
+/*
+ * Copyright (c) 2007 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 ANTITHEFT_H
 #define ANTITHEFT_H
 
@@ -12,7 +26,7 @@ enum {
 
   AM_SETTINGS = 54,
   AM_THEFT = 99,
-  AM_ALERTS = 22,
+  AM_ALERT = 22,
   DIS_SETTINGS = 42,
   COL_ALERTS = 11,
 
@@ -21,12 +35,12 @@ enum {
   DEFAULT_CHECK_INTERVAL = 1000
 };
 
-typedef nx_struct {
+typedef nx_struct settings {
   nx_uint8_t alert, detect;
   nx_uint16_t checkInterval;
 } settings_t;
 
-typedef nx_struct {
+typedef nx_struct alert {
   nx_uint16_t stolenId;
 } alert_t;