energycontrol.nc

来自「nesC写的heed算法」· NC 代码 · 共 44 行

NC
44
字号
// $Id: EnergyControl.nc,v 1.0 2004/10/5 $

/*
 * Author:	Ossama Younis, oyounis@cs.purdue.edu
 *			Purdue University, Department of Computer Science
 */

/** 
 * Control/Monitor interface to mote remaining energy (points) 
 */

interface EnergyControl {

  /**
   * initialize the available energy to a maximum value
   */
  command result_t initPoints();

  /** 
   * return the remaining points.
   */
  command uint32_t getRemainingPoints();

  /**
   * reduce the number of available points according to the power level.
   */
  command result_t reducePoints();

  /**
   * add some overhead points according to the power level.
   */
  command result_t addOverhead();

  /**
   * returns the points (energy) spent in routing updates and clustering.
   */
  command uint32_t getOverhead();

  /**
   * Check if any points are available.
   */
  command result_t isAlive();
}

⌨️ 快捷键说明

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