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_networking.h File Reference

#include "sensix.h"
#include "mote_types.h"
#include "mote_sensix.h"

Go to the source code of this file.

Classes

struct  _msg_header

Typedefs

typedef struct _msg_header msg_hdr_t

Enumerations

enum  { REDISCOVER_TIME = 100, REDISCOVER_OFFSET = 2 }
enum  { REDISCOVER_RESET = (3 * REDISCOVER_TIME / 4) }
enum  { METADATA = 1, DATA = 2, CMD = 3 }
enum  { PROTOCOL = 0xff, VERSION = 0x01 }
enum  { HEADER_SIZE = 5, MAX_MSG_SIZE = 112 }

Functions

byte_t load_header (byte_t *, byte_t, byte_t)
byte_t parse_packet (byte_t *, uint_t, uint_t)
void xmit_data (functor *)
void xmit_datum (functor *)
void xmit_metadata (byte_t, uint_t)
void xmit_command (functor *)
void rediscovery (uint_t)


Typedef Documentation

typedef struct _msg_header msg_hdr_t


Enumeration Type Documentation

anonymous enum

Enumerator:
REDISCOVER_TIME 
REDISCOVER_OFFSET 

Definition at line 43 of file mote_networking.h.

anonymous enum

Enumerator:
REDISCOVER_RESET 

Definition at line 44 of file mote_networking.h.

anonymous enum

Enumerator:
METADATA 
DATA 
CMD 

Definition at line 46 of file mote_networking.h.

anonymous enum

Enumerator:
PROTOCOL 
VERSION 

Definition at line 48 of file mote_networking.h.

anonymous enum

Enumerator:
HEADER_SIZE 
MAX_MSG_SIZE 

Definition at line 50 of file mote_networking.h.


Function Documentation

byte_t load_header ( byte_t ,
byte_t  ,
byte_t   
)

Definition at line 50 of file mote_networking.c.

byte_t parse_packet ( byte_t ,
uint_t  ,
uint_t   
)

Definition at line 668 of file mote_networking.c.

void rediscovery ( uint_t   ) 

Definition at line 562 of file mote_networking.c.

void xmit_command ( functor  ) 

Definition at line 317 of file mote_networking.c.

void xmit_data ( functor  ) 

Definition at line 64 of file mote_networking.c.

void xmit_datum ( functor  ) 

Definition at line 114 of file mote_networking.c.

void xmit_metadata ( byte_t  ,
uint_t   
)

TODO: appropriate to network_order id?

TODO: potential duplicate ids due to representation?

TODO: appropriate to network_order id?

Definition at line 159 of file mote_networking.c.


© 2008, Los Alamos National Security, LLC.