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

Go to the source code of this file.

Functions

ptrSATELLITE_BUFFER satellite_buffer_init (NETSIM_ID utId, NETSIM_ID utIf, NETSIM_ID gwId, NETSIM_ID gwIf, double sizeInBytes, double maxUnitSizeInBytes)
 
void satellite_buffer_setMaxUnitSizeInBytes (ptrSATELLITE_BUFFER buffer, double maxUnitSizeInBytes)
 
bool satellite_buffer_add_packet (ptrSATELLITE_BUFFER buffer, NetSim_PACKET *packet)
 
NetSim_PACKETsatellite_buffer_remove_packet (ptrSATELLITE_BUFFER buffer)
 
NetSim_PACKETsatellite_buffer_head_packet (ptrSATELLITE_BUFFER buffer)
 
static void calculate_slot_reqd_per_buffer (ptrSATELLITE_BUFFER buf, UINT bitsPerSlot)
 
static void calculate_slot_reqd (ptrSUPERFRAME sf)
 
static void sort_buffer (UINT count, ptrSATELLITE_BUFFER *buffers)
 
static void init_buffer_rank (ptrSUPERFRAME sf)
 
static void allocate_slot_count (ptrSUPERFRAME sf, ptrFRAME fr)
 
static UINT calculate_slot_reqd_for_packet (double size, UINT bitsPerSlot)
 
static void schedule_packet (ptrSUPERFRAME sf, ptrFRAME fr)
 
static void update_rank (ptrSUPERFRAME sf, ptrFRAME fr)
 
void satellite_allocate_slot (NETSIM_ID d, NETSIM_ID in, ptrSUPERFRAME sf, ptrFRAME fr)
 

Function Documentation

◆ allocate_slot_count()

static void allocate_slot_count ( ptrSUPERFRAME  sf,
ptrFRAME  fr 
)
static

Definition at line 160 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ calculate_slot_reqd()

static void calculate_slot_reqd ( ptrSUPERFRAME  sf)
static

Definition at line 107 of file Satellite_buffer.c.

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

◆ calculate_slot_reqd_for_packet()

static UINT calculate_slot_reqd_for_packet ( double  size,
UINT  bitsPerSlot 
)
static

Definition at line 173 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ calculate_slot_reqd_per_buffer()

static void calculate_slot_reqd_per_buffer ( ptrSATELLITE_BUFFER  buf,
UINT  bitsPerSlot 
)
static

Definition at line 99 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ init_buffer_rank()

static void init_buffer_rank ( ptrSUPERFRAME  sf)
static

Definition at line 149 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ satellite_allocate_slot()

void satellite_allocate_slot ( NETSIM_ID  d,
NETSIM_ID  in,
ptrSUPERFRAME  sf,
ptrFRAME  fr 
)

Definition at line 229 of file Satellite_buffer.c.

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

◆ satellite_buffer_add_packet()

bool satellite_buffer_add_packet ( ptrSATELLITE_BUFFER  buffer,
NetSim_PACKET packet 
)

Definition at line 47 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ satellite_buffer_head_packet()

NetSim_PACKET * satellite_buffer_head_packet ( ptrSATELLITE_BUFFER  buffer)

Definition at line 93 of file Satellite_buffer.c.

◆ satellite_buffer_init()

ptrSATELLITE_BUFFER satellite_buffer_init ( NETSIM_ID  utId,
NETSIM_ID  utIf,
NETSIM_ID  gwId,
NETSIM_ID  gwIf,
double  sizeInBytes,
double  maxUnitSizeInBytes 
)

Definition at line 28 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ satellite_buffer_remove_packet()

NetSim_PACKET * satellite_buffer_remove_packet ( ptrSATELLITE_BUFFER  buffer)

Definition at line 77 of file Satellite_buffer.c.

◆ satellite_buffer_setMaxUnitSizeInBytes()

void satellite_buffer_setMaxUnitSizeInBytes ( ptrSATELLITE_BUFFER  buffer,
double  maxUnitSizeInBytes 
)

Definition at line 42 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ schedule_packet()

static void schedule_packet ( ptrSUPERFRAME  sf,
ptrFRAME  fr 
)
static

Definition at line 178 of file Satellite_buffer.c.

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

◆ sort_buffer()

static void sort_buffer ( UINT  count,
ptrSATELLITE_BUFFER buffers 
)
static

Definition at line 131 of file Satellite_buffer.c.

Here is the caller graph for this function:

◆ update_rank()

static void update_rank ( ptrSUPERFRAME  sf,
ptrFRAME  fr 
)
static

Definition at line 217 of file Satellite_buffer.c.

Here is the caller graph for this function: