📄 energycontrol.nc
字号:
// $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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -