/* Post-processes a command given the case identified during the pre-processing step. Depending on the case, one of the following actions can be done: */
static unsigned char MSDD_PostProcessCommand(MSDDriver *pMsdDriver)
/* Post-processes a command given the case identified during the pre-processing step. Depending on the case, one of the following actions can be done: */
static unsigned char MSDD_PostProcessCommand(MSDDriver *pMsdDriver)
{
    MSDCommandState *commandState = &(pMsdDriver->commandState);
    MSCsw           *csw = &(commandState->csw);
    unsigned char haltStatus = 0;
    if ((commandState->postprocess & MSDD_CASE_STALL_IN) != 0) {
        TRACE_INFO_WP("StallIn ");
        MSDD_Halt(MSDD_CASE_STALL_IN);
        haltStatus = 1;
    }
    if ((commandState->postprocess & MSDD_CASE_STALL_OUT) != 0) {
        TRACE_INFO_WP("StallOut ");
        MSDD_Halt(MSDD_CASE_STALL_OUT);
        haltStatus = 1;
    }
    if ((commandState->postprocess & MSDD_CASE_PHASE_ERROR) != 0) {
        TRACE_INFO_WP("PhaseErr ");
        csw->bCSWStatus = MSD_CSW_PHASE_ERROR;
    }
    return haltStatus;
}