NetSim Source Code Help
Loading...
Searching...
No Matches
Satellite_MAC.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_MAC_H_
26#define _NETSIM_SATELLITE_MAC_H_
27
28#include "Satellite.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#include "Satellite_Buffer.h"
35#include "Satellite_Frame.h"
36
37 typedef struct stru_Satellite_UT_Mac
38 {
41
45
49
54
56 {
62 NETSIM_ID utId, NETSIM_ID utIf);
64 NETSIM_ID utId, NETSIM_ID utIf);
65
66 typedef struct stru_satellite_GW_Mac
67 {
70
72
76
81
82 typedef struct stru_satellite_mac
83 {
86
92
93 //Function prototype
98 ptrSUPERFRAME sf);
99#ifdef __cplusplus
100}
101#endif
102#endif /* _NETSIM_SATELLITE_MAC_H_ */
unsigned int NETSIM_ID
Definition: Animation.h:45
#define UINT
Definition: Linux.h:38
ptrSATELLITE_GW_MAC satellite_gw_mac_alloc(ptrSATELLITE_PROTODATA pd)
struct stru_satellite_mac SATELLITE_MAC
struct stru_satellite_ut_assoc_info * ptrSATELLITE_UTASSOCINFO
ptrSATELLITE_UT_MAC satellite_ut_mac_alloc(ptrSATELLITE_PROTODATA pd)
Definition: Satellite_MAC.c:34
struct stru_Satellite_UT_Mac SATELLITE_UT_MAC
void satellite_ut_set_gateway(ptrSATELLITE_UT_MAC utMac)
struct stru_satellite_GW_Mac SATELLITE_GW_MAC
ptrSATELLITE_UTASSOCINFO satellite_utassocinfo_find(NETSIM_ID gwId, NETSIM_ID gwIf, NETSIM_ID utId, NETSIM_ID utIf)
void satellite_form_bufferList(NETSIM_ID d, NETSIM_ID in, ptrSUPERFRAME sf)
void satellite_UT_MAC_init(NETSIM_ID utId, NETSIM_ID utIf)
Definition: Satellite_MAC.c:90
ptrSATELLITE_MAC satellite_mac_alloc(ptrSATELLITE_PROTODATA pd)
struct stru_Satellite_UT_Mac * ptrSATELLITE_UT_MAC
void satellite_GW_MAC_init(NETSIM_ID gwId, NETSIM_ID gwIf)
struct stru_satellite_GW_Mac * ptrSATELLITE_GW_MAC
void satellite_assoc_ut(NETSIM_ID gwId, NETSIM_ID gwIf, NETSIM_ID utId, NETSIM_ID utIf)
struct stru_satellite_ut_assoc_info SATELLITE_UTASSOCINFO
void satellite_mac_init(NETSIM_ID d, NETSIM_ID in)
struct stru_satellite_mac * ptrSATELLITE_MAC
ptrSATELLITE_BUFFER buffer
Definition: Satellite_MAC.h:51
ptrSATELLITE_UTASSOCINFO * utAssocInfo
Definition: Satellite_MAC.h:78
ptrSUPERFRAME forwardFLinkSuperFrame
Definition: Satellite_MAC.h:88
NETSIM_ID satelliteIf
Definition: Satellite_MAC.h:85
NETSIM_ID satelliteId
Definition: Satellite_MAC.h:84
ptrSUPERFRAME returnLinkSuperFrame
Definition: Satellite_MAC.h:87
ptrSATELLITE_BUFFER buffer
Definition: Satellite_MAC.h:59