]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/xe1205/conf/XE1205PatternConfP.nc
added ack, received packet strength, LPL (compile with PFLAGS +=-DLOW_POWER_LISTENING)
[tinyos-2.x.git] / tos / chips / xe1205 / conf / XE1205PatternConfP.nc
index 5ba8c76ced8e30c235ec3ce6457e08f2b9911e43..c4ca0e45e00ad4e1a7c3a8dc1d264ec82a094ee9 100644 (file)
@@ -96,7 +96,26 @@ implementation {
     call SpiResource.release();
     return SUCCESS;
   }
-    
+  async command error_t XE1205PatternConf.loadDataPatternHasBus() {
+      
+      call Pattern13.write((data_pattern >> 16) & 0xff);
+      call Pattern14.write((data_pattern >> 8) & 0xff);
+      call Pattern15.write(data_pattern & 0xff);
+     
+    return SUCCESS;
+
+  }
+
+  async command error_t XE1205PatternConf.loadAckPatternHasBus() {
+
+      call Pattern13.write((ack_pattern >> 16) & 0xff);
+      call Pattern14.write((ack_pattern >> 8) & 0xff);
+      call Pattern15.write(ack_pattern & 0xff);
+
+    return SUCCESS;
+
+  }
+
   async command error_t XE1205PatternConf.loadPattern(uint8_t* pattern, uint8_t len) 
   {
     error_t status;