SPI_InitTypeDef Struct Reference
[SPI_Exported_Types]

SPI Init structure definition. More...

#include <stm32f10x_spi.h>

Data Fields

uint16_t SPI_BaudRatePrescaler
uint16_t SPI_CPHA
uint16_t SPI_CPOL
uint16_t SPI_CRCPolynomial
uint16_t SPI_DataSize
uint16_t SPI_Direction
uint16_t SPI_FirstBit
uint16_t SPI_Mode
uint16_t SPI_NSS

Detailed Description

SPI Init structure definition.

Definition at line 49 of file stm32f10x_spi.h.


Field Documentation

Specifies the Baud Rate prescaler value which will be used to configure the transmit and receive SCK clock. This parameter can be a value of SPI_BaudRate_Prescaler.

Note:
The communication clock is derived from the master clock. The slave clock does not need to be set.

Definition at line 70 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Init(), and SPI_StructInit().

Specifies the clock active edge for the bit capture. This parameter can be a value of SPI_Clock_Phase

Definition at line 63 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Configuration(), SPI_Init(), and SPI_StructInit().

Specifies the serial clock steady state. This parameter can be a value of SPI_Clock_Polarity

Definition at line 60 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Configuration(), SPI_Init(), and SPI_StructInit().

Specifies the polynomial used for the CRC calculation.

Definition at line 79 of file stm32f10x_spi.h.

Referenced by main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Init(), and SPI_StructInit().

Specifies the SPI data size. This parameter can be a value of SPI_data_size

Definition at line 57 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Configuration(), SPI_Init(), and SPI_StructInit().

Specifies the SPI unidirectional or bidirectional data mode. This parameter can be a value of SPI_data_direction

Definition at line 51 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Configuration(), SPI_Init(), and SPI_StructInit().

Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of SPI_MSB_LSB_transmission

Definition at line 76 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Configuration(), SPI_Init(), and SPI_StructInit().

Specifies the SPI operating mode. This parameter can be a value of SPI_mode

Definition at line 54 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Configuration(), SPI_Init(), and SPI_StructInit().

Specifies whether the NSS signal is managed by hardware (NSS pin) or by software using the SSI bit. This parameter can be a value of SPI_Slave_Select_management

Definition at line 66 of file stm32f10x_spi.h.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), SPI_Configuration(), SPI_Init(), and SPI_StructInit().


The documentation for this struct was generated from the following file:
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32