|
MG32F157 Standard Peripherals Firmware Library
|
This file provides all the SPI firmware functions. More...
Functions | |
| void | SPI_I2S_DeInit (SPI_TypeDef *SPIx) |
| Deinitializes the SPIx peripheral registers to their default reset values (Affects also the I2Ss). More... | |
| void | SPI_Init (SPI_TypeDef *SPIx, SPI_InitTypeDef *SPI_InitStruct) |
| Initializes the SPIx peripheral according to the specified parameters in the SPI_InitStruct. More... | |
| void | I2S_Init (SPI_TypeDef *SPIx, I2S_InitTypeDef *I2S_InitStruct) |
| Initializes the SPIx peripheral according to the specified parameters in the I2S_InitStruct. More... | |
| void | SPI_StructInit (SPI_InitTypeDef *SPI_InitStruct) |
| Fills each SPI_InitStruct member with its default value. More... | |
| void | I2S_StructInit (I2S_InitTypeDef *I2S_InitStruct) |
| Fills each I2S_InitStruct member with its default value. More... | |
| void | SPI_Cmd (SPI_TypeDef *SPIx, FunctionalState NewState) |
| Enables or disables the specified SPI peripheral. More... | |
| void | I2S_Cmd (SPI_TypeDef *SPIx, FunctionalState NewState) |
| Enables or disables the specified SPI peripheral (in I2S mode). More... | |
| void | SPI_I2S_ITConfig (SPI_TypeDef *SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState) |
| Enables or disables the specified SPI/I2S interrupts. More... | |
| void | SPI_I2S_DMACmd (SPI_TypeDef *SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState) |
| Enables or disables the SPIx/I2Sx DMA interface. More... | |
| void | SPI_I2S_SendData (SPI_TypeDef *SPIx, uint16_t Data) |
| Transmits a Data through the SPIx/I2Sx peripheral. More... | |
| uint16_t | SPI_I2S_ReceiveData (SPI_TypeDef *SPIx) |
| Returns the most recent received data by the SPIx/I2Sx peripheral. More... | |
| void | SPI_NSSInternalSoftwareConfig (SPI_TypeDef *SPIx, uint16_t SPI_NSSInternalSoft) |
| Configures internally by software the NSS pin for the selected SPI. More... | |
| void | SPI_SSOutputCmd (SPI_TypeDef *SPIx, FunctionalState NewState) |
| Enables or disables the SS output for the selected SPI. More... | |
| void | SPI_DataSizeConfig (SPI_TypeDef *SPIx, uint16_t SPI_DataSize) |
| Configures the data size for the selected SPI. More... | |
| void | SPI_TransmitCRC (SPI_TypeDef *SPIx) |
| Transmit the SPIx CRC value. More... | |
| void | SPI_CalculateCRC (SPI_TypeDef *SPIx, FunctionalState NewState) |
| Enables or disables the CRC value calculation of the transferred bytes. More... | |
| uint16_t | SPI_GetCRC (SPI_TypeDef *SPIx, uint8_t SPI_CRC) |
| Returns the transmit or the receive CRC register value for the specified SPI. More... | |
| uint16_t | SPI_GetCRCPolynomial (SPI_TypeDef *SPIx) |
| Returns the CRC Polynomial register value for the specified SPI. More... | |
| void | SPI_BiDirectionalLineConfig (SPI_TypeDef *SPIx, uint16_t SPI_Direction) |
| Selects the data transfer direction in bi-directional mode for the specified SPI. More... | |
| FlagStatus | SPI_I2S_GetFlagStatus (SPI_TypeDef *SPIx, uint16_t SPI_I2S_FLAG) |
| Checks whether the specified SPI/I2S flag is set or not. More... | |
| void | SPI_I2S_ClearFlag (SPI_TypeDef *SPIx, uint16_t SPI_I2S_FLAG) |
| Clears the SPIx CRC Error (CRCERR) flag. More... | |
| ITStatus | SPI_I2S_GetITStatus (SPI_TypeDef *SPIx, uint8_t SPI_I2S_IT) |
| Checks whether the specified SPI/I2S interrupt has occurred or not. More... | |
| void | SPI_I2S_ClearITPendingBit (SPI_TypeDef *SPIx, uint8_t SPI_I2S_IT) |
| Clears the SPIx CRC Error (CRCERR) interrupt pending bit. More... | |
This file provides all the SPI firmware functions.