compower.c File Reference

Communication power accounting module. More...

#include "contiki-conf.h"
#include "sys/energest.h"
#include "sys/compower.h"
#include "net/packetbuf.h"

Go to the source code of this file.

Functions

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

Variables

struct compower_activity compower_idle_activity
 The default idle communication activity.

Detailed Description

Communication power accounting module.

Author:
Adam Dunkels <adam@sics.se>

Definition in file compower.c.


Generated on Mon Apr 11 14:23:47 2011 for Contiki 2.5 by  doxygen 1.6.1