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

Data Structures
otg_reg.h File Reference

OTG register definition header file. More...

Go to the source code of this file.

## Data Structures
struct | OTG_T

## Macros
#define | OTG_CTL_VBUSDROP_Pos (0)
#define | OTG_CTL_VBUSDROP_Msk (0x1ul << OTG_CTL_VBUSDROP_Pos)
#define | OTG_CTL_BUSREQ_Pos (1)
#define | OTG_CTL_BUSREQ_Msk (0x1ul << OTG_CTL_BUSREQ_Pos)
#define | OTG_CTL_HNPREQEN_Pos (2)
#define | OTG_CTL_HNPREQEN_Msk (0x1ul << OTG_CTL_HNPREQEN_Pos)
#define | OTG_CTL_OTGEN_Pos (4)
#define | OTG_CTL_OTGEN_Msk (0x1ul << OTG_CTL_OTGEN_Pos)
#define | OTG_CTL_WKEN_Pos (5)
#define | OTG_CTL_WKEN_Msk (0x1ul << OTG_CTL_WKEN_Pos)
#define | OTG_PHYCTL_OTGPHYEN_Pos (0)
#define | OTG_PHYCTL_OTGPHYEN_Msk (0x1ul << OTG_PHYCTL_OTGPHYEN_Pos)
#define | OTG_PHYCTL_IDDETEN_Pos (1)
#define | OTG_PHYCTL_IDDETEN_Msk (0x1ul << OTG_PHYCTL_IDDETEN_Pos)
#define | OTG_PHYCTL_VBENPOL_Pos (4)
#define | OTG_PHYCTL_VBENPOL_Msk (0x1ul << OTG_PHYCTL_VBENPOL_Pos)
#define | OTG_PHYCTL_VBSTSPOL_Pos (5)
#define | OTG_PHYCTL_VBSTSPOL_Msk (0x1ul << OTG_PHYCTL_VBSTSPOL_Pos)
#define | OTG_INTEN_ROLECHGIEN_Pos (0)
#define | OTG_INTEN_ROLECHGIEN_Msk (0x1ul << OTG_INTEN_ROLECHGIEN_Pos)
#define | OTG_INTEN_VBEIEN_Pos (1)
#define | OTG_INTEN_VBEIEN_Msk (0x1ul << OTG_INTEN_VBEIEN_Pos)
#define | OTG_INTEN_SRPFIEN_Pos (2)
#define | OTG_INTEN_SRPFIEN_Msk (0x1ul << OTG_INTEN_SRPFIEN_Pos)
#define | OTG_INTEN_HNPFIEN_Pos (3)
#define | OTG_INTEN_HNPFIEN_Msk (0x1ul << OTG_INTEN_HNPFIEN_Pos)
#define | OTG_INTEN_GOIDLEIEN_Pos (4)
#define | OTG_INTEN_GOIDLEIEN_Msk (0x1ul << OTG_INTEN_GOIDLEIEN_Pos)
#define | OTG_INTEN_IDCHGIEN_Pos (5)
#define | OTG_INTEN_IDCHGIEN_Msk (0x1ul << OTG_INTEN_IDCHGIEN_Pos)
#define | OTG_INTEN_PDEVIEN_Pos (6)
#define | OTG_INTEN_PDEVIEN_Msk (0x1ul << OTG_INTEN_PDEVIEN_Pos)
#define | OTG_INTEN_HOSTIEN_Pos (7)
#define | OTG_INTEN_HOSTIEN_Msk (0x1ul << OTG_INTEN_HOSTIEN_Pos)
#define | OTG_INTEN_BVLDCHGIEN_Pos (8)
#define | OTG_INTEN_BVLDCHGIEN_Msk (0x1ul << OTG_INTEN_BVLDCHGIEN_Pos)
#define | OTG_INTEN_AVLDCHGIEN_Pos (9)
#define | OTG_INTEN_AVLDCHGIEN_Msk (0x1ul << OTG_INTEN_AVLDCHGIEN_Pos)
#define | OTG_INTEN_VBCHGIEN_Pos (10)
#define | OTG_INTEN_VBCHGIEN_Msk (0x1ul << OTG_INTEN_VBCHGIEN_Pos)
#define | OTG_INTEN_SECHGIEN_Pos (11)
#define | OTG_INTEN_SECHGIEN_Msk (0x1ul << OTG_INTEN_SECHGIEN_Pos)
#define | OTG_INTEN_SRPDETIEN_Pos (13)
#define | OTG_INTEN_SRPDETIEN_Msk (0x1ul << OTG_INTEN_SRPDETIEN_Pos)
#define | OTG_INTSTS_ROLECHGIF_Pos (0)
#define | OTG_INTSTS_ROLECHGIF_Msk (0x1ul << OTG_INTSTS_ROLECHGIF_Pos)
#define | OTG_INTSTS_VBEIF_Pos (1)
#define | OTG_INTSTS_VBEIF_Msk (0x1ul << OTG_INTSTS_VBEIF_Pos)
#define | OTG_INTSTS_SRPFIF_Pos (2)
#define | OTG_INTSTS_SRPFIF_Msk (0x1ul << OTG_INTSTS_SRPFIF_Pos)
#define | OTG_INTSTS_HNPFIF_Pos (3)
#define | OTG_INTSTS_HNPFIF_Msk (0x1ul << OTG_INTSTS_HNPFIF_Pos)
#define | OTG_INTSTS_GOIDLEIF_Pos (4)
#define | OTG_INTSTS_GOIDLEIF_Msk (0x1ul << OTG_INTSTS_GOIDLEIF_Pos)
#define | OTG_INTSTS_IDCHGIF_Pos (5)
#define | OTG_INTSTS_IDCHGIF_Msk (0x1ul << OTG_INTSTS_IDCHGIF_Pos)
#define | OTG_INTSTS_PDEVIF_Pos (6)
#define | OTG_INTSTS_PDEVIF_Msk (0x1ul << OTG_INTSTS_PDEVIF_Pos)
#define | OTG_INTSTS_HOSTIF_Pos (7)
#define | OTG_INTSTS_HOSTIF_Msk (0x1ul << OTG_INTSTS_HOSTIF_Pos)
#define | OTG_INTSTS_BVLDCHGIF_Pos (8)
#define | OTG_INTSTS_BVLDCHGIF_Msk (0x1ul << OTG_INTSTS_BVLDCHGIF_Pos)
#define | OTG_INTSTS_AVLDCHGIF_Pos (9)
#define | OTG_INTSTS_AVLDCHGIF_Msk (0x1ul << OTG_INTSTS_AVLDCHGIF_Pos)
#define | OTG_INTSTS_VBCHGIF_Pos (10)
#define | OTG_INTSTS_VBCHGIF_Msk (0x1ul << OTG_INTSTS_VBCHGIF_Pos)
#define | OTG_INTSTS_SECHGIF_Pos (11)
#define | OTG_INTSTS_SECHGIF_Msk (0x1ul << OTG_INTSTS_SECHGIF_Pos)
#define | OTG_INTSTS_SRPDETIF_Pos (13)
#define | OTG_INTSTS_SRPDETIF_Msk (0x1ul << OTG_INTSTS_SRPDETIF_Pos)
#define | OTG_STATUS_OVERCUR_Pos (0)
#define | OTG_STATUS_OVERCUR_Msk (0x1ul << OTG_STATUS_OVERCUR_Pos)
#define | OTG_STATUS_IDSTS_Pos (1)
#define | OTG_STATUS_IDSTS_Msk (0x1ul << OTG_STATUS_IDSTS_Pos)
#define | OTG_STATUS_SESSEND_Pos (2)
#define | OTG_STATUS_SESSEND_Msk (0x1ul << OTG_STATUS_SESSEND_Pos)
#define | OTG_STATUS_BVLD_Pos (3)
#define | OTG_STATUS_BVLD_Msk (0x1ul << OTG_STATUS_BVLD_Pos)
#define | OTG_STATUS_AVLD_Pos (4)
#define | OTG_STATUS_AVLD_Msk (0x1ul << OTG_STATUS_AVLD_Pos)
#define | OTG_STATUS_VBUSVLD_Pos (5)
#define | OTG_STATUS_VBUSVLD_Msk (0x1ul << OTG_STATUS_VBUSVLD_Pos)
#define | OTG_STATUS_ASPERI_Pos (6)
#define | OTG_STATUS_ASPERI_Msk (0x1ul << OTG_STATUS_ASPERI_Pos)
#define | OTG_STATUS_ASHOST_Pos (7)
#define | OTG_STATUS_ASHOST_Msk (0x1ul << OTG_STATUS_ASHOST_Pos)

## Detailed Description

OTG 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 otg_reg.h.