MG32L003 Standard Peripherals Firmware Library
Functions
mg32l003_spi.c File Reference

This file provides all the SPI firmware functions. More...

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

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...
 

Detailed Description

This file provides all the SPI firmware functions.

Author
megawin Application Team
Version
V0.0.5
Date
13-August-2024