Hi,
I want create a PHY at runtime.
//======== Definition of the PHY-Instances =================
RX_PHY_SET_T MyPhy[] = {
{{"PHY", RX_PERIPHERAL_TYPE_PHY, 0},
0,
0,
0,
0,
1,
{{0x00,0x3b00}},
FALSE,
},
{{"PHY", RX_PERIPHERAL_TYPE_PHY, 1},
1,
/* OUI */ 0,
/* man part */ 0,
/* man rev */ 0,
1,
{{0x00,0x3b00}},
FALSE,
}
};
//------------------------------------------------------------
//====== Ethernet Phy erzeugen ===========
eRslt=rX_MemAllocateMemory(&hPhy,DRV_PHY_SIZE);
eRslt=Drv_IntCreateInterrupt(hPhy, &MyPhy[0]);
//-----------------------------------------------
I get an error "error: 'DRV_PHY_SIZE' undeclared (first use in this function)". i have controlled the AP_PHY.h file, and the are no DRV_PHY_SIZE found. My AP_PHY.h file is from 06.05.2008
Br,
Rainer
Hilscher Gesellschaft fuer Systemautomation mbH
Hi Rainer,
you are right, it is missing in the delivered headers. I assume it is a new function, which was already described in the manual, but not implemented in the current version.
HI AJ,
Is there an update aviallable :?:
Br,
Rainer
Hilscher Gesellschaft fuer Systemautomation mbH
Hi,
not that I know at the moment.
Rainer Versteeg
Hi,
Sorry, i mean:
//====== Ethernet Phy erzeugen =========== eRslt=rX_MemAllocateMemory(&hPhy,DRV_PHY_SIZE); eRslt=Drv_PhyCreatePhy(hPhy, &MyPhy[0]); //-----------------------------------------------Br,
Rainer