NetSim Source Code Help
Loading...
Searching...
No Matches
Satellite_Frame.h
Go to the documentation of this file.
1#pragma once
2/************************************************************************************
3* Copyright (C) 2021 *
4* TETCOS, Bangalore. India *
5* *
6* Tetcos owns the intellectual property rights in the Product and its content. *
7* The copying, redistribution, reselling or publication of any or all of the *
8* Product or its content without express prior written consent of Tetcos is *
9* prohibited. Ownership and / or any other right relating to the software and all *
10* intellectual property rights therein shall remain at all times with Tetcos. *
11* *
12* This source code is licensed per the NetSim license agreement. *
13* *
14* No portion of this source code may be used as the basis for a derivative work, *
15* or used, for any purpose other than its intended use per the NetSim license *
16* agreement. *
17* *
18* This source code and the algorithms contained within it are confidential trade *
19* secrets of TETCOS and may not be used as the basis for any other software, *
20* hardware, product or service. *
21* *
22* Author: Shashi Kant Suman *
23* *
24* ----------------------------------------------------------------------------------*/
25#ifndef _NETSIM_SATELLITE_FRAME_H_
26#define _NETSIM_SATELLITE_FRAME_H_
27
28#include "Satellite.h"
29#include "Satellite_Buffer.h"
30#include "ErrorModel.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36 typedef struct stru_tdma_slot_conf
37 {
41
45
47 {
51
52 typedef struct stru_tdma_frame_conf
53 {
56
62
68
69 typedef struct stru_tdma_frame
70 {
74
76
79
82
86
87 typedef enum enum_ber_model
88 {
93
95 {
101
103 double berValue;
106 char* berFile;
107
111
112 typedef struct stru_tdma_carrier
113 {
117
121
122 typedef enum
123 {
124 SUPER_FRAME_CONFIG_0, //!< SUPER_FRAME_CONFIG_0
125 SUPER_FRAME_CONFIG_1, //!< SUPER_FRAME_CONFIG_1
126 SUPER_FRAME_CONFIG_2, //!< SUPER_FRAME_CONFIG_2
127 SUPER_FRAME_CONFIG_3, //!< SUPER_FRAME_CONFIG_3
129
130 typedef struct stru_tdma_superframe
131 {
135
139 char* band;
142
146
149
152
155
158 NETSIM_ID d, NETSIM_ID in);
163 ptrSUPERFRAME sf, ptrFRAME fr);
166
167#ifdef __cplusplus
168}
169#endif
170#endif /* _NETSIM_SATELLITE_FRAME_H_ */
unsigned int NETSIM_ID
Definition: Animation.h:45
#define UINT
Definition: Linux.h:38
enum enum_linktype LINKTYPE
SuperFrameConfiguration_t
@ SUPER_FRAME_CONFIG_2
SUPER_FRAME_CONFIG_2.
@ SUPER_FRAME_CONFIG_1
SUPER_FRAME_CONFIG_1.
@ SUPER_FRAME_CONFIG_3
SUPER_FRAME_CONFIG_3.
@ SUPER_FRAME_CONFIG_0
SUPER_FRAME_CONFIG_0.
ptrSUPERFRAME satellite_get_return_superframe(NETSIM_ID d, NETSIM_ID in)
struct stru_tdma_frame * ptrFRAME
struct stru_tdma_frame_conf * ptrFRAMECONF
struct stru_tdma_frame_conf FRAMECONF
void satellite_frame_start()
enum enum_ber_model BERMODEL
enum_ber_model
@ BERMODEL_Model
@ BERMODEL_File
@ BERMODEL_Fixed
ptrSUPERFRAME satellite_get_forward_superframe(NETSIM_ID d, NETSIM_ID in)
ptrSUPERFRAME superframe_alloc(LINKTYPE linkType, NETSIM_ID d, NETSIM_ID in)
struct stru_tdma_slot_conf SLOTCONF
void satellite_allocate_slot(NETSIM_ID d, NETSIM_ID in, ptrSUPERFRAME sf, ptrFRAME fr)
struct stru_tdma_frame FRAME
struct stru_tdma_carrier CARRIER
void superframe_init(NETSIM_ID d, NETSIM_ID in)
struct stru_tdma_carrier_conf CARRIERCONF
struct stru_tdma_superframe SUPERFRAME
enum enum_frame_usage_mode FRAMEUSAGEMODE
struct stru_tdma_slot_conf * ptrSLOTCONF
enum_frame_usage_mode
@ FRUSAGE_SHORT
@ FRUSAGE_NORMAL
void satellite_superframe_start()
struct stru_tdma_superframe * ptrSUPERFRAME
struct stru_tdma_carrier_conf * ptrCARRIERCONF
struct stru_tdma_carrier * ptrCARRIER
enum enum_Modulation PHY_MODULATION
PHY_MODULATION modulation
FRAMEUSAGEMODE usageMode
NetSim_PACKET * tail
NetSim_PACKET * head
double relativeFrameEndTime
double relativeFrameStartTime
ptrFRAMECONF frameConfig
ptrSATELLITE_BUFFER * buffers
ptrCARRIERCONF carrierConfig
SuperFrameConfiguration_t superFrameConfigType