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

Macros
otg.h File Reference

M480 Series OTG Driver Header File. More...

Go to the source code of this file.

## Macros
#define | OTG_VBUS_EN_ACTIVE_HIGH
#define | OTG_VBUS_EN_ACTIVE_LOW
#define | OTG_VBUS_ST_VALID_HIGH
#define | OTG_VBUS_ST_VALID_LOW
#define | OTG_ENABLE()
| This macro is used to enable OTG function. More...
#define | OTG_DISABLE()
| This macro is used to disable OTG function. More...
#define | OTG_ENABLE_PHY()
| This macro is used to enable USB PHY. More...
#define | OTG_DISABLE_PHY()
| This macro is used to disable USB PHY. More...
#define | OTG_ENABLE_ID_DETECT()
| This macro is used to enable ID detection function. More...
#define | OTG_DISABLE_ID_DETECT()
| This macro is used to disable ID detection function. More...
#define | OTG_ENABLE_WAKEUP()
| This macro is used to enable OTG wake-up function. More...
#define | OTG_DISABLE_WAKEUP()
| This macro is used to disable OTG wake-up function. More...
#define | OTG_SET_VBUS_EN_POL(u32Pol)
| This macro is used to set the polarity of USB_VBUS_EN pin. More...
#define | OTG_SET_VBUS_STS_POL(u32Pol)
| This macro is used to set the polarity of USB_VBUS_ST pin. More...
#define | OTG_ENABLE_INT(u32Mask)
| This macro is used to enable OTG related interrupts. More...
#define | OTG_DISABLE_INT(u32Mask)
| This macro is used to disable OTG related interrupts. More...
#define | OTG_GET_INT_FLAG(u32Mask)
| This macro is used to get OTG related interrupt flags. More...
#define | OTG_CLR_INT_FLAG(u32Mask)
| This macro is used to clear OTG related interrupt flags. More...
#define | OTG_GET_STATUS(u32Mask)
| This macro is used to get OTG related status. More...

## Detailed Description

M480 Series OTG Driver Header File.

Version
  V0.10 SPDX-License-Identifier: Apache-2.0

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

Definition in file otg.h.