/* param base SPI base pointer param data needs to be write. param configFlags transfer configuration options ref spi_xfer_option_t  */
void SPI_WriteData(SPI_Type *base, uint16_t data, uint32_t configFlags)
/* param base SPI base pointer param data needs to be write. param configFlags transfer configuration options ref spi_xfer_option_t  */
void SPI_WriteData(SPI_Type *base, uint16_t data, uint32_t configFlags)
{
    uint32_t control = 0U;
    uint32_t instance;
    assert(NULL != base);
    instance = SPI_GetInstance(base);
    control |= (uint32_t)SPI_FIFOWR_LEN((g_configs[instance].dataWidth));
    control |= (SPI_DEASSERT_ALL & (~SPI_DEASSERTNUM_SSEL((uint32_t)(g_configs[instance].sselNum))));
    control |= (configFlags & (uint32_t)SPI_FIFOWR_FLAGS_MASK);
    assert(0U == (control & 0xFFFFU));
    base->FIFOWR = data | control;
}