Microchip® Advanced Software Framework

energest.h File Reference

    Header file for the energy estimation mechanism
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "sys/rtimer.h"

Data Structures

struct  energest_t
 

Macros

#define ENERGEST_OFF(type)   do { } while(0)
 
#define ENERGEST_OFF_LEVEL(type, level)   do { } while(0)
 
#define ENERGEST_ON(type)   do { } while(0)
 

Enumerations

enum  energest_type {
  ENERGEST_TYPE_CPU,
  ENERGEST_TYPE_LPM,
  ENERGEST_TYPE_IRQ,
  ENERGEST_TYPE_LED_GREEN,
  ENERGEST_TYPE_LED_YELLOW,
  ENERGEST_TYPE_LED_RED,
  ENERGEST_TYPE_TRANSMIT,
  ENERGEST_TYPE_LISTEN,
  ENERGEST_TYPE_FLASH_READ,
  ENERGEST_TYPE_FLASH_WRITE,
  ENERGEST_TYPE_SENSORS,
  ENERGEST_TYPE_SERIAL,
  ENERGEST_TYPE_MAX
}
 

Functions

void energest_flush (void)
 
void energest_init (void)
 
unsigned long energest_leveldevice_leveltime (int powerlevel)
 
void energest_type_set (int type, unsigned long value)
 
unsigned long energest_type_time (int type)
 

#define ENERGEST_OFF (   type)    do { } while(0)
#define ENERGEST_OFF_LEVEL (   type,
  level 
)    do { } while(0)
#define ENERGEST_ON (   type)    do { } while(0)

Enumerator
ENERGEST_TYPE_CPU 
ENERGEST_TYPE_LPM 
ENERGEST_TYPE_IRQ 
ENERGEST_TYPE_LED_GREEN 
ENERGEST_TYPE_LED_YELLOW 
ENERGEST_TYPE_LED_RED 
ENERGEST_TYPE_TRANSMIT 
ENERGEST_TYPE_LISTEN 
ENERGEST_TYPE_FLASH_READ 
ENERGEST_TYPE_FLASH_WRITE 
ENERGEST_TYPE_SENSORS 
ENERGEST_TYPE_SERIAL 
ENERGEST_TYPE_MAX 

void energest_flush ( void  )
void energest_init ( void  )

Referenced by main().

unsigned long energest_leveldevice_leveltime ( int  powerlevel)
void energest_type_set ( int  type,
unsigned long  value 
)
unsigned long energest_type_time ( int  type)