NetSim Source Code Help
Loading...
Searching...
No Matches
802_22.c File Reference
#include "main.h"
#include "802_22.h"
Include dependency graph for 802_22.c:

Go to the source code of this file.

Functions

int fn_NetSim_CR_CPE_MACIN ()
 
int fn_NetSim_CR_BS_PhysicalOut ()
 
int fn_NetSim_CR_PhysicalIn ()
 
int fn_NetSim_CR_BS_MacOut ()
 
int fn_NetSim_CR_Init (struct stru_NetSim_Network *NETWORK_Formal, NetSim_EVENTDETAILS *pstruEventDetails_Formal, char *pszAppPath_Formal, char *pszWritePath_Formal, int nVersion_Type, void **fnPointer)
 
int fn_NetSim_CR_Run ()
 
char * fn_NetSim_CR_Trace (int nSubEvent)
 
int fn_NetSim_CR_CopyPacket (const NetSim_PACKET *pstruSrcPacket, const NetSim_PACKET *pstruDestPacket)
 
int fn_NetSim_CR_FreePacket (const NetSim_PACKET *pstruPacket)
 
int fn_NetSim_CR_Metrics (PMETRICSWRITER metricsWriter)
 
int fn_NetSim_CR_Finish ()
 
int fn_NetSim_CR_Configure (void **var)
 
char * fn_NetSim_CR_ConfigPacketTrace ()
 
char * fn_NetSim_CR_WritePacketTrace ()
 
int fn_NetSim_CR_CPE_PhysicalOut ()
 
int fn_NetSim_CR_BS_MACIN ()
 
int fn_NetSim_CR_BS_AllocateBandwidth ()
 

Function Documentation

◆ fn_NetSim_CR_BS_AllocateBandwidth()

int fn_NetSim_CR_BS_AllocateBandwidth ( )

The function is used to allocate the bandwidtrh for the CR base-station

Definition at line 501 of file 802_22.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_CR_BS_MACIN()

int fn_NetSim_CR_BS_MACIN ( )

This function checks the forwarded packet is Data packet or Control packet and call the appropriate functions

Definition at line 435 of file 802_22.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_CR_BS_MacOut()

int fn_NetSim_CR_BS_MacOut ( )

This function is used to initialize the MAC layer parameters of CR Base station

Definition at line 479 of file 802_22.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_CR_BS_PhysicalOut()

int fn_NetSim_CR_BS_PhysicalOut ( )

This function is used to initialize the Physical layer parameters of Cognitive Radio Base station

Definition at line 166 of file 802_22.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_CR_ConfigPacketTrace()

char * fn_NetSim_CR_ConfigPacketTrace ( )

Definition at line 157 of file 802_22.c.

◆ fn_NetSim_CR_Configure()

int fn_NetSim_CR_Configure ( void **  var)

This function is called by NetworkStack.dll to configure the CR devices.

Definition at line 152 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_CopyPacket()

int fn_NetSim_CR_CopyPacket ( const NetSim_PACKET pstruSrcPacket,
const NetSim_PACKET pstruDestPacket 
)

This function is called by NetworkStack.dll, to copy the CR destination packet to source packet.

Definition at line 131 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_CPE_MACIN()

int fn_NetSim_CR_CPE_MACIN ( )

This function is used to initialize the MAC layer parameters of CR CPE

Definition at line 323 of file 802_22.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_CR_CPE_PhysicalOut()

int fn_NetSim_CR_CPE_PhysicalOut ( )

This function is used to initialize the Physical layer parameters of CR CPE

Definition at line 393 of file 802_22.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_CR_Finish()

int fn_NetSim_CR_Finish ( )

This function is called by NetworkStack.dll, once the simulation end, this function free the allocated memory for the network.

Definition at line 147 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_FreePacket()

int fn_NetSim_CR_FreePacket ( const NetSim_PACKET pstruPacket)

This function is called by NetworkStack.dll,to free the packet.

Definition at line 136 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_Init()

int fn_NetSim_CR_Init ( struct stru_NetSim_Network NETWORK_Formal,
NetSim_EVENTDETAILS pstruEventDetails_Formal,
char *  pszAppPath_Formal,
char *  pszWritePath_Formal,
int  nVersion_Type,
void **  fnPointer 
)

This function Initializes the CR parameters.

Definition at line 8 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_Metrics()

int fn_NetSim_CR_Metrics ( PMETRICSWRITER  metricsWriter)

This function write the metrics in metrics.txt

Definition at line 141 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_PhysicalIn()

int fn_NetSim_CR_PhysicalIn ( )

This function is used to initialize the Physical layer parameters of Cognitive Radio Base station

Definition at line 308 of file 802_22.c.

Here is the caller graph for this function:

◆ fn_NetSim_CR_Run()

int fn_NetSim_CR_Run ( )

This function is called by NetworkStack.dll, whenever the event gets triggered inside the NetworkStack.dll for the MAC layer in Cognitive Radio. It includes MAC_OUT,MAC_IN,PHY_OUT,PHY_IN and TIMER_EVENT.

Definition at line 18 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_Trace()

char * fn_NetSim_CR_Trace ( int  nSubEvent)

Definition at line 126 of file 802_22.c.

Here is the call graph for this function:

◆ fn_NetSim_CR_WritePacketTrace()

char * fn_NetSim_CR_WritePacketTrace ( )

Definition at line 161 of file 802_22.c.