/* Configures the data size for the selected SPI.  */
void SPI_ConfigDataLen(SPI_Module *SPIx, uint16_t DataLen)
/* Configures the data size for the selected SPI.  */
void SPI_ConfigDataLen(SPI_Module *SPIx, uint16_t DataLen)
{
    assert_param(IS_SPI_PERIPH(SPIx));
    assert_param(IS_SPI_DATASIZE(DataLen));
    SPIx->CTRL1 &= (uint16_t)~SPI_DATA_SIZE_16BITS;
    SPIx->CTRL1 |= DataLen;
}