eth_emac_attach

Top  Previous  Next

The eth_emac_attach function attaches the EMAC driver to the stack.

 

Syntax

void eth_emac_attach(

int n,

const char *MACAddr

);

 

Parameters

n

Specifies the number of the Network Interface to be attached.

 

The Network Interface is (in terms of BSD stack) the abstraction layer between the protocols and the device driver. It is possible to have more Network Interfaces attached to one device (EMAC).  In this case each Network Interface has a different IP address and possibly MAC address. This feature is not implemented yet and only one Network Interface is supported.

 

The only value supported is 1.

 

MACAddr

Specifies the MAC address used for the interface being attached.  Only the first 6 bytes are used.  The other bytes are ignored.