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/OrbisQuartus/server/protocols/csmaca.c File Reference

#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include "mac_lib.h"

Go to the source code of this file.

Defines

#define OQ_OFDM   10
#define OQ_FHSS   50
#define OQ_DSSS   20
#define OQ_THRU   91

Functions

long long csmaca_throughput (void)
int csmaca_a_filter (struct oq_req_resp *rr)
int csmaca_b_filter (struct oq_req_resp *rr)
int csmaca_g_filter (struct oq_req_resp *rr)


Define Documentation

#define OQ_DSSS   20
 

Definition at line 46 of file csmaca.c.

Referenced by csmaca_b_filter(), and csmaca_g_filter().

#define OQ_FHSS   50
 

Todo:
{determine actual OFDM slot time}

Definition at line 45 of file csmaca.c.

#define OQ_OFDM   10
 

Definition at line 43 of file csmaca.c.

Referenced by csmaca_a_filter().

#define OQ_THRU   91
 

Definition at line 47 of file csmaca.c.

Referenced by csmaca_throughput().


Function Documentation

int csmaca_a_filter struct oq_req_resp rr  ) 
 

Definition at line 68 of file csmaca.c.

References OQ_OFDM.

int csmaca_b_filter struct oq_req_resp rr  ) 
 

Definition at line 74 of file csmaca.c.

References OQ_DSSS.

int csmaca_g_filter struct oq_req_resp rr  ) 
 

Definition at line 80 of file csmaca.c.

References OQ_DSSS.

long long csmaca_throughput void   ) 
 

Definition at line 62 of file csmaca.c.

References OQ_THRU.


© 2007, Los Alamos National Security, LLC.