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

Go to the source code of this file.

Data Structures

struct  stru_eventdetails
 

Typedefs

typedef struct stru_eventdetails EVENTDETAILS
 
typedef struct stru_eventdetailsptrEVENTDETAILS
 

Functions

static ptrEVENTDETAILS form_eventdetails (ptrSUPERFRAME sf, ptrFRAME fr, ptrCARRIER carrier)
 
static void clear_eventdetails (ptrEVENTDETAILS ev)
 
static ptrSUPERFRAME get_curr_superframe ()
 
static ptrFRAME get_curr_frame ()
 
static ptrCARRIER get_curr_carrier ()
 
static void add_superframe_event (NETSIM_ID d, NETSIM_ID in, double time, ptrSUPERFRAME sf)
 
static void frame_send_packet (NETSIM_ID d, NETSIM_ID in, ptrSUPERFRAME sf, ptrFRAME fr, ptrCARRIER cr)
 
ptrSUPERFRAME satellite_get_return_superframe (NETSIM_ID d, NETSIM_ID in)
 
ptrSUPERFRAME satellite_get_forward_superframe (NETSIM_ID d, NETSIM_ID in)
 
ptrSUPERFRAME superframe_alloc (LINKTYPE linkType, NETSIM_ID d, NETSIM_ID in)
 
static void form_frames (ptrSUPERFRAME sf, ptrCARRIER carrier)
 
static UINT calculate_bitsPerSlot (ptrSUPERFRAME sf)
 
static UINT getModulationBits (PHY_MODULATION modulation)
 
static void form_carrier (ptrSUPERFRAME sf)
 
static void configure_superframe (ptrSUPERFRAME sf)
 
static void form_superframe (ptrSUPERFRAME sf)
 
static void set_max_payload_size (NETSIM_ID d, NETSIM_ID in, UINT bits)
 
static void set_max_unit_size (ptrSUPERFRAME sf, UINT maxBitsCount)
 
void superframe_init (NETSIM_ID d, NETSIM_ID in)
 
static void reset_carrier (ptrSUPERFRAME sf, ptrCARRIER cr)
 
static void reset_superframe (ptrSUPERFRAME sf)
 
static void add_frame_start_event (NETSIM_ID d, NETSIM_ID in, ptrSUPERFRAME sf, ptrFRAME fr, ptrCARRIER cr)
 
void satellite_frame_start ()
 
static void start_superframe (ptrSATELLITE_MAC mac, ptrSUPERFRAME sf, double time)
 
void satellite_superframe_start ()
 
static void send_packet_to_phy (NetSim_PACKET *packet, NETSIM_ID d, NETSIM_ID in)
 
static void update_time (NetSim_PACKET *packet, double *startTime, UINT bitsPerFrame, double frameDuration)
 

Typedef Documentation

◆ EVENTDETAILS

◆ ptrEVENTDETAILS

Function Documentation

◆ add_frame_start_event()

static void add_frame_start_event ( NETSIM_ID  d,
NETSIM_ID  in,
ptrSUPERFRAME  sf,
ptrFRAME  fr,
ptrCARRIER  cr 
)
static

Definition at line 319 of file Satellite_SuperFrame.c.

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

◆ add_superframe_event()

static void add_superframe_event ( NETSIM_ID  d,
NETSIM_ID  in,
double  time,
ptrSUPERFRAME  sf 
)
static

Definition at line 358 of file Satellite_SuperFrame.c.

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

◆ calculate_bitsPerSlot()

static UINT calculate_bitsPerSlot ( ptrSUPERFRAME  sf)
static

Definition at line 142 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ clear_eventdetails()

static void clear_eventdetails ( ptrEVENTDETAILS  ev)
static

Definition at line 46 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ configure_superframe()

static void configure_superframe ( ptrSUPERFRAME  sf)
static

Definition at line 212 of file Satellite_SuperFrame.c.

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

◆ form_carrier()

static void form_carrier ( ptrSUPERFRAME  sf)
static

Definition at line 184 of file Satellite_SuperFrame.c.

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

◆ form_eventdetails()

static ptrEVENTDETAILS form_eventdetails ( ptrSUPERFRAME  sf,
ptrFRAME  fr,
ptrCARRIER  carrier 
)
static

Definition at line 37 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ form_frames()

static void form_frames ( ptrSUPERFRAME  sf,
ptrCARRIER  carrier 
)
static

Definition at line 117 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ form_superframe()

static void form_superframe ( ptrSUPERFRAME  sf)
static

Definition at line 243 of file Satellite_SuperFrame.c.

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

◆ frame_send_packet()

static void frame_send_packet ( NETSIM_ID  d,
NETSIM_ID  in,
ptrSUPERFRAME  sf,
ptrFRAME  fr,
ptrCARRIER  cr 
)
static

Definition at line 474 of file Satellite_SuperFrame.c.

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

◆ get_curr_carrier()

static ptrCARRIER get_curr_carrier ( )
static

Definition at line 63 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ get_curr_frame()

static ptrFRAME get_curr_frame ( )
static

Definition at line 57 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ get_curr_superframe()

static ptrSUPERFRAME get_curr_superframe ( )
static

Definition at line 51 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ getModulationBits()

static UINT getModulationBits ( PHY_MODULATION  modulation)
static

Definition at line 149 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ reset_carrier()

static void reset_carrier ( ptrSUPERFRAME  sf,
ptrCARRIER  cr 
)
static

Definition at line 297 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ reset_superframe()

static void reset_superframe ( ptrSUPERFRAME  sf)
static

Definition at line 307 of file Satellite_SuperFrame.c.

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

◆ satellite_frame_start()

void satellite_frame_start ( )

Definition at line 335 of file Satellite_SuperFrame.c.

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

◆ satellite_get_forward_superframe()

ptrSUPERFRAME satellite_get_forward_superframe ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 83 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ satellite_get_return_superframe()

ptrSUPERFRAME satellite_get_return_superframe ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 77 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ satellite_superframe_start()

void satellite_superframe_start ( )

Definition at line 400 of file Satellite_SuperFrame.c.

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

◆ send_packet_to_phy()

static void send_packet_to_phy ( NetSim_PACKET packet,
NETSIM_ID  d,
NETSIM_ID  in 
)
static

Definition at line 430 of file Satellite_SuperFrame.c.

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

◆ set_max_payload_size()

static void set_max_payload_size ( NETSIM_ID  d,
NETSIM_ID  in,
UINT  bits 
)
static

Definition at line 254 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ set_max_unit_size()

static void set_max_unit_size ( ptrSUPERFRAME  sf,
UINT  maxBitsCount 
)
static

Definition at line 268 of file Satellite_SuperFrame.c.

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

◆ start_superframe()

static void start_superframe ( ptrSATELLITE_MAC  mac,
ptrSUPERFRAME  sf,
double  time 
)
static

Definition at line 373 of file Satellite_SuperFrame.c.

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

◆ superframe_alloc()

ptrSUPERFRAME superframe_alloc ( LINKTYPE  linkType,
NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 91 of file Satellite_SuperFrame.c.

Here is the caller graph for this function:

◆ superframe_init()

void superframe_init ( NETSIM_ID  d,
NETSIM_ID  in 
)

Definition at line 276 of file Satellite_SuperFrame.c.

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

◆ update_time()

static void update_time ( NetSim_PACKET packet,
double *  startTime,
UINT  bitsPerFrame,
double  frameDuration 
)
static

Definition at line 459 of file Satellite_SuperFrame.c.

Here is the caller graph for this function: