![]() |
M480 BSP
V3.05.001
The Board Support Package for M480 Series
|
M480 series SPI driver source file. More...
#include "NuMicro.h"Go to the source code of this file.
Functions | |
| static uint32_t | SPII2S_GetSourceClockFreq (SPI_T *i2s) |
| This function is used to get I2S source clock frequency. More... | |
| uint32_t | SPI_Open (SPI_T *spi, uint32_t u32MasterSlave, uint32_t u32SPIMode, uint32_t u32DataWidth, uint32_t u32BusClock) |
| This function make SPI module be ready to transfer. More... | |
| void | SPI_Close (SPI_T *spi) |
| Disable SPI controller. More... | |
| void | SPI_ClearRxFIFO (SPI_T *spi) |
| Clear RX FIFO buffer. More... | |
| void | SPI_ClearTxFIFO (SPI_T *spi) |
| Clear TX FIFO buffer. More... | |
| void | SPI_DisableAutoSS (SPI_T *spi) |
| Disable the automatic slave selection function. More... | |
| void | SPI_EnableAutoSS (SPI_T *spi, uint32_t u32SSPinMask, uint32_t u32ActiveLevel) |
| Enable the automatic slave selection function. More... | |
| uint32_t | SPI_SetBusClock (SPI_T *spi, uint32_t u32BusClock) |
| Set the SPI bus clock. More... | |
| void | SPI_SetFIFO (SPI_T *spi, uint32_t u32TxThreshold, uint32_t u32RxThreshold) |
| Configure FIFO threshold setting. More... | |
| uint32_t | SPI_GetBusClock (SPI_T *spi) |
| Get the actual frequency of SPI bus clock. Only available in Master mode. More... | |
| void | SPI_EnableInt (SPI_T *spi, uint32_t u32Mask) |
| Enable interrupt function. More... | |
| void | SPI_DisableInt (SPI_T *spi, uint32_t u32Mask) |
| Disable interrupt function. More... | |
| uint32_t | SPI_GetIntFlag (SPI_T *spi, uint32_t u32Mask) |
| Get interrupt flag. More... | |
| void | SPI_ClearIntFlag (SPI_T *spi, uint32_t u32Mask) |
| Clear interrupt flag. More... | |
| uint32_t | SPI_GetStatus (SPI_T *spi, uint32_t u32Mask) |
| Get SPI status. More... | |
| uint32_t | SPII2S_Open (SPI_T *i2s, uint32_t u32MasterSlave, uint32_t u32SampleRate, uint32_t u32WordWidth, uint32_t u32Channels, uint32_t u32DataFormat) |
| This function configures some parameters of I2S interface for general purpose use. More... | |
| void | SPII2S_Close (SPI_T *i2s) |
| Disable I2S function. More... | |
| void | SPII2S_EnableInt (SPI_T *i2s, uint32_t u32Mask) |
| Enable interrupt function. More... | |
| void | SPII2S_DisableInt (SPI_T *i2s, uint32_t u32Mask) |
| Disable interrupt function. More... | |
| uint32_t | SPII2S_EnableMCLK (SPI_T *i2s, uint32_t u32BusClock) |
| Enable master clock (MCLK). More... | |
| void | SPII2S_DisableMCLK (SPI_T *i2s) |
| Disable master clock (MCLK). More... | |
| void | SPII2S_SetFIFO (SPI_T *i2s, uint32_t u32TxThreshold, uint32_t u32RxThreshold) |
| Configure FIFO threshold setting. More... | |
M480 series SPI driver source file.
Definition in file spi.c.
1.8.15