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

Go to the source code of this file.

Macros

#define BOLTZMAAN_CONSTANT   1.38064852e-23
 

Functions

static void create_tx_info_for_ut (NETSIM_ID d, NETSIM_ID in, PTX_INFO info, LINKTYPE linkType)
 
static void create_tx_info_for_gw (NETSIM_ID d, NETSIM_ID in, PTX_INFO info, LINKTYPE linkType)
 
static void fill_propagation_from_link (NETSIM_ID d, NETSIM_ID in, PPROPAGATION prop)
 
void satellite_propgation_ut_init (NETSIM_ID d, NETSIM_ID in)
 
void satellite_propgation_gw_init (NETSIM_ID d, NETSIM_ID in)
 
void satellite_propagation_ut_calculate_rxpower (NETSIM_ID d, NETSIM_ID in, double time)
 
void satellite_propagation_gw_calculate_rxpower (NETSIM_ID d, NETSIM_ID in, double time)
 
static double satellite_get_rx_power_dbm (NETSIM_ID t, NETSIM_ID ti, NETSIM_ID r, NETSIM_ID ri)
 
static double satellite_get_fading_loss_db (NETSIM_ID t, NETSIM_ID ti, NETSIM_ID r, NETSIM_ID ri)
 
static double satellite_calculate_noise (NETSIM_ID t, NETSIM_ID ti, NETSIM_ID r, NETSIM_ID ri)
 
static double satellite_calculate_snr (double pdbm, double ndbm)
 
static ptrSUPERFRAME find_superframe (NETSIM_ID t, NETSIM_ID ti, NETSIM_ID r, NETSIM_ID ri)
 
static double satellite_calculate_ber (ptrSUPERFRAME sf, double snr)
 
static PACKET_STATUS satellite_isPacketErrored (ptrSUPERFRAME sf, double bytes, double snr)
 
void satellite_check_for_packet_error (NETSIM_ID t, NETSIM_ID ti, NETSIM_ID r, NETSIM_ID ri, NetSim_PACKET *packet)
 

Macro Definition Documentation

◆ BOLTZMAAN_CONSTANT

#define BOLTZMAAN_CONSTANT   1.38064852e-23

Definition at line 237 of file Satellite_PropagationModel.c.

Function Documentation

◆ create_tx_info_for_gw()

static void create_tx_info_for_gw ( NETSIM_ID  d,
NETSIM_ID  in,
PTX_INFO  info,
LINKTYPE  linkType 
)
static

Definition at line 128 of file Satellite_PropagationModel.c.

Here is the caller graph for this function:

◆ create_tx_info_for_ut()

static void create_tx_info_for_ut ( NETSIM_ID  d,
NETSIM_ID  in,
PTX_INFO  info,
LINKTYPE  linkType 
)
static

Definition at line 84 of file Satellite_PropagationModel.c.

Here is the caller graph for this function:

◆ fill_propagation_from_link()

static void fill_propagation_from_link ( NETSIM_ID  d,
NETSIM_ID  in,
PPROPAGATION  prop 
)
static

Definition at line 119 of file Satellite_PropagationModel.c.

Here is the caller graph for this function:

◆ find_superframe()

static ptrSUPERFRAME find_superframe ( NETSIM_ID  t,
NETSIM_ID  ti,
NETSIM_ID  r,
NETSIM_ID  ri 
)
static

Definition at line 277 of file Satellite_PropagationModel.c.

Here is the caller graph for this function:

◆ satellite_calculate_ber()

static double satellite_calculate_ber ( ptrSUPERFRAME  sf,
double  snr 
)
static

Definition at line 305 of file Satellite_PropagationModel.c.

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

◆ satellite_calculate_noise()

static double satellite_calculate_noise ( NETSIM_ID  t,
NETSIM_ID  ti,
NETSIM_ID  r,
NETSIM_ID  ri 
)
static

Definition at line 238 of file Satellite_PropagationModel.c.

Here is the caller graph for this function:

◆ satellite_calculate_snr()

static double satellite_calculate_snr ( double  pdbm,
double  ndbm 
)
static

Definition at line 272 of file Satellite_PropagationModel.c.

Here is the caller graph for this function:

◆ satellite_check_for_packet_error()

void satellite_check_for_packet_error ( NETSIM_ID  t,
NETSIM_ID  ti,
NETSIM_ID  r,
NETSIM_ID  ri,
NetSim_PACKET packet 
)

Definition at line 396 of file Satellite_PropagationModel.c.

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

◆ satellite_get_fading_loss_db()

static double satellite_get_fading_loss_db ( NETSIM_ID  t,
NETSIM_ID  ti,
NETSIM_ID  r,
NETSIM_ID  ri 
)
static

Definition at line 209 of file Satellite_PropagationModel.c.

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

◆ satellite_get_rx_power_dbm()

static double satellite_get_rx_power_dbm ( NETSIM_ID  t,
NETSIM_ID  ti,
NETSIM_ID  r,
NETSIM_ID  ri 
)
static

Definition at line 181 of file Satellite_PropagationModel.c.

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

◆ satellite_isPacketErrored()

static PACKET_STATUS satellite_isPacketErrored ( ptrSUPERFRAME  sf,
double  bytes,
double  snr 
)
static

Definition at line 320 of file Satellite_PropagationModel.c.

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

◆ satellite_propagation_gw_calculate_rxpower()

void satellite_propagation_gw_calculate_rxpower ( NETSIM_ID  d,
NETSIM_ID  in,
double  time 
)

Definition at line 172 of file Satellite_PropagationModel.c.

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

◆ satellite_propagation_ut_calculate_rxpower()

void satellite_propagation_ut_calculate_rxpower ( NETSIM_ID  d,
NETSIM_ID  in,
double  time 
)

Definition at line 165 of file Satellite_PropagationModel.c.

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

◆ satellite_propgation_gw_init()

void satellite_propgation_gw_init ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 61 of file Satellite_PropagationModel.c.

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

◆ satellite_propgation_ut_init()

void satellite_propgation_ut_init ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 40 of file Satellite_PropagationModel.c.

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