/* Configures the data size for the selected SPI.  */
void SPI_DataSizeConfig(SPI_TypeDef *SPIx, uint16_t SPI_DataSize)
/* Configures the data size for the selected SPI.  */
void SPI_DataSizeConfig(SPI_TypeDef *SPIx, uint16_t SPI_DataSize)
{
    assert_param(IS_SPI_ALL_PERIPH(SPIx));
    assert_param(IS_SPI_DATASIZE(SPI_DataSize));
    SPIx->GCTL &= SPI_DataSize_Mask;
    SPIx->GCTL |= SPI_DataSize;
}