src/ENC28J60.c
static void change_memory_bank(const struct enc28j60_dev *priv, uint8_t addr) {
    // return if it is Common Register
    if ((addr >= ENC28J60_EIE) && (addr <= ENC28J60_ECON1))
        return;

    uint8_t bank = (addr & ENC28J60_BANK_MASK) >> 5;
    
    uint8_t econ1;

    econ1 = rcr(priv, ENC28J60_ECON1);
    econ1 = (econ1 & 0b11111100U) | bank;
    wcr(priv, ENC28J60_ECON1, econ1);
}
/*!
 * @brief Change the memory bank
 * @param addr Register address
 */
@brief Change the memory bank
@param addr Register address
@brief Change the memory bank @param addr Register address
static void change_memory_bank(const struct enc28j60_dev *priv, uint8_t addr) {
    if ((addr >= ENC28J60_EIE) && (addr <= ENC28J60_ECON1))
        return;
    uint8_t bank = (addr & ENC28J60_BANK_MASK) >> 5;
    uint8_t econ1;
    econ1 = rcr(priv, ENC28J60_ECON1);
    econ1 = (econ1 & 0b11111100U) | bank;
    wcr(priv, ENC28J60_ECON1, econ1);
}
static void change_memory_bank ( const struct enc28j60_dev * priv , uint8_t addr ) { if ( ( addr >= ENC28J60_EIE ) && ( addr <= ENC28J60_ECON1 ) ) return ; uint8_t bank = ( addr & ENC28J60_BANK_MASK ) >> 5 ; uint8_t econ1 ; econ1 = rcr ( priv , ENC28J60_ECON1 ) ; econ1 = ( econ1 & 0b11111100U ) | bank ; wcr ( priv , ENC28J60_ECON1 , econ1 ) ; }
@brief Change the memory bank
 @param addr Register address
@brief Change the memory bank @param addr Register address
// return if it is Common Register