Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_spi.c
/***************************************************************************/
/**
 *
 *  EtaCspSpiIntStatusGet - Get interrupt status structure
 *
 *  @param iNum the SPI number.
 *  @return tSpiInt struct of interrupts triggered.
 *
 ******************************************************************************/
Get interrupt status structure
@param iNum the SPI number.
@return tSpiInt struct of interrupts triggered.
Get interrupt status structure @param iNum the SPI number . @return tSpiInt struct of interrupts triggered .
tSpiInt EtaCspSpiIntStatusGet(tSpiNum iNum)
{
    reg_spi_int_act_t reg_spi_int_act;
    reg_spi_int_act.V = MEMIO16(REG_SPI_INT_ACT_ADDR(iNum) );
    tSpiInt iSpiIntStatus = {
        .bCmdIsDone      = reg_spi_int_act.BF.CMD_IS_DONE_ACT,
        .bXmitComplete   = reg_spi_int_act.BF.XMIT_COMPLETE_ACT,
        .bRxFifoHitLevel = reg_spi_int_act.BF.RX_FIFO_HIT_LEVEL_ACT,
        .bTxFifoHitLevel = reg_spi_int_act.BF.TXFIFO_HAS_LEVEL_SPACE_ACT,
        .bRxFifoHasData  = reg_spi_int_act.BF.RX_DATA_ACT,
        .bTxFifoHasSpace = reg_spi_int_act.BF.TX_DATA_ACT
    };
    return iSpiIntStatus;
}
tSpiInt EtaCspSpiIntStatusGet ( tSpiNum iNum ) { reg_spi_int_act_t reg_spi_int_act ; reg_spi_int_act . V = MEMIO16 ( REG_SPI_INT_ACT_ADDR ( iNum ) ) ; tSpiInt iSpiIntStatus = { . bCmdIsDone = reg_spi_int_act . BF . CMD_IS_DONE_ACT , . bXmitComplete = reg_spi_int_act . BF . XMIT_COMPLETE_ACT , . bRxFifoHitLevel = reg_spi_int_act . BF . RX_FIFO_HIT_LEVEL_ACT , . bTxFifoHitLevel = reg_spi_int_act . BF . TXFIFO_HAS_LEVEL_SPACE_ACT , . bRxFifoHasData = reg_spi_int_act . BF . RX_DATA_ACT , . bTxFifoHasSpace = reg_spi_int_act . BF . TX_DATA_ACT } ; return iSpiIntStatus ; }
EtaCspSpiIntStatusGet - Get interrupt status structure
  @param iNum the SPI number.
EtaCspSpiIntStatusGet - Get interrupt status structure @param iNum the SPI number .