src/ENC28J60.c
static void rbm(const struct enc28j60_dev *priv, void *buf,
                uint16_t count, uint16_t addr) {
    wcr(priv, ENC28J60_ERDPTL, (uint8_t)addr);
    wcr(priv, ENC28J60_ERDPTH, (uint8_t)(addr >> 8));

    chip_select(priv->spi_dev->cs);
    spi_write(ENC28J60_RBM_OP);
    spi_read_buf((uint8_t *)buf, count);
    chip_desel(priv->spi_dev->cs);
}
/*!
 * @brief Read Buffer Memory
 * @param buf Buffer to write receiving data
 * @param count Number of bytes to read
 * @param addr Address of start reading
 */
@brief Read Buffer Memory
@param buf Buffer to write receiving data
@param count Number of bytes to read
@param addr Address of start reading
@brief Read Buffer Memory @param buf Buffer to write receiving data @param count Number of bytes to read @param addr Address of start reading
static void rbm(const struct enc28j60_dev *priv, void *buf,
                uint16_t count, uint16_t addr) {
    wcr(priv, ENC28J60_ERDPTL, (uint8_t)addr);
    wcr(priv, ENC28J60_ERDPTH, (uint8_t)(addr >> 8));
    chip_select(priv->spi_dev->cs);
    spi_write(ENC28J60_RBM_OP);
    spi_read_buf((uint8_t *)buf, count);
    chip_desel(priv->spi_dev->cs);
}
static void rbm ( const struct enc28j60_dev * priv , void * buf , uint16_t count , uint16_t addr ) { wcr ( priv , ENC28J60_ERDPTL , ( uint8_t ) addr ) ; wcr ( priv , ENC28J60_ERDPTH , ( uint8_t ) ( addr >> 8 ) ) ; chip_select ( priv -> spi_dev -> cs ) ; spi_write ( ENC28J60_RBM_OP ) ; spi_read_buf ( ( uint8_t * ) buf , count ) ; chip_desel ( priv -> spi_dev -> cs ) ; }
@brief Read Buffer Memory
 @param buf Buffer to write receiving data
 @param count Number of bytes to read
 @param addr Address of start reading
@brief Read Buffer Memory @param buf Buffer to write receiving data @param count Number of bytes to read @param addr Address of start reading