/* Handle transmit empty flag for Master Transmit mode.  */
static ald_status_t i2c_master_send_txe(ald_i2c_handle_t *hperh)
/* Handle transmit empty flag for Master Transmit mode.  */
static ald_status_t i2c_master_send_txe(ald_i2c_handle_t *hperh)
{
    if (hperh->xfer_count != hperh->xfer_size)
    {
        hperh->perh->TXDATA = (*hperh->p_buff++);
        hperh->xfer_count++;
    }
    return ALD_OK;
}