MG32L003 Standard Peripherals Firmware Library

函数
mg32l003_spi.c 文件参考

This file provides all the SPI firmware functions. 更多...

`#include "mg32l003_spi.h"`
`#include "mg32l003_rcc.h"`

## 函数
void | SPI_DeInit (SPI_TypeDef *SPIx)
| Deinitializes the SPIx peripheral registers to their default reset values. 更多...
void | SPI_Init (SPI_TypeDef *SPIx, SPI_InitTypeDef *SPI_InitStruct)
| Initializes the SPIx peripheral according to the specified parameters in the SPI_InitStruct. 更多...
void | SPI_Cmd (SPI_TypeDef *SPIx, FunctionalState NewState)
| Enables or disables the specified SPI peripheral. 更多...
void | SPI_NSSConfig (SPI_TypeDef *SPIx, FunctionalState NewState)
| Enables or disables the specified slave select line. 更多...
uint8_t | SPI_ReadData (SPI_TypeDef *SPIx)
| Read one data from DATA register. 更多...
void | SPI_WriteData (SPI_TypeDef *SPIx, uint8_t Data)
| Write one data to DATA register. 更多...
FlagStatus | SPI_GetFlagStatus (SPI_TypeDef *SPIx, uint8_t SPI_FLAG)
| Checks whether the specified SPIx flag is set or not. 更多...

## 详细描述

This file provides all the SPI firmware functions.

作者
  megawin Application Team

版本
  V0.0.5

日期
  13-August-2024