Lines Matching refs:OTG
61 #define OTG_ENABLE() (OTG->CTL |= OTG_CTL_OTGEN_Msk)
70 #define OTG_DISABLE() (OTG->CTL &= ~OTG_CTL_OTGEN_Msk)
80 #define OTG_ENABLE_PHY() (OTG->PHYCTL |= OTG_PHYCTL_OTGPHYEN_Msk)
89 #define OTG_DISABLE_PHY() (OTG->PHYCTL &= ~OTG_PHYCTL_OTGPHYEN_Msk)
98 #define OTG_ENABLE_ID_DETECT() (OTG->PHYCTL |= OTG_PHYCTL_IDDETEN_Msk)
107 #define OTG_DISABLE_ID_DETECT() (OTG->PHYCTL &= ~OTG_PHYCTL_IDDETEN_Msk)
116 #define OTG_ENABLE_WAKEUP() (OTG->CTL |= OTG_CTL_WKEN_Msk)
125 #define OTG_DISABLE_WAKEUP() (OTG->CTL &= ~OTG_CTL_WKEN_Msk)
136 #define OTG_SET_VBUS_EN_POL(u32Pol) (OTG->PHYCTL = (OTG->PHYCTL & (~OTG_PHYCTL_VBENPOL_Msk)) | ((u3…
147 #define OTG_SET_VBUS_STS_POL(u32Pol) (OTG->PHYCTL = (OTG->PHYCTL & (~OTG_PHYCTL_VBSTSPOL_Msk)) | ((…
169 #define OTG_ENABLE_INT(u32Mask) (OTG->INTEN |= (u32Mask))
191 #define OTG_DISABLE_INT(u32Mask) (OTG->INTEN &= ~(u32Mask))
213 #define OTG_GET_INT_FLAG(u32Mask) (OTG->INTSTS & (u32Mask))
235 #define OTG_CLR_INT_FLAG(u32Mask) (OTG->INTSTS = (u32Mask))
252 #define OTG_GET_STATUS(u32Mask) (OTG->STATUS & (u32Mask))