/* retval kStatus_Success Successfully send the stop signal. retval kStatus_I2C_Timeout Send stop signal failed, timeout.  */
status_t I2C_MasterStop(I2C_Type *base)
/* retval kStatus_Success Successfully send the stop signal. retval kStatus_I2C_Timeout Send stop signal failed, timeout.  */
status_t I2C_MasterStop(I2C_Type *base)
{
    status_t result = I2C_PendingStatusWait(base);
    if (result != kStatus_Success)
    {
        return result;
    }
    base->MSTCTL = I2C_MSTCTL_MSTSTOP_MASK;
    return kStatus_Success;
}