MG32L003 Standard Peripherals Firmware Library
|
This file provides all the SPI firmware functions. More...
Functions | |
void | SPI_DeInit (SPI_TypeDef *SPIx) |
Deinitializes the SPIx peripheral registers to their default reset values. 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 | SPI_Cmd (SPI_TypeDef *SPIx, FunctionalState NewState) |
Enables or disables the specified SPI peripheral. More... | |
void | SPI_NSSConfig (SPI_TypeDef *SPIx, FunctionalState NewState) |
Enables or disables the specified slave select line. More... | |
uint8_t | SPI_ReadData (SPI_TypeDef *SPIx) |
Read one data from DATA register. More... | |
void | SPI_WriteData (SPI_TypeDef *SPIx, uint8_t Data) |
Write one data to DATA register. More... | |
FlagStatus | SPI_GetFlagStatus (SPI_TypeDef *SPIx, uint8_t SPI_FLAG) |
Checks whether the specified SPIx flag is set or not. More... | |
This file provides all the SPI firmware functions.