Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed HTTPClient SWUpdate mbed-rtos Watchdog EthernetInterface
EthStatus.h
00001 00002 #include "lpc_phy.h" 00003 00004 /** \brief DP83848 PHY status definitions */ 00005 #define DP8_REMOTEFAULT (1 << 6) /**< Remote fault */ 00006 #define DP8_FULLDUPLEX (1 << 2) /**< 1=full duplex */ 00007 #define DP8_SPEED10MBPS (1 << 1) /**< 1=10MBps speed */ 00008 #define DP8_VALID_LINK (1 << 0) /**< 1=Link active */ 00009 00010 bool get_link_status(void); 00011 00012 // This function returns the status of transmission. 00013 int get_transmission_status(void); // 1 = 1/2 duplex, 2 = full duplex 00014 00015 // This function returns the speed of the connection. 00016 int get_connection_speed(void); // 10 or 100 Mb 00017 00018 // This function returns the current value in the MII data register. 00019 uint32_t mii_read_data(void);
Generated on Thu Jul 14 2022 04:30:15 by
1.7.2