src/ENC28J60.c
static bool enc28j60_check_link(const struct enc28j60_dev *priv) {
    struct net_dev_s *net_dev = priv->net_dev;

    if (phy_read(priv, ENC28J60_PHSTAT2) & _BV(LSTAT)) {
        net_dev_set_link_up(net_dev);
    } else {
        net_dev_set_link_down(net_dev);
    }

    return net_dev_link_is_up(net_dev);
}
/*!
 * @brief Check Link Status and set flag
 * @return True if Link Up; False otherwise
 */
@brief Check Link Status and set flag
@return True if Link Up; False otherwise
@brief Check Link Status and set flag @return True if Link Up ; False otherwise
static bool enc28j60_check_link(const struct enc28j60_dev *priv) {
    struct net_dev_s *net_dev = priv->net_dev;
    if (phy_read(priv, ENC28J60_PHSTAT2) & _BV(LSTAT)) {
        net_dev_set_link_up(net_dev);
    } else {
        net_dev_set_link_down(net_dev);
    }
    return net_dev_link_is_up(net_dev);
}
static bool enc28j60_check_link ( const struct enc28j60_dev * priv ) { struct net_dev_s * net_dev = priv -> net_dev ; if ( phy_read ( priv , ENC28J60_PHSTAT2 ) & _BV ( LSTAT ) ) { net_dev_set_link_up ( net_dev ) ; } else { net_dev_set_link_down ( net_dev ) ; } return net_dev_link_is_up ( net_dev ) ; }
@brief Check Link Status and set flag
 @return True if Link Up; False otherwise
@brief Check Link Status and set flag @return True if Link Up ; False otherwise