#include "main.h"
#include "P2P.h"
#include "P2P_Enum.h"
Go to the source code of this file.
|
| static void | add_event_link_up () |
| |
| static int | fn_NetSim_P2P_CalulateReceivedPower () |
| |
| int | P2P_MacOut_Handler () |
| |
| int | P2P_MacIn_Handler () |
| |
| int | P2P_PhyOut_Handler () |
| |
| int | P2P_PhyIn_Handler () |
| |
| int | fn_NetSim_P2P_Run () |
| |
| PHY_MODULATION | getModulationFromString (char *val) |
| |
| static void | configure_wireless_P2P (NETSIM_ID d, NETSIM_ID in, void *xmlNetSimNode) |
| |
| int | fn_NetSim_P2P_Configure (void **var) |
| |
| int | fn_NetSim_P2P_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_P2P_Finish () |
| |
| char * | fn_NetSim_P2P_Trace (int nSubEvent) |
| |
| int | fn_NetSim_P2P_FreePacket (NetSim_PACKET *pstruPacket) |
| |
| int | fn_NetSim_P2P_CopyPacket (NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket) |
| |
| int | fn_NetSim_P2P_Metrics (PMETRICSWRITER metricsWriter) |
| |
| char * | fn_NetSim_P2P_ConfigPacketTrace (const void *xmlNetSimNode) |
| |
| int | fn_NetSim_P2P_WritePacketTrace (NetSim_PACKET *pstruPacket, char **ppszTrace) |
| |
| static void | p2p_gettxinfo (NETSIM_ID nTxId, NETSIM_ID nTxInterface, NETSIM_ID nRxId, NETSIM_ID nRxInterface, PTX_INFO Txinfo) |
| |
| static bool | CheckFrequencyInterfrence (double dFrequency1, double dFrequency2, double bandwidth) |
| |
| static bool | check_interference (NETSIM_ID t, NETSIM_ID ti, NETSIM_ID r, NETSIM_ID ri) |
| |
| static int | p2p_CalculateReceivedPower (NETSIM_ID tx, NETSIM_ID txi, NETSIM_ID rx, NETSIM_ID rxi) |
| |
| int | fn_NetSim_P2P_LinkStateChanged (NETSIM_ID linkId, LINK_STATE newState) |
| |
◆ add_event_link_up()
| static void add_event_link_up |
( |
| ) |
|
|
static |
◆ check_interference()
◆ CheckFrequencyInterfrence()
| static bool CheckFrequencyInterfrence |
( |
double |
dFrequency1, |
|
|
double |
dFrequency2, |
|
|
double |
bandwidth |
|
) |
| |
|
static |
◆ configure_wireless_P2P()
Definition at line 93 of file P2P.c.
◆ fn_NetSim_P2P_CalulateReceivedPower()
| static int fn_NetSim_P2P_CalulateReceivedPower |
( |
| ) |
|
|
static |
◆ fn_NetSim_P2P_ConfigPacketTrace()
| char * fn_NetSim_P2P_ConfigPacketTrace |
( |
const void * |
xmlNetSimNode | ) |
|
This function will return the string to write packet trace heading.
Definition at line 256 of file P2P.c.
◆ fn_NetSim_P2P_Configure()
| int fn_NetSim_P2P_Configure |
( |
void ** |
var | ) |
|
This function is called by NetworkStack.dll, while configuring the device Mac/Phy layer for P2P protocol.
Definition at line 128 of file P2P.c.
◆ fn_NetSim_P2P_CopyPacket()
This function is called by NetworkStack.dll, to copy the P2P protocol from source packet to destination.
Definition at line 240 of file P2P.c.
◆ fn_NetSim_P2P_Finish()
| int fn_NetSim_P2P_Finish |
( |
| ) |
|
This function is called by NetworkStack.dll, once simulation end to free the allocated memory for the network.
Definition at line 200 of file P2P.c.
◆ fn_NetSim_P2P_FreePacket()
This function is called by NetworkStack.dll, to free the P2P protocol
Definition at line 232 of file P2P.c.
◆ fn_NetSim_P2P_Init()
| int fn_NetSim_P2P_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 P2P parameters.
Definition at line 184 of file P2P.c.
◆ fn_NetSim_P2P_LinkStateChanged()
◆ fn_NetSim_P2P_Metrics()
This function write the Metrics in Metrics.txt
Definition at line 248 of file P2P.c.
◆ fn_NetSim_P2P_Run()
| int fn_NetSim_P2P_Run |
( |
| ) |
|
This function is called by NetworkStack.dll, whenever the event gets triggered inside the NetworkStack.dll for the Mac/Phy layer P2P protocol It includes MAC_OUT, MAC_IN, PHY_OUT, PHY_IN and TIMER_EVENT.
Definition at line 41 of file P2P.c.
◆ fn_NetSim_P2P_Trace()
| char * fn_NetSim_P2P_Trace |
( |
int |
nSubEvent | ) |
|
This function is called by NetworkStack.dll, while writing the event trace to get the sub event as a string.
Definition at line 224 of file P2P.c.
◆ fn_NetSim_P2P_WritePacketTrace()
| int fn_NetSim_P2P_WritePacketTrace |
( |
NetSim_PACKET * |
pstruPacket, |
|
|
char ** |
ppszTrace |
|
) |
| |
This function will return the string to write packet trace.
Definition at line 264 of file P2P.c.
◆ getModulationFromString()
Definition at line 74 of file P2P.c.
◆ p2p_CalculateReceivedPower()
◆ p2p_gettxinfo()
◆ P2P_MacIn_Handler()
| int P2P_MacIn_Handler |
( |
| ) |
|
◆ P2P_MacOut_Handler()
| int P2P_MacOut_Handler |
( |
| ) |
|
◆ P2P_PhyIn_Handler()
| int P2P_PhyIn_Handler |
( |
| ) |
|
◆ P2P_PhyOut_Handler()
| int P2P_PhyOut_Handler |
( |
| ) |
|