| M480 BSP V3.05.001 The Board Support Package for M480 Series

Functions
usci_spi.c File Reference

M480 series USCI_SPI driver source file. More...

`#include "NuMicro.h"`

Go to the source code of this file.

## Functions
uint32_t | USPI_Open (USPI_T *uspi, uint32_t u32MasterSlave, uint32_t u32SPIMode, uint32_t u32DataWidth, uint32_t u32BusClock)
| This function make USCI_SPI module be ready to transfer. By default, the USCI_SPI transfer sequence is MSB first, the slave selection signal is active low and the automatic slave select function is disabled. In Slave mode, the u32BusClock must be NULL and the USCI_SPI clock divider setting will be 0. More...
void | USPI_Close (USPI_T *uspi)
| Disable USCI_SPI function mode. More...
void | USPI_ClearRxBuf (USPI_T *uspi)
| Clear Rx buffer. More...
void | USPI_ClearTxBuf (USPI_T *uspi)
| Clear Tx buffer. More...
void | USPI_DisableAutoSS (USPI_T *uspi)
| Disable the automatic slave select function. More...
void | USPI_EnableAutoSS (USPI_T *uspi, uint32_t u32SSPinMask, uint32_t u32ActiveLevel)
| Enable the automatic slave select function. Only available in Master mode. More...
uint32_t | USPI_SetBusClock (USPI_T *uspi, uint32_t u32BusClock)
| Set the USCI_SPI bus clock. Only available in Master mode. More...
uint32_t | USPI_GetBusClock (USPI_T *uspi)
| Get the actual frequency of USCI_SPI bus clock. Only available in Master mode. More...
void | USPI_EnableInt (USPI_T *uspi, uint32_t u32Mask)
| Enable related interrupts specified by u32Mask parameter. More...
void | USPI_DisableInt (USPI_T *uspi, uint32_t u32Mask)
| Disable related interrupts specified by u32Mask parameter. More...
uint32_t | USPI_GetIntFlag (USPI_T *uspi, uint32_t u32Mask)
| Get interrupt flag. More...
void | USPI_ClearIntFlag (USPI_T *uspi, uint32_t u32Mask)
| Clear interrupt flag. More...
uint32_t | USPI_GetStatus (USPI_T *uspi, uint32_t u32Mask)
| Get USCI_SPI status. More...
void | USPI_EnableWakeup (USPI_T *uspi)
| Enable USCI_SPI Wake-up Function. More...
void | USPI_DisableWakeup (USPI_T *uspi)
| Disable USCI_SPI Wake-up Function. More...

## Detailed Description

M480 series USCI_SPI driver source file.

Version
  V3.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file usci_spi.c.