Contiki 2.5
Data Structures | Functions | Variables
compower.h File Reference

    Header file for the communication power accounting module
More...

Go to the source code of this file.

Data Structures

struct  compower_activity
 An activity record that contains power consumption information for a specific communication activity. More...
 

Functions

void compower_init (void)
 Initialize the communication power accounting module. More...
 
void compower_accumulate (struct compower_activity *a)
 Accumulate power contumption for a communication activity. More...
 
void compower_clear (struct compower_activity *a)
 Clear power consumption information for a communication activity. More...
 
void compower_attrconv (struct compower_activity *a)
 Convert power contumption information to packet attributes. More...
 
void compower_accumulate_attrs (struct compower_activity *a)
 Accumulate power contumption for a communication activity based on energy data in packet attributes. More...
 

Variables

struct compower_activity compower_idle_activity
 The default idle communication activity. More...
 

Detailed Description

    Header file for the communication power accounting module
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file compower.h.