/* Fills each SPI_InitStruct member with its default value.  */
void SPI_InitStruct(SPI_InitType *SPI_InitStruct)
/* Fills each SPI_InitStruct member with its default value.  */
void SPI_InitStruct(SPI_InitType *SPI_InitStruct)
{
    SPI_InitStruct->DataDirection = SPI_DIR_DOUBLELINE_FULLDUPLEX;
    SPI_InitStruct->SpiMode = SPI_MODE_SLAVE;
    SPI_InitStruct->DataLen = SPI_DATA_SIZE_8BITS;
    SPI_InitStruct->CLKPOL = SPI_CLKPOL_LOW;
    SPI_InitStruct->CLKPHA = SPI_CLKPHA_FIRST_EDGE;
    SPI_InitStruct->NSS = SPI_NSS_HARD;
    SPI_InitStruct->BaudRatePres = SPI_BR_PRESCALER_2;
    SPI_InitStruct->FirstBit = SPI_FB_MSB;
    SPI_InitStruct->CRCPoly = 7;
}