/* Configures internally by software the NSS pin for the selected SPI.  */
void SPI_SetNssLevel(SPI_Module *SPIx, uint16_t SPI_NSSInternalSoft)
/* Configures internally by software the NSS pin for the selected SPI.  */
void SPI_SetNssLevel(SPI_Module *SPIx, uint16_t SPI_NSSInternalSoft)
{
    assert_param(IS_SPI_PERIPH(SPIx));
    assert_param(IS_SPI_NSS_LEVEL(SPI_NSSInternalSoft));
    if (SPI_NSSInternalSoft != SPI_NSS_LOW)
    {
        SPIx->CTRL1 |= SPI_NSS_HIGH;
    }
    else
    {
        SPIx->CTRL1 &= SPI_NSS_LOW;
    }
}