A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://arm-software.github.io/CMSIS_5/Driver/html/group__eth__interface__gr.html below:

Ethernet Interface

Ethernet common definitions (Driver_ETH.h) More...

Ethernet common definitions (Driver_ETH.h)

Ethernet is a networking technology for exchanging data packages between computer systems. Several microcontrollers integrate an Ethernet MAC (Media Access Control) data-link layer that interfaces to an Ethernet PHY (Physical Interface Transceiver).

Wikipedia offers more information about the Ethernet.

Block Diagram

The Ethernet PHY connects typically to the Ethernet MAC using an MII (Media Independent Interface) or RMII (Reduced Media Independent Interface).

Block Diagram of a typical Ethernet Interface

Ethernet API

The following header files define the Application Programming Interface (API) for the Ethernet interface:

The driver implementation of the Ethernet MAC is a typical part of a Device Family Pack (DFP) that supports the peripherals of the microcontroller family. The driver implementation of the Ethernet PHY is a typical part of a Network Software Pack, since PHY is typically not integrated into the microcontroller.

Note
For parameters, the value marked with (default) is the setting after the driver initialization.

Driver Functions

The driver functions are published in the access struct as explained in Common Driver Functions

Both drivers are used in combination and usually the Ethernet MAC provides a media interface to the Ethernet PHY. A typical setup sequence for the drivers is shown below:

Example Code

The following example code shows the usage of the Ethernet interface.

void ethernet_mac_notify (uint32_t event) {

switch (event) {

:

}

}

void initialize_ethernet_interface (void) {

mac = &Driver_ETH_MAC0;

phy = &Driver_ETH_PHY0;

}

else {

}

}

:

:

}

void ethernet_check_link_status (void) {

if (link == ethernet_link) {

return;

}

ethernet_link = link;

}

else {

}

}

Ethernet link information.

The Ethernet Link information provides parameters about the current established communication.

Returned by:

Data Fields uint32_t speed: 2 Link speed: 0= 10 MBit, 1= 100 MBit, 2= 1 GBit. uint32_t duplex: 1 Duplex mode: 0= Half, 1= Full. uint32_t reserved: 29

Ethernet link state.

The Ethernet Link status shows if the communication is currently established (up) or interrupted (down).

Returned by:

Enumerator ARM_ETH_LINK_DOWN 

Link is down.

ARM_ETH_LINK_UP 

Link is up.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4