Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_spi.c
/***************************************************************************/
/**
 *
 *  EtaCspSpiIntEnable - Enable interrupts with bits set to TRUE
 *
 *  @param iNum the SPI number.
 *  @param iSpiInt interrupts set to TRUE are enabled.
 *  @return void
 *
 ******************************************************************************/
Enable interrupts with bits set to TRUE
@param iNum the SPI number.
@param iSpiInt interrupts set to TRUE are enabled.
@return void
Enable interrupts with bits set to TRUE @param iNum the SPI number . @param iSpiInt interrupts set to TRUE are enabled . @return void
void EtaCspSpiIntEnable(tSpiNum iNum, tSpiInt iSpiInt)
{
    reg_spi_int_en_t reg_spi_int_en;
    reg_spi_int_en.V = MEMIO16(REG_SPI_INT_EN_ADDR(iNum) );
    reg_spi_int_en.BF.CMD_IS_DONE_EN0            |= iSpiInt.bCmdIsDone;
    reg_spi_int_en.BF.XMIT_COMPLETE_EN0          |= iSpiInt.bXmitComplete;
    reg_spi_int_en.BF.RX_FIFO_HIT_LEVEL_EN0      |= iSpiInt.bRxFifoHitLevel;
    reg_spi_int_en.BF.TXFIFO_HAS_LEVEL_SPACE_EN0 |= iSpiInt.bTxFifoHitLevel;
    reg_spi_int_en.BF.RX_DATA_EN0                |= iSpiInt.bRxFifoHasData;
    reg_spi_int_en.BF.TX_DATA_EN0                |= iSpiInt.bTxFifoHasSpace;
    MEMIO16(REG_SPI_INT_EN_ADDR(iNum) ) = reg_spi_int_en.V;
}
void EtaCspSpiIntEnable ( tSpiNum iNum , tSpiInt iSpiInt ) { reg_spi_int_en_t reg_spi_int_en ; reg_spi_int_en . V = MEMIO16 ( REG_SPI_INT_EN_ADDR ( iNum ) ) ; reg_spi_int_en . BF . CMD_IS_DONE_EN0 |= iSpiInt . bCmdIsDone ; reg_spi_int_en . BF . XMIT_COMPLETE_EN0 |= iSpiInt . bXmitComplete ; reg_spi_int_en . BF . RX_FIFO_HIT_LEVEL_EN0 |= iSpiInt . bRxFifoHitLevel ; reg_spi_int_en . BF . TXFIFO_HAS_LEVEL_SPACE_EN0 |= iSpiInt . bTxFifoHitLevel ; reg_spi_int_en . BF . RX_DATA_EN0 |= iSpiInt . bRxFifoHasData ; reg_spi_int_en . BF . TX_DATA_EN0 |= iSpiInt . bTxFifoHasSpace ; MEMIO16 ( REG_SPI_INT_EN_ADDR ( iNum ) ) = reg_spi_int_en . V ; }
EtaCspSpiIntEnable - Enable interrupts with bits set to TRUE
  @param iNum the SPI number.
EtaCspSpiIntEnable - Enable interrupts with bits set to TRUE @param iNum the SPI number .