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

Data Structures
uspi_reg.h File Reference

USPI register definition header file. More...

Go to the source code of this file.

## Data Structures
struct | USPI_T

## Macros
#define | USPI_CTL_FUNMODE_Pos (0)
#define | USPI_CTL_FUNMODE_Msk (0x7ul << USPI_CTL_FUNMODE_Pos)
#define | USPI_INTEN_TXSTIEN_Pos (1)
#define | USPI_INTEN_TXSTIEN_Msk (0x1ul << USPI_INTEN_TXSTIEN_Pos)
#define | USPI_INTEN_TXENDIEN_Pos (2)
#define | USPI_INTEN_TXENDIEN_Msk (0x1ul << USPI_INTEN_TXENDIEN_Pos)
#define | USPI_INTEN_RXSTIEN_Pos (3)
#define | USPI_INTEN_RXSTIEN_Msk (0x1ul << USPI_INTEN_RXSTIEN_Pos)
#define | USPI_INTEN_RXENDIEN_Pos (4)
#define | USPI_INTEN_RXENDIEN_Msk (0x1ul << USPI_INTEN_RXENDIEN_Pos)
#define | USPI_BRGEN_RCLKSEL_Pos (0)
#define | USPI_BRGEN_RCLKSEL_Msk (0x1ul << USPI_BRGEN_RCLKSEL_Pos)
#define | USPI_BRGEN_PTCLKSEL_Pos (1)
#define | USPI_BRGEN_PTCLKSEL_Msk (0x1ul << USPI_BRGEN_PTCLKSEL_Pos)
#define | USPI_BRGEN_SPCLKSEL_Pos (2)
#define | USPI_BRGEN_SPCLKSEL_Msk (0x3ul << USPI_BRGEN_SPCLKSEL_Pos)
#define | USPI_BRGEN_TMCNTEN_Pos (4)
#define | USPI_BRGEN_TMCNTEN_Msk (0x1ul << USPI_BRGEN_TMCNTEN_Pos)
#define | USPI_BRGEN_TMCNTSRC_Pos (5)
#define | USPI_BRGEN_TMCNTSRC_Msk (0x1ul << USPI_BRGEN_TMCNTSRC_Pos)
#define | USPI_BRGEN_CLKDIV_Pos (16)
#define | USPI_BRGEN_CLKDIV_Msk (0x3fful << USPI_BRGEN_CLKDIV_Pos)
#define | USPI_DATIN0_SYNCSEL_Pos (0)
#define | USPI_DATIN0_SYNCSEL_Msk (0x1ul << USPI_DATIN0_SYNCSEL_Pos)
#define | USPI_DATIN0_ININV_Pos (2)
#define | USPI_DATIN0_ININV_Msk (0x1ul << USPI_DATIN0_ININV_Pos)
#define | USPI_CTLIN0_SYNCSEL_Pos (0)
#define | USPI_CTLIN0_SYNCSEL_Msk (0x1ul << USPI_CTLIN0_SYNCSEL_Pos)
#define | USPI_CTLIN0_ININV_Pos (2)
#define | USPI_CTLIN0_ININV_Msk (0x1ul << USPI_CTLIN0_ININV_Pos)
#define | USPI_CLKIN_SYNCSEL_Pos (0)
#define | USPI_CLKIN_SYNCSEL_Msk (0x1ul << USPI_CLKIN_SYNCSEL_Pos)
#define | USPI_LINECTL_LSB_Pos (0)
#define | USPI_LINECTL_LSB_Msk (0x1ul << USPI_LINECTL_LSB_Pos)
#define | USPI_LINECTL_DATOINV_Pos (5)
#define | USPI_LINECTL_DATOINV_Msk (0x1ul << USPI_LINECTL_DATOINV_Pos)
#define | USPI_LINECTL_CTLOINV_Pos (7)
#define | USPI_LINECTL_CTLOINV_Msk (0x1ul << USPI_LINECTL_CTLOINV_Pos)
#define | USPI_LINECTL_DWIDTH_Pos (8)
#define | USPI_LINECTL_DWIDTH_Msk (0xful << USPI_LINECTL_DWIDTH_Pos)
#define | USPI_TXDAT_TXDAT_Pos (0)
#define | USPI_TXDAT_TXDAT_Msk (0xfffful << USPI_TXDAT_TXDAT_Pos)
#define | USPI_TXDAT_PORTDIR_Pos (16)
#define | USPI_TXDAT_PORTDIR_Msk (0x1ul << USPI_TXDAT_PORTDIR_Pos)
#define | USPI_RXDAT_RXDAT_Pos (0)
#define | USPI_RXDAT_RXDAT_Msk (0xfffful << USPI_RXDAT_RXDAT_Pos)
#define | USPI_BUFCTL_TXUDRIEN_Pos (6)
#define | USPI_BUFCTL_TXUDRIEN_Msk (0x1ul << USPI_BUFCTL_TXUDRIEN_Pos)
#define | USPI_BUFCTL_TXCLR_Pos (7)
#define | USPI_BUFCTL_TXCLR_Msk (0x1ul << USPI_BUFCTL_TXCLR_Pos)
#define | USPI_BUFCTL_RXOVIEN_Pos (14)
#define | USPI_BUFCTL_RXOVIEN_Msk (0x1ul << USPI_BUFCTL_RXOVIEN_Pos)
#define | USPI_BUFCTL_RXCLR_Pos (15)
#define | USPI_BUFCTL_RXCLR_Msk (0x1ul << USPI_BUFCTL_RXCLR_Pos)
#define | USPI_BUFCTL_TXRST_Pos (16)
#define | USPI_BUFCTL_TXRST_Msk (0x1ul << USPI_BUFCTL_TXRST_Pos)
#define | USPI_BUFCTL_RXRST_Pos (17)
#define | USPI_BUFCTL_RXRST_Msk (0x1ul << USPI_BUFCTL_RXRST_Pos)
#define | USPI_BUFSTS_RXEMPTY_Pos (0)
#define | USPI_BUFSTS_RXEMPTY_Msk (0x1ul << USPI_BUFSTS_RXEMPTY_Pos)
#define | USPI_BUFSTS_RXFULL_Pos (1)
#define | USPI_BUFSTS_RXFULL_Msk (0x1ul << USPI_BUFSTS_RXFULL_Pos)
#define | USPI_BUFSTS_RXOVIF_Pos (3)
#define | USPI_BUFSTS_RXOVIF_Msk (0x1ul << USPI_BUFSTS_RXOVIF_Pos)
#define | USPI_BUFSTS_TXEMPTY_Pos (8)
#define | USPI_BUFSTS_TXEMPTY_Msk (0x1ul << USPI_BUFSTS_TXEMPTY_Pos)
#define | USPI_BUFSTS_TXFULL_Pos (9)
#define | USPI_BUFSTS_TXFULL_Msk (0x1ul << USPI_BUFSTS_TXFULL_Pos)
#define | USPI_BUFSTS_TXUDRIF_Pos (11)
#define | USPI_BUFSTS_TXUDRIF_Msk (0x1ul << USPI_BUFSTS_TXUDRIF_Pos)
#define | USPI_PDMACTL_PDMARST_Pos (0)
#define | USPI_PDMACTL_PDMARST_Msk (0x1ul << USPI_PDMACTL_PDMARST_Pos)
#define | USPI_PDMACTL_TXPDMAEN_Pos (1)
#define | USPI_PDMACTL_TXPDMAEN_Msk (0x1ul << USPI_PDMACTL_TXPDMAEN_Pos)
#define | USPI_PDMACTL_RXPDMAEN_Pos (2)
#define | USPI_PDMACTL_RXPDMAEN_Msk (0x1ul << USPI_PDMACTL_RXPDMAEN_Pos)
#define | USPI_PDMACTL_PDMAEN_Pos (3)
#define | USPI_PDMACTL_PDMAEN_Msk (0x1ul << USPI_PDMACTL_PDMAEN_Pos)
#define | USPI_WKCTL_WKEN_Pos (0)
#define | USPI_WKCTL_WKEN_Msk (0x1ul << USPI_WKCTL_WKEN_Pos)
#define | USPI_WKCTL_WKADDREN_Pos (1)
#define | USPI_WKCTL_WKADDREN_Msk (0x1ul << USPI_WKCTL_WKADDREN_Pos)
#define | USPI_WKCTL_PDBOPT_Pos (2)
#define | USPI_WKCTL_PDBOPT_Msk (0x1ul << USPI_WKCTL_PDBOPT_Pos)
#define | USPI_WKSTS_WKF_Pos (0)
#define | USPI_WKSTS_WKF_Msk (0x1ul << USPI_WKSTS_WKF_Pos)
#define | USPI_PROTCTL_SLAVE_Pos (0)
#define | USPI_PROTCTL_SLAVE_Msk (0x1ul << USPI_PROTCTL_SLAVE_Pos)
#define | USPI_PROTCTL_SLV3WIRE_Pos (1)
#define | USPI_PROTCTL_SLV3WIRE_Msk (0x1ul << USPI_PROTCTL_SLV3WIRE_Pos)
#define | USPI_PROTCTL_SS_Pos (2)
#define | USPI_PROTCTL_SS_Msk (0x1ul << USPI_PROTCTL_SS_Pos)
#define | USPI_PROTCTL_AUTOSS_Pos (3)
#define | USPI_PROTCTL_AUTOSS_Msk (0x1ul << USPI_PROTCTL_AUTOSS_Pos)
#define | USPI_PROTCTL_SCLKMODE_Pos (6)
#define | USPI_PROTCTL_SCLKMODE_Msk (0x3ul << USPI_PROTCTL_SCLKMODE_Pos)
#define | USPI_PROTCTL_SUSPITV_Pos (8)
#define | USPI_PROTCTL_SUSPITV_Msk (0xful << USPI_PROTCTL_SUSPITV_Pos)
#define | USPI_PROTCTL_TSMSEL_Pos (12)
#define | USPI_PROTCTL_TSMSEL_Msk (0x7ul << USPI_PROTCTL_TSMSEL_Pos)
#define | USPI_PROTCTL_SLVTOCNT_Pos (16)
#define | USPI_PROTCTL_SLVTOCNT_Msk (0x3fful << USPI_PROTCTL_SLVTOCNT_Pos)
#define | USPI_PROTCTL_TXUDRPOL_Pos (28)
#define | USPI_PROTCTL_TXUDRPOL_Msk (0x1ul << USPI_PROTCTL_TXUDRPOL_Pos)
#define | USPI_PROTCTL_PROTEN_Pos (31)
#define | USPI_PROTCTL_PROTEN_Msk (0x1ul << USPI_PROTCTL_PROTEN_Pos)
#define | USPI_PROTIEN_SSINAIEN_Pos (0)
#define | USPI_PROTIEN_SSINAIEN_Msk (0x1ul << USPI_PROTIEN_SSINAIEN_Pos)
#define | USPI_PROTIEN_SSACTIEN_Pos (1)
#define | USPI_PROTIEN_SSACTIEN_Msk (0x1ul << USPI_PROTIEN_SSACTIEN_Pos)
#define | USPI_PROTIEN_SLVTOIEN_Pos (2)
#define | USPI_PROTIEN_SLVTOIEN_Msk (0x1ul << USPI_PROTIEN_SLVTOIEN_Pos)
#define | USPI_PROTIEN_SLVBEIEN_Pos (3)
#define | USPI_PROTIEN_SLVBEIEN_Msk (0x1ul << USPI_PROTIEN_SLVBEIEN_Pos)
#define | USPI_PROTSTS_TXSTIF_Pos (1)
#define | USPI_PROTSTS_TXSTIF_Msk (0x1ul << USPI_PROTSTS_TXSTIF_Pos)
#define | USPI_PROTSTS_TXENDIF_Pos (2)
#define | USPI_PROTSTS_TXENDIF_Msk (0x1ul << USPI_PROTSTS_TXENDIF_Pos)
#define | USPI_PROTSTS_RXSTIF_Pos (3)
#define | USPI_PROTSTS_RXSTIF_Msk (0x1ul << USPI_PROTSTS_RXSTIF_Pos)
#define | USPI_PROTSTS_RXENDIF_Pos (4)
#define | USPI_PROTSTS_RXENDIF_Msk (0x1ul << USPI_PROTSTS_RXENDIF_Pos)
#define | USPI_PROTSTS_SLVTOIF_Pos (5)
#define | USPI_PROTSTS_SLVTOIF_Msk (0x1ul << USPI_PROTSTS_SLVTOIF_Pos)
#define | USPI_PROTSTS_SLVBEIF_Pos (6)
#define | USPI_PROTSTS_SLVBEIF_Msk (0x1ul << USPI_PROTSTS_SLVBEIF_Pos)
#define | USPI_PROTSTS_SSINAIF_Pos (8)
#define | USPI_PROTSTS_SSINAIF_Msk (0x1ul << USPI_PROTSTS_SSINAIF_Pos)
#define | USPI_PROTSTS_SSACTIF_Pos (9)
#define | USPI_PROTSTS_SSACTIF_Msk (0x1ul << USPI_PROTSTS_SSACTIF_Pos)
#define | USPI_PROTSTS_SSLINE_Pos (16)
#define | USPI_PROTSTS_SSLINE_Msk (0x1ul << USPI_PROTSTS_SSLINE_Pos)
#define | USPI_PROTSTS_BUSY_Pos (17)
#define | USPI_PROTSTS_BUSY_Msk (0x1ul << USPI_PROTSTS_BUSY_Pos)
#define | USPI_PROTSTS_SLVUDR_Pos (18)
#define | USPI_PROTSTS_SLVUDR_Msk (0x1ul << USPI_PROTSTS_SLVUDR_Pos)

## Detailed Description

USPI register definition header file.

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

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

Definition in file uspi_reg.h.