]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/dip/interfaces/DIPEstimates.nc
Initial checkin for DIP
[tinyos-2.x.git] / tos / lib / net / dip / interfaces / DIPEstimates.nc
diff --git a/tos/lib/net/dip/interfaces/DIPEstimates.nc b/tos/lib/net/dip/interfaces/DIPEstimates.nc
new file mode 100644 (file)
index 0000000..512c5bf
--- /dev/null
@@ -0,0 +1,15 @@
+
+#include <DIP.h>
+
+interface DIPEstimates {
+  command dip_estimate_t* getEstimates();
+  command void decEstimateByIndex(dip_index_t i);
+  command void decEstimateByKey(dip_key_t key);
+  command dip_hashlen_t estimateToHashlength(dip_estimate_t est);
+  command dip_estimate_t hashlengthToEstimate(dip_hashlen_t len);
+  // special event to reset trickle timer too
+  command void setDataEstimate(dip_key_t key);
+  command void setVectorEstimate(dip_key_t key);
+  command void setSummaryEstimateByIndex(dip_index_t ind,
+                                        dip_estimate_t est);
+}