industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 24.10.2008 | 10:01 | 4 replies

DRV_PHY_SIZE definition not found

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

Rainer Versteeg

Rainer Versteeg

| 24.10.2008 | 10:04

Hi,

Sorry, i mean:

//====== Ethernet Phy erzeugen ===========
 eRslt=rX_MemAllocateMemory(&hPhy,DRV_PHY_SIZE);
 eRslt=Drv_PhyCreatePhy(hPhy, &MyPhy[0]);
 //-----------------------------------------------

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 27.10.2008 | 08:30

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.

Rainer Versteeg

Rainer Versteeg

| 27.10.2008 | 10:59

HI AJ,

Is there an update aviallable :?:

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 27.10.2008 | 11:00

Hi,

not that I know at the moment.

Login