![]() |
M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
|
M471M/R1/S SPI driver source file. More...
#include "NuMicro.h"
Go to the source code of this file.
Functions | |
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... | |
M471M/R1/S SPI driver source file.
SPDX-License-Identifier: Apache-2.0
Definition in file spi.c.