/* MSS_SPI_set_frame_rx_handler() See "mss_spi.h" for details of how to use this function.  */
void MSS_SPI_set_frame_rx_handler(mss_spi_instance_t *this_spi, mss_spi_frame_rx_handler_t rx_handler)
/* MSS_SPI_set_frame_rx_handler() See "mss_spi.h" for details of how to use this function.  */
void MSS_SPI_set_frame_rx_handler(mss_spi_instance_t *this_spi, mss_spi_frame_rx_handler_t rx_handler)
{
    ASSERT( (this_spi == &g_mss_spi0) || (this_spi == &g_mss_spi1) );
    ASSERT( this_spi->hw_reg_bit->CTRL_MASTER == MSS_SPI_MODE_SLAVE );
    this_spi->block_rx_handler = 0U;
    this_spi->frame_rx_handler = rx_handler;
    this_spi->hw_reg_bit->CTRL_RX_INT_EN = 1U;
    NVIC_EnableIRQ( this_spi->irqn );
}