/* Handle receive not empty for Master Receive mode.  */
static ald_status_t i2c_master_recv_rxne(ald_i2c_handle_t *hperh)
/* Handle receive not empty for Master Receive mode.  */
static ald_status_t i2c_master_recv_rxne(ald_i2c_handle_t *hperh)
{
    if (hperh->xfer_size - hperh->xfer_count > 0)
    {
        (*hperh->p_buff++) = hperh->perh->RXDATA;
        hperh->xfer_count++;
    }
    else
    {
        return ALD_OK;
    }
    return ALD_OK;
}