src/ENC28J60.c
static uint16_t rand_acc_addr_calc(uint16_t addr, uint16_t offset) {
    uint16_t tmp = addr + offset;
    
    if (tmp > ENC28J60_RXEND_INIT)
        return (tmp - (ENC28J60_RXEND_INIT - ENC28J60_RXSTART_INIT + 1));
    return tmp;
}
/*!
 * @brief Calculate random access address of RX buffer
 * @param addr Packet start address
 * @param offset Offset
 * @return Computed address
 */
@brief Calculate random access address of RX buffer
@param addr Packet start address
@param offset Offset
@return Computed address
@brief Calculate random access address of RX buffer @param addr Packet start address @param offset Offset @return Computed address
static uint16_t rand_acc_addr_calc(uint16_t addr, uint16_t offset) {
    uint16_t tmp = addr + offset;
    if (tmp > ENC28J60_RXEND_INIT)
        return (tmp - (ENC28J60_RXEND_INIT - ENC28J60_RXSTART_INIT + 1));
    return tmp;
}
static uint16_t rand_acc_addr_calc ( uint16_t addr , uint16_t offset ) { uint16_t tmp = addr + offset ; if ( tmp > ENC28J60_RXEND_INIT ) return ( tmp - ( ENC28J60_RXEND_INIT - ENC28J60_RXSTART_INIT + 1 ) ) ; return tmp ; }
@brief Calculate random access address of RX buffer
 @param addr Packet start address
 @param offset Offset
 @return Computed address
@brief Calculate random access address of RX buffer @param addr Packet start address @param offset Offset @return Computed address