NetSim Source Code Help
Loading...
Searching...
No Matches
ErrorModel.h File Reference
#include "Wireless.h"
Include dependency graph for ErrorModel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_ber
 

Typedefs

typedef struct stru_ber BER
 
typedef struct stru_berptrBER
 

Functions

double calculate_ber (double snr, BER ber_table[], size_t table_len)
 
double calculate_sinr (double dReceivedPower_dbm, double interferencePower_dBm, double bandwidth_mHz)
 
double calculate_BER (PHY_MODULATION modulation, double dReceivedPower_dBm, double dInterferencePower_dBm, double dBandwidth_MHz)
 
double propagation_calculateRXSensitivity (double PEP, double refPacketSize, PHY_MODULATION modulation, double bandwidth)
 
double add_power_in_dbm (double p1_dbm, double p2_dbm)
 
double substract_power_in_dbm (double p1_dbm, double p2_dbm)
 
double find_power_from_snr (double snr, double bandwidth)
 
double find_snr_from_ber (double ber, PHY_MODULATION modulation)
 
double Calculate_ber_by_calculation (double sinr, PHY_MODULATION modulation, double dataRate_mbps, double bandwidth_mHz)
 
double calculate_rxpower_by_ber (double refBer, PHY_MODULATION modulation, double datarate_mbps, double bandwidth_mhz)
 
double calculate_rxpower_by_per (double per, double refPacketSize, PHY_MODULATION modulation, double datarate_mbps, double bandwidth_mhz)
 
ptrBER read_ber_file (char *file, size_t *len)
 
double calculate_FEC_BER (PHY_MODULATION modulation, double codingRate, double dReceivedPower_dBm, double interferencePower_dBm, double dBandwidth_MHz, double dataRate_mbps)
 

Typedef Documentation

◆ BER

typedef struct stru_ber BER

◆ ptrBER

typedef struct stru_ber * ptrBER

Function Documentation

◆ add_power_in_dbm()

double add_power_in_dbm ( double  p1_dbm,
double  p2_dbm 
)
Here is the caller graph for this function:

◆ calculate_ber()

double calculate_ber ( double  snr,
BER  ber_table[],
size_t  table_len 
)
Here is the caller graph for this function:

◆ calculate_BER()

double calculate_BER ( PHY_MODULATION  modulation,
double  dReceivedPower_dBm,
double  dInterferencePower_dBm,
double  dBandwidth_MHz 
)
Here is the caller graph for this function:

◆ Calculate_ber_by_calculation()

double Calculate_ber_by_calculation ( double  sinr,
PHY_MODULATION  modulation,
double  dataRate_mbps,
double  bandwidth_mHz 
)
Here is the caller graph for this function:

◆ calculate_FEC_BER()

double calculate_FEC_BER ( PHY_MODULATION  modulation,
double  codingRate,
double  dReceivedPower_dBm,
double  interferencePower_dBm,
double  dBandwidth_MHz,
double  dataRate_mbps 
)
Here is the caller graph for this function:

◆ calculate_rxpower_by_ber()

double calculate_rxpower_by_ber ( double  refBer,
PHY_MODULATION  modulation,
double  datarate_mbps,
double  bandwidth_mhz 
)

◆ calculate_rxpower_by_per()

double calculate_rxpower_by_per ( double  per,
double  refPacketSize,
PHY_MODULATION  modulation,
double  datarate_mbps,
double  bandwidth_mhz 
)
Here is the caller graph for this function:

◆ calculate_sinr()

double calculate_sinr ( double  dReceivedPower_dbm,
double  interferencePower_dBm,
double  bandwidth_mHz 
)

◆ find_power_from_snr()

double find_power_from_snr ( double  snr,
double  bandwidth 
)

◆ find_snr_from_ber()

double find_snr_from_ber ( double  ber,
PHY_MODULATION  modulation 
)

◆ propagation_calculateRXSensitivity()

double propagation_calculateRXSensitivity ( double  PEP,
double  refPacketSize,
PHY_MODULATION  modulation,
double  bandwidth 
)

◆ read_ber_file()

ptrBER read_ber_file ( char *  file,
size_t *  len 
)

Used to read BER file. File format <SNR1>,<BER1>, <SNR2>,<BER2>, .... .... .... <SNRn>,<BERn>, Input BER file name with relative path to IO path pointer to BER table length Return BER table of size len Note: SNR value in file must be in increasing order. This API doesn't check this, so if it is not will result wrong behaviour.

Here is the caller graph for this function:

◆ substract_power_in_dbm()

double substract_power_in_dbm ( double  p1_dbm,
double  p2_dbm 
)
Here is the caller graph for this function: