src/ENC28J60.c
static void enc28j60_disable(struct net_dev_s *net_dev) {
    struct enc28j60_dev *priv = net_dev->priv;

    // disable all interrupts
    phy_write(priv, ENC28J60_PHIE, 0);
    wcr(priv, ENC28J60_EIE, 0);
    
    // disable packet reception
    bfc(priv, ENC28J60_ECON1, _BV(RXEN));

    net_dev_tx_disallow(net_dev);
}
/*!
 * @brief Disable chip interrupts and packet reception
 */
@brief Disable chip interrupts and packet reception
@brief Disable chip interrupts and packet reception
static void enc28j60_disable(struct net_dev_s *net_dev) {
    struct enc28j60_dev *priv = net_dev->priv;
    phy_write(priv, ENC28J60_PHIE, 0);
    wcr(priv, ENC28J60_EIE, 0);
    bfc(priv, ENC28J60_ECON1, _BV(RXEN));
    net_dev_tx_disallow(net_dev);
}
static void enc28j60_disable ( struct net_dev_s * net_dev ) { struct enc28j60_dev * priv = net_dev -> priv ; phy_write ( priv , ENC28J60_PHIE , 0 ) ; wcr ( priv , ENC28J60_EIE , 0 ) ; bfc ( priv , ENC28J60_ECON1 , _BV ( RXEN ) ) ; net_dev_tx_disallow ( net_dev ) ; }
@brief Disable chip interrupts and packet reception
@brief Disable chip interrupts and packet reception
// disable all interrupts // disable packet reception