14#ifndef _NETSIM_WIRELESS_H_
15#define _NETSIM_WIRELESS_H_
21 typedef unsigned int NETSIM_ID;
24 typedef double CODINGRATE;
26#include "PropagationModel.h"
28 typedef enum enum_Modulation
53 static const char* strPHY_MODULATION[] = {
78 typedef enum enum_tx_status
89 double dUpperFrequency;
90 double dLowerFrequency;
91 double dChannelBandwidth;
92 PHY_TX_STATUS txStatus;
93 double dTransmitPower_mw;
94 double dTransmitPower_dbm;
95 double* dReceivedPower_dbm;
96 PHY_MODULATION modulation;
97 }PHYPROP_WIRELESS,*PPHYPROP_WIRELESS;
100 _declspec(dllexport) PPHYPROP_WIRELESS get_phy_type_wireless(NETSIM_ID nDeviceId,NETSIM_ID nInterfaceId);
101 _declspec(dllexport)
void fn_NetSim_Wireless_SetFrequency(NETSIM_ID nDeviceId,
102 NETSIM_ID nInterfaceId,
103 double dUpperFrequency,
104 double dLowerFrequency);
105 _declspec(dllexport)
void fn_NetSim_Wireless_SetChannelBandwidth(NETSIM_ID nDeviceId,
106 NETSIM_ID nInterfaceId,
107 double dChannelBandwidth);
108 _declspec(dllexport)
void fn_NetSim_Wireless_SetTxStatus(NETSIM_ID nDeviceId,
109 NETSIM_ID nInterfaceId,
110 PHY_TX_STATUS txStatus);
111 _declspec(dllexport)
void fn_NetSim_Wireless_SetTxPower_mw(NETSIM_ID nDeviceId,
112 NETSIM_ID nInterfaceId,
114 _declspec(dllexport)
void fn_NetSim_Wireless_SetTxPower_dbm(NETSIM_ID nDeviceId,
115 NETSIM_ID nInterfaceId,
117 _declspec(dllexport)
void fn_NetSim_Wireless_SetRxPower_dbm(NETSIM_ID nDeviceId,
118 NETSIM_ID nInterfaceId,
119 NETSIM_ID nTransmitterId,
121 _declspec(dllexport)
void fn_NetSim_Wireless_SetRxPower_mw(NETSIM_ID nDeviceId,
122 NETSIM_ID nInterfaceId,
123 NETSIM_ID nTransmitterId,
125 _declspec(dllexport)
void fn_NetSim_Wireless_GetRxPower(NETSIM_ID recvId,
126 NETSIM_ID recvInterface,
127 NETSIM_ID transmitterId,
129 double* rxPower_dbm);
130 _declspec(dllexport)
void fn_NetSim_Wireless_SetModulation(NETSIM_ID nDeviceId,
131 NETSIM_ID nInterfaceId,
132 PHY_MODULATION modulation);
133 _declspec(dllexport)
void fn_NetSim_Wireless_SetProperty(NETSIM_ID nDeviceId,
134 NETSIM_ID nInterfaceId,
135 double dUpperFrequency,
136 double dLowerFrequency,
137 double dChannelBandwidth,
139 PHY_MODULATION modulation,
140 PHY_TX_STATUS txStatus);
141 _declspec(dllexport)
void fn_NetSim_Wireless_GetProperty(NETSIM_ID nDeviceId,
142 NETSIM_ID nInterfaceId,
143 double* dUpperFrequency,
144 double* dLowerFrequency,
145 double* dChannelBandwidth,
147 PHY_MODULATION* modulation,
148 PHY_TX_STATUS* txStatus);