/* introduce function I3C_TransferStateMachineWaitForCompletionState. This function was deal with Wait For Completion State.  */
static void I3C_TransferStateMachineWaitForCompletionState(i3c_master_handle_t *handle, i3c_master_state_machine_param_t *stateParams)
/* introduce function I3C_TransferStateMachineWaitForCompletionState. This function was deal with Wait For Completion State.  */
static void I3C_TransferStateMachineWaitForCompletionState(i3c_master_handle_t *handle, i3c_master_state_machine_param_t *stateParams)
{
    if (0UL != (stateParams->status & (uint32_t)kI3C_MasterCompleteFlag))
    {
        handle->state = (uint8_t)kStopState;
    }
    else
    {
        stateParams->state_complete = true;
    }
}