N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

/home/brennan/n-sim/Vaike/linux/system-addons/networking/sensor_self.h File Reference

WSN node structure. More...

#include <limits.h>
#include "avl.h"
#include "mesh_ipc.h"
#include "mesh_protocol.h"
#include "mesh_analysis.h"
#include "mesh_net.h"

Go to the source code of this file.

Classes

struct  battery_t
struct  _self

Defines

#define MAX_PROTOCOLS   16
#define MAX_ANALYSIS   16

Typedefs

typedef _self self_t

Functions

double get_discharge_rate (self_t *self)
void init_self (self_t *self)
size_t max_ctl_size (self_t *self)


Detailed Description

WSN node structure.

Revision
1.2

Original Author: Sean M. Brennan <brennan@lanl.gov>

Author
sean_m_brennan

Created: August 1, 2007

Date
2008/02/05 19:14:30

Definition in file sensor_self.h.


Define Documentation

#define MAX_ANALYSIS   16
 

Definition at line 47 of file sensor_self.h.

#define MAX_PROTOCOLS   16
 

Definition at line 46 of file sensor_self.h.


Typedef Documentation

typedef struct _self self_t
 


Function Documentation

double get_discharge_rate self_t self  ) 
 

Definition at line 45 of file sensor_self.c.

References _self::battery, battery_t::buf_size, battery_t::file, battery_t::parse_string, and rate.

Referenced by gather_statistics().

void init_self self_t self  ) 
 

Definition at line 61 of file sensor_self.c.

References _self::battery, _self::broadcast, battery_t::file, _self::ip_addr, _self::mac_addr, MAC_ADDR_LEN, NET_ADDR_LEN, _self::netmask, and battery_t::parse_string.

Referenced by main().

size_t max_ctl_size self_t self  ) 
 

Definition at line 85 of file sensor_self.c.

References _analysis::ctl_size, _protocol::ctl_size, max, _analysis::next, and _protocol::next.

Referenced by mesh_recv().


© 2007, Los Alamos National Security, LLC.