16#include "../Application/Application.h"
75 return "GSM_UnknownEvent";
137 if(MSMac->nApplicationId!=nApplicationId)
151 MSMac->MSMetrics.nCallBlocked++;
161 MSMac->nApplicationId=nApplicationId;
162 MSMac->nSourceFlag=1;
182 MSMac->MSMetrics.nChannelRequestSent++;
192 unsigned int nTimeSlot=gsmPacket->
nTimeSlot;
int fn_NetSim_Cellular_FormBurst(NetSim_PACKET *packet, Cellular_MS_MAC *MSMac)
int fn_NetSim_Cellular_Run()
int fn_NetSim_Cellular_MS_SendChannelRelease(Cellular_CHANNEL *channel, NETSIM_ID nMSId, NETSIM_ID nMSInterface, double time)
#define CELLULAR_PACKET_TYPE(protocol, type)
NetSim_PACKET * fn_NetSim_Cellular_createPacket(double time, unsigned int nPacketType, NETSIM_ID nSourceId, NETSIM_ID nDestinationId, double dSize, MAC_LAYER_PROTOCOL protocol)
int fn_NetSim_Cellular_FreePacket(NetSim_PACKET *packet)
int fn_NetSim_Cellular_CopyPacket(NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
@ PacketType_ChannelRequest
@ Status_ChannelRequested
int fn_NetSim_Cellular_AddPacketToBuffer(NetSim_PACKET *packet, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
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_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_Cellular_AllocateChannel(NetSim_EVENTDETAILS *pstruEventDetails, NetSim_PACKET *packet)
int fn_NetSim_GSM_Finish()
char * fn_NetSim_GSM_ConfigPacketTrace()
int fn_NetSim_GSM_CopyPacket(NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
int fn_NetSim_GSM_Configure_F(void **var)
int fn_NetSim_GSM_WritePacketTrace(NetSim_PACKET *pstruPacket, char **ppszTrace)
int fn_NetSim_GSM_BS_PhyOut()
int fn_NetSim_GSM_FreePacket(NetSim_PACKET *pstruPacket)
int fn_NetSim_GSM_Metrics(char *szMetrics)
int fn_NetSim_Cellular_SendCallend(NETSIM_ID nMSID, NETSIM_ID nMSInterface, NETSIM_ID nDestinationId, double time)
char * fn_NetSim_GSM_Trace(int nSubEvent)
int fn_NetSim_GSM_Metrics_F(char *szMetrics)
int fn_NetSim_GSM_Configure(void **var)
#define GSM_CARRIER_LENGTH
double fn_NetSim_GSM_GetPacketStartTime(double dCurrentTime, unsigned int nTimeSlot)
#define _declspec(dllexport)
This function is used to trigger the update.
double fnGetPacketSize(NetSim_PACKET *pstruData)
NETSIM_ID get_first_dest_from_packet(NetSim_PACKET *packet)
NetSim_EVENTDETAILS * pstruEventDetails_Formal
NetSim_EVENTDETAILS char * pszAppPath_Formal
NetSim_EVENTDETAILS char char int nVersion_Type
NetSim_EVENTDETAILS char char * pszWritePath_Formal
NetSim_EVENTDETAILS char char int void ** fnPointer
#define DEVICE_TYPE(DeviceId)
EXPORTED struct stru_NetSim_Network * NETWORK
#define DEVICE_MACVAR(DeviceId, InterfaceId)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define fn_NetSim_Metrics_Add(packet)
#define fn_NetSim_Packet_FreePacket(pstruPacket)
#define fn_NetSim_WritePacketTrace(pstruPacket)
#define fnpAddEvent(pstruEvent)
Structure for Erlang_call application.
int(* fn_BlockCall)(ptrAPPLICATION_INFO appInfo, NETSIM_ID nSourceId, NETSIM_ID nDestinationId, double time)
Structure to store application information.
unsigned int nRequestType
Cellular_CHANNEL * pstruAllocatedChannel
struct stru_NetSim_Packet * pPacket
netsimDEVICE_TYPE nDeviceType
void * Packet_MACProtocol
struct stru_NetSim_Packet_AppLayer * pstruAppData
struct stru_NetSim_Packet_PhyLayer * pstruPhyData
struct stru_NetSim_Packet_MACLayer * pstruMacData