/* MSS_SPI_set_slave_tx_frame() See "mss_spi.h" for details of how to use this function.  */
void MSS_SPI_set_slave_tx_frame(mss_spi_instance_t *this_spi, uint32_t frame_value)
/* MSS_SPI_set_slave_tx_frame() See "mss_spi.h" for details of how to use this function.  */
void MSS_SPI_set_slave_tx_frame(mss_spi_instance_t *this_spi, uint32_t frame_value)
{
    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->slave_tx_buffer = 0U;
    this_spi->slave_tx_size = 0U;
    this_spi->slave_tx_idx = 0U;
    this_spi->slave_tx_frame = frame_value;
    this_spi->hw_reg->TX_DATA = this_spi->slave_tx_frame;
    this_spi->hw_reg_bit->CTRL_TX_INT_EN = 1U;
    NVIC_EnableIRQ( this_spi->irqn );
}