NetSim Source Code Help
Loading...
Searching...
No Matches
GSM.c File Reference
#include "main.h"
#include "Cellular.h"
#include "../Application/Application.h"
Include dependency graph for GSM.c:

Go to the source code of this file.

Functions

int fn_NetSim_GSM_Init_F (struct stru_NetSim_Network *NETWORK_Formal, NetSim_EVENTDETAILS *pstruEventDetails_Formal, char *pszAppPath_Formal, char *pszWritePath_Formal, int nVersion_Type, void **fnPointer)
 
int fn_NetSim_GSM_Configure_F (void **var)
 
int fn_NetSim_GSM_Metrics_F (char *szMetrics)
 
int fn_NetSim_GSM_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_GSM_Configure (void **var)
 
int fn_NetSim_GSM_Run ()
 
char * fn_NetSim_GSM_Trace (int nSubEvent)
 
int fn_NetSim_GSM_FreePacket (NetSim_PACKET *pstruPacket)
 
int fn_NetSim_GSM_CopyPacket (NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
 
int fn_NetSim_GSM_Metrics (char *szMetrics)
 
char * fn_NetSim_GSM_ConfigPacketTrace ()
 
int fn_NetSim_GSM_WritePacketTrace (NetSim_PACKET *pstruPacket, char **ppszTrace)
 
int fn_NetSim_GSM_Finish ()
 
int fn_NetSim_Cellular_AddPacketToBuffer (NetSim_PACKET *packet, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 
int fn_NetSim_Cellular_AllocateChannel (NetSim_EVENTDETAILS *pstruEventDetails, NetSim_PACKET *packet)
 
int fn_NetSim_GSM_BS_PhyOut ()
 
int fn_NetSim_Cellular_SendCallend (NETSIM_ID nMSID, NETSIM_ID nMSInterface, NETSIM_ID nDestinationId, double time)
 

Function Documentation

◆ fn_NetSim_Cellular_AddPacketToBuffer()

int fn_NetSim_Cellular_AddPacketToBuffer ( NetSim_PACKET packet,
NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)

This function is used to add a packet to the MAC buffer of the mobile station

Definition at line 123 of file GSM.c.

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

◆ fn_NetSim_Cellular_AllocateChannel()

int fn_NetSim_Cellular_AllocateChannel ( NetSim_EVENTDETAILS pstruEventDetails,
NetSim_PACKET packet 
)

This function is used to allocate the channels

Definition at line 130 of file GSM.c.

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

◆ fn_NetSim_Cellular_SendCallend()

int fn_NetSim_Cellular_SendCallend ( NETSIM_ID  nMSID,
NETSIM_ID  nMSInterface,
NETSIM_ID  nDestinationId,
double  time 
)

This function is called at the end of a call

Definition at line 215 of file GSM.c.

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

◆ fn_NetSim_GSM_BS_PhyOut()

int fn_NetSim_GSM_BS_PhyOut ( )

This function is called whenever PHYSICAL OUT event is triggered at the base station

Definition at line 187 of file GSM.c.

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

◆ fn_NetSim_GSM_ConfigPacketTrace()

char * fn_NetSim_GSM_ConfigPacketTrace ( )

This function is used to configure the packet trace

Definition at line 103 of file GSM.c.

◆ fn_NetSim_GSM_Configure()

int fn_NetSim_GSM_Configure ( void **  var)

This function is called by the NetworkStack.dll, while configuring the Network for GSM protocol

Definition at line 50 of file GSM.c.

Here is the call graph for this function:

◆ fn_NetSim_GSM_Configure_F()

int fn_NetSim_GSM_Configure_F ( void **  var)
Here is the caller graph for this function:

◆ fn_NetSim_GSM_CopyPacket()

int fn_NetSim_GSM_CopyPacket ( NetSim_PACKET pstruDestPacket,
NetSim_PACKET pstruSrcPacket 
)

This function is called by NetworkStack.dll, to copy the GSM protocol related information to a new packet

Definition at line 89 of file GSM.c.

Here is the call graph for this function:

◆ fn_NetSim_GSM_Finish()

int fn_NetSim_GSM_Finish ( )

This function is called by NetworkStack.dll, once simulation ends, to free the allocated memory

Definition at line 118 of file GSM.c.

◆ fn_NetSim_GSM_FreePacket()

int fn_NetSim_GSM_FreePacket ( NetSim_PACKET pstruPacket)

This function is called by NetworkStack.dll, to free the GSM protocol control packets.

Definition at line 81 of file GSM.c.

Here is the call graph for this function:

◆ fn_NetSim_GSM_Init()

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

This function is used to initialize the GSM parameters in a network

Definition at line 33 of file GSM.c.

Here is the call graph for this function:

◆ fn_NetSim_GSM_Init_F()

int fn_NetSim_GSM_Init_F ( struct stru_NetSim_Network NETWORK_Formal,
NetSim_EVENTDETAILS pstruEventDetails_Formal,
char *  pszAppPath_Formal,
char *  pszWritePath_Formal,
int  nVersion_Type,
void **  fnPointer 
)
Here is the caller graph for this function:

◆ fn_NetSim_GSM_Metrics()

int fn_NetSim_GSM_Metrics ( char *  szMetrics)

This function writes the GSM metrics in Metrics.txt

Definition at line 96 of file GSM.c.

Here is the call graph for this function:

◆ fn_NetSim_GSM_Metrics_F()

int fn_NetSim_GSM_Metrics_F ( char *  szMetrics)
Here is the caller graph for this function:

◆ fn_NetSim_GSM_Run()

int fn_NetSim_GSM_Run ( )

This function is called by NetworkStack.dll, which inturn calls the Cellular run function which is present in Cellular.c

Definition at line 58 of file GSM.c.

Here is the call graph for this function:

◆ fn_NetSim_GSM_Trace()

char * fn_NetSim_GSM_Trace ( int  nSubEvent)

This function is called by NetworkStack.dll, while writing the evnt trace to get the sub event as a string.

Definition at line 66 of file GSM.c.

◆ fn_NetSim_GSM_WritePacketTrace()

int fn_NetSim_GSM_WritePacketTrace ( NetSim_PACKET pstruPacket,
char **  ppszTrace 
)

This function is used to write the packet trace

Definition at line 110 of file GSM.c.