/* Enables or disables the specified SPI peripheral (in I2S mode).  */
void I2S_Enable(SPI_Module *SPIx, FunctionalState Cmd)
/* Enables or disables the specified SPI peripheral (in I2S mode).  */
void I2S_Enable(SPI_Module *SPIx, FunctionalState Cmd)
{
    assert_param(IS_SPI_PERIPH(SPIx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        SPIx->I2SCFG |= I2SCFG_I2SEN_ENABLE;
    }
    else
    {
        SPIx->I2SCFG &= I2SCFG_I2SEN_DISABLE;
    }
}