⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dhvdatac.nc

📁 tinyos-2.x.rar
💻 NC
字号:
/**
* DHV header file.
*
* Define the interfaces and components.
*
* @author Thanh Dang
* @author Seungweon Park
*
* @modified 1/3/2009   Added meaningful documentation.
* @modified 8/28/2008  Defined DHV packet type and renamed the variable
* @modified 8/28/2008  Take the source code from Dip
**/



configuration DhvDataC {
  provides interface DhvDecision;

  uses interface DhvSend as DataSend;
  uses interface DhvReceive as DataReceive;

  uses interface DisseminationUpdate<dhv_data_t>[dhv_key_t key];
  uses interface DisseminationValue<dhv_data_t>[dhv_key_t key];
	
	uses interface DhvLogic as DataLogic;
	uses interface DhvLogic as VectorLogic;

  uses interface DhvHelp;
}

implementation {
  components DhvDataP;
  DhvDecision = DhvDataP;
  DataSend = DhvDataP;
  DataReceive = DhvDataP;
  DisseminationUpdate = DhvDataP;
  DisseminationValue = DhvDataP;
  DhvHelp = DhvDataP;
  DataLogic = DhvDataP.DataLogic;
	VectorLogic = DhvDataP.VectorLogic;

  components LedsC;
  DhvDataP.Leds -> LedsC;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -