Sensix
Wireless Sensor Network Middleware



   Home


   Project Page


   Download


   CVS




 Hosted by
Get SENSIX at SourceForge.net. Fast, secure 
and Free Open Source software downloads

/home/brennan/Software/sensix/source/L1/mote_sensix.c File Reference

#include <string.h>
#include <stdlib.h>
#include "sensix.h"
#include "sense_impl.h"
#include "mote_sensix.h"
#include "mote_networking.h"
#include "mote_impl.h"
#include "mote_types.h"
#include "mote_limits.h"
#include "mote_state.h"

Go to the source code of this file.

Defines

#define MOTE
#define IMPL

Functions

mote_stateget_state (uint_t node)
functorget_functor (uint_t idx, uint_t node)
void start_discovery (uint_t node)
void discover_ancestors (uint_t node)
void discover_siblings (uint_t node)
void add_capability (byte_t cap, uint_t node)
int_t initialize (uint_t id, uint_t node)
int_t f_apply (functor *f)
int_t f_dataready (functor *f)
int_t f_cancel (functor *f)
functorallocate_functor (uint_t node)
void init_functor (functor *f, uint_t node)
void free_functor (functor *f)
int_t f_sense (functor *f)
int_t f_peak_sense (functor *f)
int_t f_time_series (functor *f)
int_t f_spatial_series (functor *f)
int_t f_recite (functor *f)
int_t f_sum (functor *f)
int_t f_delta (functor *f)
int_t f_mean (functor *f)
int_t f_sigma (functor *f)
int_t f_lambda (functor *f)
uint_t energy_diff (uint_t prev, uint_t cur)
uint_t time_diff (uint_t prev, uint_t cur)

Variables

mote_state _node_state [MAX_NODES]


Define Documentation

#define IMPL

Definition at line 39 of file mote_sensix.c.

#define MOTE

Definition at line 38 of file mote_sensix.c.


Function Documentation

void add_capability ( byte_t  cap,
uint_t  node 
)

Definition at line 252 of file mote_sensix.c.

functor* allocate_functor ( uint_t  node  ) 

Definition at line 334 of file mote_sensix.c.

void discover_ancestors ( uint_t  node  ) 

Definition at line 234 of file mote_sensix.c.

void discover_siblings ( uint_t  node  ) 

Definition at line 243 of file mote_sensix.c.

uint_t energy_diff ( uint_t  prev,
uint_t  cur 
)

Definition at line 690 of file mote_sensix.c.

int_t f_apply ( functor f  ) 

Definition at line 291 of file mote_sensix.c.

int_t f_cancel ( functor f  ) 

Definition at line 325 of file mote_sensix.c.

int_t f_dataready ( functor f  ) 

Definition at line 303 of file mote_sensix.c.

int_t f_delta ( functor f  ) 

Definition at line 592 of file mote_sensix.c.

int_t f_lambda ( functor f  ) 

Definition at line 675 of file mote_sensix.c.

int_t f_mean ( functor f  ) 

Definition at line 617 of file mote_sensix.c.

int_t f_peak_sense ( functor f  ) 

Definition at line 433 of file mote_sensix.c.

int_t f_recite ( functor f  ) 

Definition at line 542 of file mote_sensix.c.

int_t f_sense ( functor f  ) 

Definition at line 404 of file mote_sensix.c.

int_t f_sigma ( functor f  ) 

Definition at line 642 of file mote_sensix.c.

int_t f_spatial_series ( functor f  ) 

Definition at line 512 of file mote_sensix.c.

int_t f_sum ( functor f  ) 

Definition at line 567 of file mote_sensix.c.

int_t f_time_series ( functor f  ) 

Definition at line 471 of file mote_sensix.c.

void free_functor ( functor f  ) 

Definition at line 379 of file mote_sensix.c.

functor* get_functor ( uint_t  idx,
uint_t  node 
)

Definition at line 219 of file mote_sensix.c.

mote_state* get_state ( uint_t  node  )  [read]

Definition at line 214 of file mote_sensix.c.

void init_functor ( functor f,
uint_t  node 
)

Definition at line 356 of file mote_sensix.c.

int_t initialize ( uint_t  id,
uint_t  node 
)

Definition at line 265 of file mote_sensix.c.

void start_discovery ( uint_t  node  ) 

Definition at line 228 of file mote_sensix.c.

uint_t time_diff ( uint_t  prev,
uint_t  cur 
)

Definition at line 696 of file mote_sensix.c.


Variable Documentation

mote_state _node_state[MAX_NODES]

Definition at line 50 of file mote_sensix.c.


© 2008, Los Alamos National Security, LLC.