David Smart / Mbed 2 deprecated PUB_SWUpdate

Dependencies:   mbed HTTPClient SWUpdate mbed-rtos Watchdog EthernetInterface

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers EthStatus.h Source File

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);