NetSim Source Code Help
Loading...
Searching...
No Matches
Satellite_PHY.c File Reference
#include "main.h"
#include "SATELLITE.h"
#include "Satellite_PHY.h"
#include "Satellite_MAC.h"
#include "Satellite_HDR.h"
#include "Satellite_PropagationModel.h"
Include dependency graph for Satellite_PHY.c:

Go to the source code of this file.

Macros

#define SPEED_OF_LIGHT   299792458.0
 

Functions

ptrSATELLITE_PHY satellite_phy_alloc (NETSIM_ID d, NETSIM_ID in)
 
ptrSATELLITE_GW_PHY satellite_gw_phy_alloc (NETSIM_ID d, NETSIM_ID in)
 
ptrSATELLITE_UT_PHY satellite_ut_phy_alloc (NETSIM_ID d, NETSIM_ID in)
 
void satellite_ut_phy_init (NETSIM_ID d, NETSIM_ID in)
 
void satellite_gw_phy_init (NETSIM_ID d, NETSIM_ID in)
 
static double calculate_propagation_delay (NETSIM_ID d, NETSIM_ID r)
 
static void satellite_send_packet (NetSim_PACKET *packet, NETSIM_ID d, NETSIM_ID in, NETSIM_ID r, NETSIM_ID rin)
 
static void write_trace (NetSim_PACKET *packet)
 
static void send_to_mac (NETSIM_ID d, NETSIM_ID in, NetSim_PACKET *packet, double time)
 
static void satellite_utphy_handle_phy_out ()
 
static void satellite_ut_handle_phyIn ()
 
static void satellite_gwphy_handle_phy_out ()
 
static void satellite_gw_handle_phyIn ()
 
static void forward_to_phyout ()
 
static void satellite_handle_PhyIn ()
 
static void satellite_forward_packet (NETSIM_ID d, NETSIM_ID in, NetSim_PACKET *packet, double time, NETSIM_ID r, NETSIM_ID rin)
 
static void satellite_handle_PhyOut ()
 
void satellite_handle_phy_out ()
 
void satellite_handle_phy_in ()
 

Macro Definition Documentation

◆ SPEED_OF_LIGHT

#define SPEED_OF_LIGHT   299792458.0

Definition at line 76 of file Satellite_PHY.c.

Function Documentation

◆ calculate_propagation_delay()

static double calculate_propagation_delay ( NETSIM_ID  d,
NETSIM_ID  r 
)
static

Definition at line 77 of file Satellite_PHY.c.

Here is the caller graph for this function:

◆ forward_to_phyout()

static void forward_to_phyout ( )
static

Definition at line 220 of file Satellite_PHY.c.

Here is the caller graph for this function:

◆ satellite_forward_packet()

static void satellite_forward_packet ( NETSIM_ID  d,
NETSIM_ID  in,
NetSim_PACKET packet,
double  time,
NETSIM_ID  r,
NETSIM_ID  rin 
)
static

Definition at line 255 of file Satellite_PHY.c.

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

◆ satellite_gw_handle_phyIn()

static void satellite_gw_handle_phyIn ( )
static

Definition at line 190 of file Satellite_PHY.c.

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

◆ satellite_gw_phy_alloc()

ptrSATELLITE_GW_PHY satellite_gw_phy_alloc ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 44 of file Satellite_PHY.c.

Here is the caller graph for this function:

◆ satellite_gw_phy_init()

void satellite_gw_phy_init ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 68 of file Satellite_PHY.c.

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

◆ satellite_gwphy_handle_phy_out()

static void satellite_gwphy_handle_phy_out ( )
static

Definition at line 181 of file Satellite_PHY.c.

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

◆ satellite_handle_phy_in()

void satellite_handle_phy_in ( )

Definition at line 334 of file Satellite_PHY.c.

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

◆ satellite_handle_phy_out()

void satellite_handle_phy_out ( )

Definition at line 311 of file Satellite_PHY.c.

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

◆ satellite_handle_PhyIn()

static void satellite_handle_PhyIn ( )
static

Definition at line 228 of file Satellite_PHY.c.

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

◆ satellite_handle_PhyOut()

static void satellite_handle_PhyOut ( )
static

Definition at line 295 of file Satellite_PHY.c.

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

◆ satellite_phy_alloc()

ptrSATELLITE_PHY satellite_phy_alloc ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 35 of file Satellite_PHY.c.

Here is the caller graph for this function:

◆ satellite_send_packet()

static void satellite_send_packet ( NetSim_PACKET packet,
NETSIM_ID  d,
NETSIM_ID  in,
NETSIM_ID  r,
NETSIM_ID  rin 
)
static

Definition at line 85 of file Satellite_PHY.c.

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

◆ satellite_ut_handle_phyIn()

static void satellite_ut_handle_phyIn ( )
static

Definition at line 151 of file Satellite_PHY.c.

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

◆ satellite_ut_phy_alloc()

ptrSATELLITE_UT_PHY satellite_ut_phy_alloc ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 53 of file Satellite_PHY.c.

Here is the caller graph for this function:

◆ satellite_ut_phy_init()

void satellite_ut_phy_init ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 62 of file Satellite_PHY.c.

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

◆ satellite_utphy_handle_phy_out()

static void satellite_utphy_handle_phy_out ( )
static

Definition at line 142 of file Satellite_PHY.c.

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

◆ send_to_mac()

static void send_to_mac ( NETSIM_ID  d,
NETSIM_ID  in,
NetSim_PACKET packet,
double  time 
)
static

Definition at line 119 of file Satellite_PHY.c.

Here is the caller graph for this function:

◆ write_trace()

static void write_trace ( NetSim_PACKET packet)
static

Definition at line 113 of file Satellite_PHY.c.

Here is the caller graph for this function: