529Implementation and Performance Analysis
in this work) and receiver parameters (e.g., BER tables for “BER_BASED” reception
model) are set, and the initialization function (i.e., “PhyUWEMInit”) is executed.
void PHY_CreateAPhyForMac(Node *node,...., int* phyNumber)
{
char buf[10*MAX_STRING_LENGTH];
...
thisPhy->phyModel = phyModel;
assert(phyModel = = PHY802_11a ||
...
phyModel = = PHY_LTE ||
phyModel = = PHY_UWEM);
...
//Set PHY-RX-MODEL
//No change on this part due to chosen BER-BASED model.
...
//PHY model initialization
switch(thisPhy->phyModel) {
#ifdef WIRELESS_LIB
case PHY802_11b:
case PHY802_11a: {
...
}
#endif//WIRELESS_LIB
#ifdef ADDON_UWEM
case PHY_UWEM: {
PhyUWEMInit(node, phyIndex, nodeInput);
break;
}
#endif//ADDON_UWEM ...