Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_spi.c
tEtaStatus
EtaCspSpiProcessIntXmitDone()
{
    if((gsSpiCmd.bCmdActive == 0) ||
       (gsSpiCmd.ui16TxLen != 0) ||
       (gsSpiCmd.ui16RxLen != 0))
    {
        return(eEtaSpiCmdSequenceErr);
    }


    gsSpiCmd.bCmdActive = 0;
    gsSpiCmd.spiStatus = eEtaSuccess;
    REG_SPI2_INT_EN = (REG_SPI2_INT_EN & ~BM_SPI2_INT_EN_XMIT_COMPLETE_EN0);

    return(eEtaSuccess);
}
/***************************************************************************/
/**
 *
 *  EtaCspSpiProcessIntXmitDone - Process SPI Interrupt for All Transmit/Recieve
 *                                complete
 *
 ******************************************************************************/
Process SPI Interrupt for All Transmit/Recieve
complete
Process SPI Interrupt for All Transmit / Recieve complete
tEtaStatus
EtaCspSpiProcessIntXmitDone()
{
    if((gsSpiCmd.bCmdActive == 0) ||
       (gsSpiCmd.ui16TxLen != 0) ||
       (gsSpiCmd.ui16RxLen != 0))
    {
        return(eEtaSpiCmdSequenceErr);
    }
    gsSpiCmd.bCmdActive = 0;
    gsSpiCmd.spiStatus = eEtaSuccess;
    REG_SPI2_INT_EN = (REG_SPI2_INT_EN & ~BM_SPI2_INT_EN_XMIT_COMPLETE_EN0);
    return(eEtaSuccess);
}
tEtaStatus EtaCspSpiProcessIntXmitDone ( ) { if ( ( gsSpiCmd . bCmdActive == 0 ) || ( gsSpiCmd . ui16TxLen != 0 ) || ( gsSpiCmd . ui16RxLen != 0 ) ) { return ( eEtaSpiCmdSequenceErr ) ; } gsSpiCmd . bCmdActive = 0 ; gsSpiCmd . spiStatus = eEtaSuccess ; REG_SPI2_INT_EN = ( REG_SPI2_INT_EN & ~ BM_SPI2_INT_EN_XMIT_COMPLETE_EN0 ) ; return ( eEtaSuccess ) ; }
EtaCspSpiProcessIntXmitDone - Process SPI Interrupt for All Transmit/Recieve
                                complete
EtaCspSpiProcessIntXmitDone - Process SPI Interrupt for All Transmit / Recieve complete