#include "main.h"
#include "802_22.h"
Go to the source code of this file.
◆ 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.
◆ 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.
◆ 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.
◆ 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.
◆ fn_NetSim_CR_ConfigPacketTrace()
| char * fn_NetSim_CR_ConfigPacketTrace |
( |
| ) |
|
◆ 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.
◆ fn_NetSim_CR_CopyPacket()
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.
◆ 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.
◆ 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.
◆ 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.
◆ fn_NetSim_CR_FreePacket()
This function is called by NetworkStack.dll,to free the packet.
Definition at line 136 of file 802_22.c.
◆ 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.
◆ fn_NetSim_CR_Metrics()
This function write the metrics in metrics.txt
Definition at line 141 of file 802_22.c.
◆ 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.
◆ 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.
◆ fn_NetSim_CR_Trace()
| char * fn_NetSim_CR_Trace |
( |
int |
nSubEvent | ) |
|
◆ fn_NetSim_CR_WritePacketTrace()
| char * fn_NetSim_CR_WritePacketTrace |
( |
| ) |
|