NetSim Source Code Help
Loading...
Searching...
No Matches
IEEE1609_Interface.h
Go to the documentation of this file.
1#pragma once
2/************************************************************************************
3* Copyright (C) 2020 *
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* Author: Shashi Kant Suman *
13* *
14* ---------------------------------------------------------------------------------*/
15#ifndef _NETSIM_IEEE1609_INTERFACE_H_
16#define _NETSIM_IEEE1609_INTERFACE_H_
17#ifdef __cplusplus
18extern "C" {
19#endif
21 {
26
27 typedef struct stru_IEEE1609_Buffer
28 {
34
35 typedef struct stru_IEEE1609_Mac_Var
36 {
39
40 double dSCH_Time;
41 double dCCH_Time;
43
45 {
48 double dStartTime;
49 double dEndTime;
51
52 IEEE1609_BUFFER buffer[2]; //For CCH and SCH
54
55#define GET_IEEE1609_MAC_VAR(nDeviceId,nInterfaceId) ((PIEEE1609_MAC_VAR)DEVICE_MACVAR(nDeviceId,nInterfaceId))
56#define SET_IEEE1609_MAC_VAR(nDeviceId,nInterfaceId,mac) DEVICE_MACVAR(nDeviceId,nInterfaceId) = ((void*)(mac))
57#define GET_IEEE1609_CURR_MAC_VAR GET_IEEE1609_MAC_VAR(pstruEventDetails->nDeviceId,pstruEventDetails->nInterfaceId)
58
59
60 typedef struct stru_IEEE1609_Phy_Var
61 {
64
70
71#define GET_IEEE1609_PHY_VAR(nDeviceId,nInterfaceId) ((PIEEE1609_PHY_VAR)DEVICE_PHYVAR(nDeviceId,nInterfaceId))
72#define SET_IEEE1609_PHY_VAR(nDeviceId,nInterfaceId,phy) DEVICE_PHYVAR(nDeviceId,nInterfaceId) = ((void*)(phy))
73#define GET_IEEE1609_CURR_PHY_VAR GET_IEEE1609_PHY_VAR(pstruEventDetails->nDeviceId,pstruEventDetails->nInterfaceId)
74
75
76#ifdef __cplusplus
77}
78#endif
79#endif //_NETSIM_IEEE1609_INTERFACE_H_
struct stru_IEEE1609_Phy_Var * PIEEE1609_PHY_VAR
struct stru_IEEE1609_Buffer IEEE1609_BUFFER
struct stru_IEEE1609_Phy_Var IEEE1609_PHY_VAR
struct stru_IEEE1609_Mac_Var IEEE1609_MAC_VAR
enum_IEEE1609_ChannelType
@ IEEE1609_ChannelType_GUARD
@ IEEE1609_ChannelType_CCH
@ IEEE1609_ChannelType_SCH
struct stru_IEEE1609_Mac_Var * PIEEE1609_MAC_VAR
struct stru_IEEE1609_Buffer * PIEEE1609_BUFFER
enum enum_IEEE1609_ChannelType IEEE1609_CHANNEL_TYPE
#define UINT
Definition: Linux.h:38
#define UINT16
Definition: Linux.h:33
enum enum_MACProtocol MAC_LAYER_PROTOCOL
Definition: main.h:134
struct stru_IEEE1609_Mac_Var::stru_Channel_Info CHANNEL_INFO
IEEE1609_BUFFER buffer[2]
MAC_LAYER_PROTOCOL secondary_protocol
MAC_LAYER_PROTOCOL secondary_protocol