NetSim Source Code Help
Loading...
Searching...
No Matches
IEEE1609.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_H_
16#define _NETSIM_IEEE1609_H_
17#ifdef __cplusplus
18extern "C" {
19#endif
20#ifndef _NO_DEFAULT_LINKER_
21 //For MSVC compiler. For GCC link via Linker command
22#pragma comment(lib,"IEEE1609.lib")
23#pragma comment(lib,"Metrics.lib")
24#pragma comment(lib,"NetworkStack.lib")
25#pragma comment(lib,"Mobility.lib")
26#endif
27
28#include "IEEE1609_Enum.h"
29#include "IEEE1609_Interface.h"
30
31 //Default config parameter
32#define IEEE1609_SECONDARY_PROTOCOL_DEFAULT _strdup("IEEE802.11")
33#define IEEE1609_STANDARD_CHANNEL_SCH_DEFAULT _strdup("36_5180")
34#define IEEE1609_STANDARD_CHANNEL_CCH_DEFAULT _strdup("38_5190")
35#define IEEE1609_SCH_TIME_DEFAULT 10000 //Microsec
36#define IEEE1609_CCH_TIME_DEFAULT 10000 //Microsec
37#define IEEE1609_GUARD_TIME_DEFAULT 10 //Microsec
38
39 //Function Prototype
40 bool isIEEE1609_Configure(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId);
41
42 //WSMP
45
46 //Channel
49 void Init_Channel_Switching(NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId);
51
52#ifdef __cplusplus
53}
54#endif
55#endif //_NETSIM_IEEE1609_H_
unsigned int NETSIM_ID
Definition: Animation.h:45
bool isIEEE1609_Configure(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
void fn_NetSim_IEEE1609_ChannelSwitch_Start()
Definition: Channel.c:62
void Init_Channel_Switching(NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId)
Definition: Channel.c:17
void restart_transmission()
Definition: IEEE1609.c:161
void fn_NetSim_WSNP_SendWSMPacket()
Definition: WSMP.c:36
int fn_NetSim_WSNP_ReceiveWSMPacket()
Definition: WSMP.c:116
void fn_NetSim_IEEE1609_ChannelSwitch_End()
Definition: Channel.c:30