RTEMS 6.1-rc6
|
Macros | |
#define | USB_ENDPTCTRL_COUNT (7U) |
#define | USB_ENDPTCTRL_COUNT (7U) |
#define | USB_ENDPTCTRL_COUNT (7U) |
HWGENERAL - Hardware General | |
#define | USB_HWGENERAL_PHYW_MASK (0x30U) |
#define | USB_HWGENERAL_PHYW_SHIFT (4U) |
#define | USB_HWGENERAL_PHYW(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYW_SHIFT)) & USB_HWGENERAL_PHYW_MASK) |
#define | USB_HWGENERAL_PHYM_MASK (0x1C0U) |
#define | USB_HWGENERAL_PHYM_SHIFT (6U) |
#define | USB_HWGENERAL_PHYM(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYM_SHIFT)) & USB_HWGENERAL_PHYM_MASK) |
#define | USB_HWGENERAL_SM_MASK (0x600U) |
#define | USB_HWGENERAL_SM_SHIFT (9U) |
#define | USB_HWGENERAL_SM(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_SM_SHIFT)) & USB_HWGENERAL_SM_MASK) |
HWHOST - Host Hardware Parameters | |
#define | USB_HWHOST_HC_MASK (0x1U) |
#define | USB_HWHOST_HC_SHIFT (0U) |
#define | USB_HWHOST_HC(x) (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_HC_SHIFT)) & USB_HWHOST_HC_MASK) |
#define | USB_HWHOST_NPORT_MASK (0xEU) |
#define | USB_HWHOST_NPORT_SHIFT (1U) |
#define | USB_HWHOST_NPORT(x) (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_NPORT_SHIFT)) & USB_HWHOST_NPORT_MASK) |
HWDEVICE - Device Hardware Parameters | |
#define | USB_HWDEVICE_DC_MASK (0x1U) |
#define | USB_HWDEVICE_DC_SHIFT (0U) |
#define | USB_HWDEVICE_DC(x) (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DC_SHIFT)) & USB_HWDEVICE_DC_MASK) |
#define | USB_HWDEVICE_DEVEP_MASK (0x3EU) |
#define | USB_HWDEVICE_DEVEP_SHIFT (1U) |
#define | USB_HWDEVICE_DEVEP(x) (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DEVEP_SHIFT)) & USB_HWDEVICE_DEVEP_MASK) |
GPTIMER0CTRL - General Purpose Timer #0 Controller | |
#define | USB_GPTIMER0CTRL_GPTCNT_MASK (0xFFFFFFU) |
#define | USB_GPTIMER0CTRL_GPTCNT_SHIFT (0U) |
#define | USB_GPTIMER0CTRL_GPTCNT(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTCNT_SHIFT)) & USB_GPTIMER0CTRL_GPTCNT_MASK) |
#define | USB_GPTIMER0CTRL_GPTMODE_MASK (0x1000000U) |
#define | USB_GPTIMER0CTRL_GPTMODE_SHIFT (24U) |
#define | USB_GPTIMER0CTRL_GPTMODE(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTMODE_SHIFT)) & USB_GPTIMER0CTRL_GPTMODE_MASK) |
#define | USB_GPTIMER0CTRL_GPTRST_MASK (0x40000000U) |
#define | USB_GPTIMER0CTRL_GPTRST_SHIFT (30U) |
#define | USB_GPTIMER0CTRL_GPTRST(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRST_SHIFT)) & USB_GPTIMER0CTRL_GPTRST_MASK) |
#define | USB_GPTIMER0CTRL_GPTRUN_MASK (0x80000000U) |
#define | USB_GPTIMER0CTRL_GPTRUN_SHIFT (31U) |
#define | USB_GPTIMER0CTRL_GPTRUN(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRUN_SHIFT)) & USB_GPTIMER0CTRL_GPTRUN_MASK) |
GPTIMER1CTRL - General Purpose Timer #1 Controller | |
#define | USB_GPTIMER1CTRL_GPTCNT_MASK (0xFFFFFFU) |
#define | USB_GPTIMER1CTRL_GPTCNT_SHIFT (0U) |
#define | USB_GPTIMER1CTRL_GPTCNT(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTCNT_SHIFT)) & USB_GPTIMER1CTRL_GPTCNT_MASK) |
#define | USB_GPTIMER1CTRL_GPTMODE_MASK (0x1000000U) |
#define | USB_GPTIMER1CTRL_GPTMODE_SHIFT (24U) |
#define | USB_GPTIMER1CTRL_GPTMODE(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTMODE_SHIFT)) & USB_GPTIMER1CTRL_GPTMODE_MASK) |
#define | USB_GPTIMER1CTRL_GPTRST_MASK (0x40000000U) |
#define | USB_GPTIMER1CTRL_GPTRST_SHIFT (30U) |
#define | USB_GPTIMER1CTRL_GPTRST(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRST_SHIFT)) & USB_GPTIMER1CTRL_GPTRST_MASK) |
#define | USB_GPTIMER1CTRL_GPTRUN_MASK (0x80000000U) |
#define | USB_GPTIMER1CTRL_GPTRUN_SHIFT (31U) |
#define | USB_GPTIMER1CTRL_GPTRUN(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRUN_SHIFT)) & USB_GPTIMER1CTRL_GPTRUN_MASK) |
SBUSCFG - System Bus Config | |
#define | USB_SBUSCFG_AHBBRST_MASK (0x7U) |
#define | USB_SBUSCFG_AHBBRST_SHIFT (0U) |
#define | USB_SBUSCFG_AHBBRST(x) (((uint32_t)(((uint32_t)(x)) << USB_SBUSCFG_AHBBRST_SHIFT)) & USB_SBUSCFG_AHBBRST_MASK) |
HCSPARAMS - Host Controller Structural Parameters | |
#define | USB_HCSPARAMS_N_PORTS_MASK (0xFU) |
#define | USB_HCSPARAMS_N_PORTS_SHIFT (0U) |
#define | USB_HCSPARAMS_N_PORTS(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PORTS_SHIFT)) & USB_HCSPARAMS_N_PORTS_MASK) |
#define | USB_HCSPARAMS_PPC_MASK (0x10U) |
#define | USB_HCSPARAMS_PPC_SHIFT (4U) |
#define | USB_HCSPARAMS_PPC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PPC_SHIFT)) & USB_HCSPARAMS_PPC_MASK) |
#define | USB_HCSPARAMS_N_PCC_MASK (0xF00U) |
#define | USB_HCSPARAMS_N_PCC_SHIFT (8U) |
#define | USB_HCSPARAMS_N_PCC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PCC_SHIFT)) & USB_HCSPARAMS_N_PCC_MASK) |
#define | USB_HCSPARAMS_N_CC_MASK (0xF000U) |
#define | USB_HCSPARAMS_N_CC_SHIFT (12U) |
#define | USB_HCSPARAMS_N_CC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_CC_SHIFT)) & USB_HCSPARAMS_N_CC_MASK) |
#define | USB_HCSPARAMS_PI_MASK (0x10000U) |
#define | USB_HCSPARAMS_PI_SHIFT (16U) |
#define | USB_HCSPARAMS_PI(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PI_SHIFT)) & USB_HCSPARAMS_PI_MASK) |
#define | USB_HCSPARAMS_N_PTT_MASK (0xF00000U) |
#define | USB_HCSPARAMS_N_PTT_SHIFT (20U) |
#define | USB_HCSPARAMS_N_PTT(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PTT_SHIFT)) & USB_HCSPARAMS_N_PTT_MASK) |
#define | USB_HCSPARAMS_N_TT_MASK (0xF000000U) |
#define | USB_HCSPARAMS_N_TT_SHIFT (24U) |
#define | USB_HCSPARAMS_N_TT(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_TT_SHIFT)) & USB_HCSPARAMS_N_TT_MASK) |
USBCMD - USB Command Register | |
#define | USB_USBCMD_RS_MASK (0x1U) |
#define | USB_USBCMD_RS_SHIFT (0U) |
#define | USB_USBCMD_RS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RS_SHIFT)) & USB_USBCMD_RS_MASK) |
#define | USB_USBCMD_RST_MASK (0x2U) |
#define | USB_USBCMD_RST_SHIFT (1U) |
#define | USB_USBCMD_RST(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RST_SHIFT)) & USB_USBCMD_RST_MASK) |
#define | USB_USBCMD_FS_1_MASK (0xCU) |
#define | USB_USBCMD_FS_1_SHIFT (2U) |
#define | USB_USBCMD_FS_1(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_1_SHIFT)) & USB_USBCMD_FS_1_MASK) |
#define | USB_USBCMD_PSE_MASK (0x10U) |
#define | USB_USBCMD_PSE_SHIFT (4U) |
#define | USB_USBCMD_PSE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_PSE_SHIFT)) & USB_USBCMD_PSE_MASK) |
#define | USB_USBCMD_ASE_MASK (0x20U) |
#define | USB_USBCMD_ASE_SHIFT (5U) |
#define | USB_USBCMD_ASE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASE_SHIFT)) & USB_USBCMD_ASE_MASK) |
#define | USB_USBCMD_IAA_MASK (0x40U) |
#define | USB_USBCMD_IAA_SHIFT (6U) |
#define | USB_USBCMD_IAA(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_IAA_SHIFT)) & USB_USBCMD_IAA_MASK) |
#define | USB_USBCMD_ASP_MASK (0x300U) |
#define | USB_USBCMD_ASP_SHIFT (8U) |
#define | USB_USBCMD_ASP(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASP_SHIFT)) & USB_USBCMD_ASP_MASK) |
#define | USB_USBCMD_ASPE_MASK (0x800U) |
#define | USB_USBCMD_ASPE_SHIFT (11U) |
#define | USB_USBCMD_ASPE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASPE_SHIFT)) & USB_USBCMD_ASPE_MASK) |
#define | USB_USBCMD_SUTW_MASK (0x2000U) |
#define | USB_USBCMD_SUTW_SHIFT (13U) |
#define | USB_USBCMD_SUTW(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_SUTW_SHIFT)) & USB_USBCMD_SUTW_MASK) |
#define | USB_USBCMD_ATDTW_MASK (0x4000U) |
#define | USB_USBCMD_ATDTW_SHIFT (14U) |
#define | USB_USBCMD_ATDTW(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ATDTW_SHIFT)) & USB_USBCMD_ATDTW_MASK) |
#define | USB_USBCMD_FS_2_MASK (0x8000U) |
#define | USB_USBCMD_FS_2_SHIFT (15U) |
#define | USB_USBCMD_FS_2(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_2_SHIFT)) & USB_USBCMD_FS_2_MASK) |
#define | USB_USBCMD_ITC_MASK (0xFF0000U) |
#define | USB_USBCMD_ITC_SHIFT (16U) |
#define | USB_USBCMD_ITC(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ITC_SHIFT)) & USB_USBCMD_ITC_MASK) |
FRINDEX - USB Frame Index | |
#define | USB_FRINDEX_FRINDEX_MASK (0x3FFFU) |
#define | USB_FRINDEX_FRINDEX_SHIFT (0U) |
#define | USB_FRINDEX_FRINDEX(x) (((uint32_t)(((uint32_t)(x)) << USB_FRINDEX_FRINDEX_SHIFT)) & USB_FRINDEX_FRINDEX_MASK) |
CONFIGFLAG - Configure Flag Register | |
#define | USB_CONFIGFLAG_CF_MASK (0x1U) |
#define | USB_CONFIGFLAG_CF_SHIFT (0U) |
#define | USB_CONFIGFLAG_CF(x) (((uint32_t)(((uint32_t)(x)) << USB_CONFIGFLAG_CF_SHIFT)) & USB_CONFIGFLAG_CF_MASK) |
PORTSC1 - Port Status & Control | |
#define | USB_PORTSC1_CCS_MASK (0x1U) |
#define | USB_PORTSC1_CCS_SHIFT (0U) |
#define | USB_PORTSC1_CCS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CCS_SHIFT)) & USB_PORTSC1_CCS_MASK) |
#define | USB_PORTSC1_CSC_MASK (0x2U) |
#define | USB_PORTSC1_CSC_SHIFT (1U) |
#define | USB_PORTSC1_CSC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CSC_SHIFT)) & USB_PORTSC1_CSC_MASK) |
#define | USB_PORTSC1_PE_MASK (0x4U) |
#define | USB_PORTSC1_PE_SHIFT (2U) |
#define | USB_PORTSC1_PE(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PE_SHIFT)) & USB_PORTSC1_PE_MASK) |
#define | USB_PORTSC1_PEC_MASK (0x8U) |
#define | USB_PORTSC1_PEC_SHIFT (3U) |
#define | USB_PORTSC1_PEC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PEC_SHIFT)) & USB_PORTSC1_PEC_MASK) |
#define | USB_PORTSC1_OCA_MASK (0x10U) |
#define | USB_PORTSC1_OCA_SHIFT (4U) |
#define | USB_PORTSC1_OCA(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCA_SHIFT)) & USB_PORTSC1_OCA_MASK) |
#define | USB_PORTSC1_OCC_MASK (0x20U) |
#define | USB_PORTSC1_OCC_SHIFT (5U) |
#define | USB_PORTSC1_OCC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCC_SHIFT)) & USB_PORTSC1_OCC_MASK) |
#define | USB_PORTSC1_FPR_MASK (0x40U) |
#define | USB_PORTSC1_FPR_SHIFT (6U) |
#define | USB_PORTSC1_FPR(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_FPR_SHIFT)) & USB_PORTSC1_FPR_MASK) |
#define | USB_PORTSC1_SUSP_MASK (0x80U) |
#define | USB_PORTSC1_SUSP_SHIFT (7U) |
#define | USB_PORTSC1_SUSP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_SUSP_SHIFT)) & USB_PORTSC1_SUSP_MASK) |
#define | USB_PORTSC1_PR_MASK (0x100U) |
#define | USB_PORTSC1_PR_SHIFT (8U) |
#define | USB_PORTSC1_PR(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PR_SHIFT)) & USB_PORTSC1_PR_MASK) |
#define | USB_PORTSC1_HSP_MASK (0x200U) |
#define | USB_PORTSC1_HSP_SHIFT (9U) |
#define | USB_PORTSC1_HSP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_HSP_SHIFT)) & USB_PORTSC1_HSP_MASK) |
#define | USB_PORTSC1_LS_MASK (0xC00U) |
#define | USB_PORTSC1_LS_SHIFT (10U) |
#define | USB_PORTSC1_LS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_LS_SHIFT)) & USB_PORTSC1_LS_MASK) |
#define | USB_PORTSC1_PP_MASK (0x1000U) |
#define | USB_PORTSC1_PP_SHIFT (12U) |
#define | USB_PORTSC1_PP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PP_SHIFT)) & USB_PORTSC1_PP_MASK) |
#define | USB_PORTSC1_PO_MASK (0x2000U) |
#define | USB_PORTSC1_PO_SHIFT (13U) |
#define | USB_PORTSC1_PO(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PO_SHIFT)) & USB_PORTSC1_PO_MASK) |
#define | USB_PORTSC1_PIC_MASK (0xC000U) |
#define | USB_PORTSC1_PIC_SHIFT (14U) |
#define | USB_PORTSC1_PIC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PIC_SHIFT)) & USB_PORTSC1_PIC_MASK) |
#define | USB_PORTSC1_PTC_MASK (0xF0000U) |
#define | USB_PORTSC1_PTC_SHIFT (16U) |
#define | USB_PORTSC1_PTC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTC_SHIFT)) & USB_PORTSC1_PTC_MASK) |
#define | USB_PORTSC1_WKCN_MASK (0x100000U) |
#define | USB_PORTSC1_WKCN_SHIFT (20U) |
#define | USB_PORTSC1_WKCN(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKCN_SHIFT)) & USB_PORTSC1_WKCN_MASK) |
#define | USB_PORTSC1_WKDC_MASK (0x200000U) |
#define | USB_PORTSC1_WKDC_SHIFT (21U) |
#define | USB_PORTSC1_WKDC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKDC_SHIFT)) & USB_PORTSC1_WKDC_MASK) |
#define | USB_PORTSC1_WKOC_MASK (0x400000U) |
#define | USB_PORTSC1_WKOC_SHIFT (22U) |
#define | USB_PORTSC1_WKOC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKOC_SHIFT)) & USB_PORTSC1_WKOC_MASK) |
#define | USB_PORTSC1_PHCD_MASK (0x800000U) |
#define | USB_PORTSC1_PHCD_SHIFT (23U) |
#define | USB_PORTSC1_PHCD(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PHCD_SHIFT)) & USB_PORTSC1_PHCD_MASK) |
#define | USB_PORTSC1_PFSC_MASK (0x1000000U) |
#define | USB_PORTSC1_PFSC_SHIFT (24U) |
#define | USB_PORTSC1_PFSC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PFSC_SHIFT)) & USB_PORTSC1_PFSC_MASK) |
#define | USB_PORTSC1_PTS_2_MASK (0x2000000U) |
#define | USB_PORTSC1_PTS_2_SHIFT (25U) |
#define | USB_PORTSC1_PTS_2(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_2_SHIFT)) & USB_PORTSC1_PTS_2_MASK) |
#define | USB_PORTSC1_PSPD_MASK (0xC000000U) |
#define | USB_PORTSC1_PSPD_SHIFT (26U) |
#define | USB_PORTSC1_PSPD(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PSPD_SHIFT)) & USB_PORTSC1_PSPD_MASK) |
#define | USB_PORTSC1_PTW_MASK (0x10000000U) |
#define | USB_PORTSC1_PTW_SHIFT (28U) |
#define | USB_PORTSC1_PTW(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTW_SHIFT)) & USB_PORTSC1_PTW_MASK) |
#define | USB_PORTSC1_STS_MASK (0x20000000U) |
#define | USB_PORTSC1_STS_SHIFT (29U) |
#define | USB_PORTSC1_STS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_STS_SHIFT)) & USB_PORTSC1_STS_MASK) |
#define | USB_PORTSC1_PTS_1_MASK (0xC0000000U) |
#define | USB_PORTSC1_PTS_1_SHIFT (30U) |
#define | USB_PORTSC1_PTS_1(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_1_SHIFT)) & USB_PORTSC1_PTS_1_MASK) |
USBMODE - USB Device Mode | |
#define | USB_USBMODE_CM_MASK (0x3U) |
#define | USB_USBMODE_CM_SHIFT (0U) |
#define | USB_USBMODE_CM(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_CM_SHIFT)) & USB_USBMODE_CM_MASK) |
#define | USB_USBMODE_ES_MASK (0x4U) |
#define | USB_USBMODE_ES_SHIFT (2U) |
#define | USB_USBMODE_ES(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_ES_SHIFT)) & USB_USBMODE_ES_MASK) |
#define | USB_USBMODE_SLOM_MASK (0x8U) |
#define | USB_USBMODE_SLOM_SHIFT (3U) |
#define | USB_USBMODE_SLOM(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SLOM_SHIFT)) & USB_USBMODE_SLOM_MASK) |
#define | USB_USBMODE_SDIS_MASK (0x10U) |
#define | USB_USBMODE_SDIS_SHIFT (4U) |
#define | USB_USBMODE_SDIS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SDIS_SHIFT)) & USB_USBMODE_SDIS_MASK) |
ID - Identification register | |
#define | USB_ID_ID_MASK (0x3FU) |
#define | USB_ID_ID_SHIFT (0U) |
#define | USB_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << USB_ID_ID_SHIFT)) & USB_ID_ID_MASK) |
#define | USB_ID_NID_MASK (0x3F00U) |
#define | USB_ID_NID_SHIFT (8U) |
#define | USB_ID_NID(x) (((uint32_t)(((uint32_t)(x)) << USB_ID_NID_SHIFT)) & USB_ID_NID_MASK) |
#define | USB_ID_REVISION_MASK (0xFF0000U) |
#define | USB_ID_REVISION_SHIFT (16U) |
#define | USB_ID_REVISION(x) (((uint32_t)(((uint32_t)(x)) << USB_ID_REVISION_SHIFT)) & USB_ID_REVISION_MASK) |
HWGENERAL - Hardware General | |
#define | USB_HWGENERAL_PHYW_MASK (0x30U) |
#define | USB_HWGENERAL_PHYW_SHIFT (4U) |
#define | USB_HWGENERAL_PHYW(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYW_SHIFT)) & USB_HWGENERAL_PHYW_MASK) |
#define | USB_HWGENERAL_PHYM_MASK (0x1C0U) |
#define | USB_HWGENERAL_PHYM_SHIFT (6U) |
#define | USB_HWGENERAL_PHYM(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYM_SHIFT)) & USB_HWGENERAL_PHYM_MASK) |
#define | USB_HWGENERAL_SM_MASK (0x600U) |
#define | USB_HWGENERAL_SM_SHIFT (9U) |
#define | USB_HWGENERAL_SM(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_SM_SHIFT)) & USB_HWGENERAL_SM_MASK) |
HWHOST - Host Hardware Parameters | |
#define | USB_HWHOST_HC_MASK (0x1U) |
#define | USB_HWHOST_HC_SHIFT (0U) |
#define | USB_HWHOST_HC(x) (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_HC_SHIFT)) & USB_HWHOST_HC_MASK) |
#define | USB_HWHOST_NPORT_MASK (0xEU) |
#define | USB_HWHOST_NPORT_SHIFT (1U) |
#define | USB_HWHOST_NPORT(x) (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_NPORT_SHIFT)) & USB_HWHOST_NPORT_MASK) |
HWDEVICE - Device Hardware Parameters | |
#define | USB_HWDEVICE_DC_MASK (0x1U) |
#define | USB_HWDEVICE_DC_SHIFT (0U) |
#define | USB_HWDEVICE_DC(x) (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DC_SHIFT)) & USB_HWDEVICE_DC_MASK) |
#define | USB_HWDEVICE_DEVEP_MASK (0x3EU) |
#define | USB_HWDEVICE_DEVEP_SHIFT (1U) |
#define | USB_HWDEVICE_DEVEP(x) (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DEVEP_SHIFT)) & USB_HWDEVICE_DEVEP_MASK) |
HWTXBUF - TX Buffer Hardware Parameters | |
#define | USB_HWTXBUF_TXBURST_MASK (0xFFU) |
#define | USB_HWTXBUF_TXBURST_SHIFT (0U) |
#define | USB_HWTXBUF_TXBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXBURST_SHIFT)) & USB_HWTXBUF_TXBURST_MASK) |
#define | USB_HWTXBUF_TXCHANADD_MASK (0xFF0000U) |
#define | USB_HWTXBUF_TXCHANADD_SHIFT (16U) |
#define | USB_HWTXBUF_TXCHANADD(x) (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXCHANADD_SHIFT)) & USB_HWTXBUF_TXCHANADD_MASK) |
HWRXBUF - RX Buffer Hardware Parameters | |
#define | USB_HWRXBUF_RXBURST_MASK (0xFFU) |
#define | USB_HWRXBUF_RXBURST_SHIFT (0U) |
#define | USB_HWRXBUF_RXBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXBURST_SHIFT)) & USB_HWRXBUF_RXBURST_MASK) |
#define | USB_HWRXBUF_RXADD_MASK (0xFF00U) |
#define | USB_HWRXBUF_RXADD_SHIFT (8U) |
#define | USB_HWRXBUF_RXADD(x) (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXADD_SHIFT)) & USB_HWRXBUF_RXADD_MASK) |
GPTIMER0LD - General Purpose Timer #0 Load | |
#define | USB_GPTIMER0LD_GPTLD_MASK (0xFFFFFFU) |
#define | USB_GPTIMER0LD_GPTLD_SHIFT (0U) |
#define | USB_GPTIMER0LD_GPTLD(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0LD_GPTLD_SHIFT)) & USB_GPTIMER0LD_GPTLD_MASK) |
GPTIMER0CTRL - General Purpose Timer #0 Controller | |
#define | USB_GPTIMER0CTRL_GPTCNT_MASK (0xFFFFFFU) |
#define | USB_GPTIMER0CTRL_GPTCNT_SHIFT (0U) |
#define | USB_GPTIMER0CTRL_GPTCNT(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTCNT_SHIFT)) & USB_GPTIMER0CTRL_GPTCNT_MASK) |
#define | USB_GPTIMER0CTRL_GPTMODE_MASK (0x1000000U) |
#define | USB_GPTIMER0CTRL_GPTMODE_SHIFT (24U) |
#define | USB_GPTIMER0CTRL_GPTMODE(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTMODE_SHIFT)) & USB_GPTIMER0CTRL_GPTMODE_MASK) |
#define | USB_GPTIMER0CTRL_GPTRST_MASK (0x40000000U) |
#define | USB_GPTIMER0CTRL_GPTRST_SHIFT (30U) |
#define | USB_GPTIMER0CTRL_GPTRST(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRST_SHIFT)) & USB_GPTIMER0CTRL_GPTRST_MASK) |
#define | USB_GPTIMER0CTRL_GPTRUN_MASK (0x80000000U) |
#define | USB_GPTIMER0CTRL_GPTRUN_SHIFT (31U) |
#define | USB_GPTIMER0CTRL_GPTRUN(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRUN_SHIFT)) & USB_GPTIMER0CTRL_GPTRUN_MASK) |
GPTIMER1LD - General Purpose Timer #1 Load | |
#define | USB_GPTIMER1LD_GPTLD_MASK (0xFFFFFFU) |
#define | USB_GPTIMER1LD_GPTLD_SHIFT (0U) |
#define | USB_GPTIMER1LD_GPTLD(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1LD_GPTLD_SHIFT)) & USB_GPTIMER1LD_GPTLD_MASK) |
GPTIMER1CTRL - General Purpose Timer #1 Controller | |
#define | USB_GPTIMER1CTRL_GPTCNT_MASK (0xFFFFFFU) |
#define | USB_GPTIMER1CTRL_GPTCNT_SHIFT (0U) |
#define | USB_GPTIMER1CTRL_GPTCNT(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTCNT_SHIFT)) & USB_GPTIMER1CTRL_GPTCNT_MASK) |
#define | USB_GPTIMER1CTRL_GPTMODE_MASK (0x1000000U) |
#define | USB_GPTIMER1CTRL_GPTMODE_SHIFT (24U) |
#define | USB_GPTIMER1CTRL_GPTMODE(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTMODE_SHIFT)) & USB_GPTIMER1CTRL_GPTMODE_MASK) |
#define | USB_GPTIMER1CTRL_GPTRST_MASK (0x40000000U) |
#define | USB_GPTIMER1CTRL_GPTRST_SHIFT (30U) |
#define | USB_GPTIMER1CTRL_GPTRST(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRST_SHIFT)) & USB_GPTIMER1CTRL_GPTRST_MASK) |
#define | USB_GPTIMER1CTRL_GPTRUN_MASK (0x80000000U) |
#define | USB_GPTIMER1CTRL_GPTRUN_SHIFT (31U) |
#define | USB_GPTIMER1CTRL_GPTRUN(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRUN_SHIFT)) & USB_GPTIMER1CTRL_GPTRUN_MASK) |
SBUSCFG - System Bus Config | |
#define | USB_SBUSCFG_AHBBRST_MASK (0x7U) |
#define | USB_SBUSCFG_AHBBRST_SHIFT (0U) |
#define | USB_SBUSCFG_AHBBRST(x) (((uint32_t)(((uint32_t)(x)) << USB_SBUSCFG_AHBBRST_SHIFT)) & USB_SBUSCFG_AHBBRST_MASK) |
CAPLENGTH - Capability Registers Length | |
#define | USB_CAPLENGTH_CAPLENGTH_MASK (0xFFU) |
#define | USB_CAPLENGTH_CAPLENGTH_SHIFT (0U) |
#define | USB_CAPLENGTH_CAPLENGTH(x) (((uint8_t)(((uint8_t)(x)) << USB_CAPLENGTH_CAPLENGTH_SHIFT)) & USB_CAPLENGTH_CAPLENGTH_MASK) |
HCIVERSION - Host Controller Interface Version | |
#define | USB_HCIVERSION_HCIVERSION_MASK (0xFFFFU) |
#define | USB_HCIVERSION_HCIVERSION_SHIFT (0U) |
#define | USB_HCIVERSION_HCIVERSION(x) (((uint16_t)(((uint16_t)(x)) << USB_HCIVERSION_HCIVERSION_SHIFT)) & USB_HCIVERSION_HCIVERSION_MASK) |
HCSPARAMS - Host Controller Structural Parameters | |
#define | USB_HCSPARAMS_N_PORTS_MASK (0xFU) |
#define | USB_HCSPARAMS_N_PORTS_SHIFT (0U) |
#define | USB_HCSPARAMS_N_PORTS(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PORTS_SHIFT)) & USB_HCSPARAMS_N_PORTS_MASK) |
#define | USB_HCSPARAMS_PPC_MASK (0x10U) |
#define | USB_HCSPARAMS_PPC_SHIFT (4U) |
#define | USB_HCSPARAMS_PPC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PPC_SHIFT)) & USB_HCSPARAMS_PPC_MASK) |
#define | USB_HCSPARAMS_N_PCC_MASK (0xF00U) |
#define | USB_HCSPARAMS_N_PCC_SHIFT (8U) |
#define | USB_HCSPARAMS_N_PCC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PCC_SHIFT)) & USB_HCSPARAMS_N_PCC_MASK) |
#define | USB_HCSPARAMS_N_CC_MASK (0xF000U) |
#define | USB_HCSPARAMS_N_CC_SHIFT (12U) |
#define | USB_HCSPARAMS_N_CC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_CC_SHIFT)) & USB_HCSPARAMS_N_CC_MASK) |
#define | USB_HCSPARAMS_PI_MASK (0x10000U) |
#define | USB_HCSPARAMS_PI_SHIFT (16U) |
#define | USB_HCSPARAMS_PI(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PI_SHIFT)) & USB_HCSPARAMS_PI_MASK) |
#define | USB_HCSPARAMS_N_PTT_MASK (0xF00000U) |
#define | USB_HCSPARAMS_N_PTT_SHIFT (20U) |
#define | USB_HCSPARAMS_N_PTT(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PTT_SHIFT)) & USB_HCSPARAMS_N_PTT_MASK) |
#define | USB_HCSPARAMS_N_TT_MASK (0xF000000U) |
#define | USB_HCSPARAMS_N_TT_SHIFT (24U) |
#define | USB_HCSPARAMS_N_TT(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_TT_SHIFT)) & USB_HCSPARAMS_N_TT_MASK) |
HCCPARAMS - Host Controller Capability Parameters | |
#define | USB_HCCPARAMS_ADC_MASK (0x1U) |
#define | USB_HCCPARAMS_ADC_SHIFT (0U) |
#define | USB_HCCPARAMS_ADC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ADC_SHIFT)) & USB_HCCPARAMS_ADC_MASK) |
#define | USB_HCCPARAMS_PFL_MASK (0x2U) |
#define | USB_HCCPARAMS_PFL_SHIFT (1U) |
#define | USB_HCCPARAMS_PFL(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_PFL_SHIFT)) & USB_HCCPARAMS_PFL_MASK) |
#define | USB_HCCPARAMS_ASP_MASK (0x4U) |
#define | USB_HCCPARAMS_ASP_SHIFT (2U) |
#define | USB_HCCPARAMS_ASP(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ASP_SHIFT)) & USB_HCCPARAMS_ASP_MASK) |
#define | USB_HCCPARAMS_IST_MASK (0xF0U) |
#define | USB_HCCPARAMS_IST_SHIFT (4U) |
#define | USB_HCCPARAMS_IST(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_IST_SHIFT)) & USB_HCCPARAMS_IST_MASK) |
#define | USB_HCCPARAMS_EECP_MASK (0xFF00U) |
#define | USB_HCCPARAMS_EECP_SHIFT (8U) |
#define | USB_HCCPARAMS_EECP(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_EECP_SHIFT)) & USB_HCCPARAMS_EECP_MASK) |
DCIVERSION - Device Controller Interface Version | |
#define | USB_DCIVERSION_DCIVERSION_MASK (0xFFFFU) |
#define | USB_DCIVERSION_DCIVERSION_SHIFT (0U) |
#define | USB_DCIVERSION_DCIVERSION(x) (((uint16_t)(((uint16_t)(x)) << USB_DCIVERSION_DCIVERSION_SHIFT)) & USB_DCIVERSION_DCIVERSION_MASK) |
DCCPARAMS - Device Controller Capability Parameters | |
#define | USB_DCCPARAMS_DEN_MASK (0x1FU) |
#define | USB_DCCPARAMS_DEN_SHIFT (0U) |
#define | USB_DCCPARAMS_DEN(x) (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DEN_SHIFT)) & USB_DCCPARAMS_DEN_MASK) |
#define | USB_DCCPARAMS_DC_MASK (0x80U) |
#define | USB_DCCPARAMS_DC_SHIFT (7U) |
#define | USB_DCCPARAMS_DC(x) (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DC_SHIFT)) & USB_DCCPARAMS_DC_MASK) |
#define | USB_DCCPARAMS_HC_MASK (0x100U) |
#define | USB_DCCPARAMS_HC_SHIFT (8U) |
#define | USB_DCCPARAMS_HC(x) (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_HC_SHIFT)) & USB_DCCPARAMS_HC_MASK) |
USBCMD - USB Command Register | |
#define | USB_USBCMD_RS_MASK (0x1U) |
#define | USB_USBCMD_RS_SHIFT (0U) |
#define | USB_USBCMD_RS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RS_SHIFT)) & USB_USBCMD_RS_MASK) |
#define | USB_USBCMD_RST_MASK (0x2U) |
#define | USB_USBCMD_RST_SHIFT (1U) |
#define | USB_USBCMD_RST(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RST_SHIFT)) & USB_USBCMD_RST_MASK) |
#define | USB_USBCMD_FS_1_MASK (0xCU) |
#define | USB_USBCMD_FS_1_SHIFT (2U) |
#define | USB_USBCMD_FS_1(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_1_SHIFT)) & USB_USBCMD_FS_1_MASK) |
#define | USB_USBCMD_PSE_MASK (0x10U) |
#define | USB_USBCMD_PSE_SHIFT (4U) |
#define | USB_USBCMD_PSE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_PSE_SHIFT)) & USB_USBCMD_PSE_MASK) |
#define | USB_USBCMD_ASE_MASK (0x20U) |
#define | USB_USBCMD_ASE_SHIFT (5U) |
#define | USB_USBCMD_ASE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASE_SHIFT)) & USB_USBCMD_ASE_MASK) |
#define | USB_USBCMD_IAA_MASK (0x40U) |
#define | USB_USBCMD_IAA_SHIFT (6U) |
#define | USB_USBCMD_IAA(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_IAA_SHIFT)) & USB_USBCMD_IAA_MASK) |
#define | USB_USBCMD_ASP_MASK (0x300U) |
#define | USB_USBCMD_ASP_SHIFT (8U) |
#define | USB_USBCMD_ASP(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASP_SHIFT)) & USB_USBCMD_ASP_MASK) |
#define | USB_USBCMD_ASPE_MASK (0x800U) |
#define | USB_USBCMD_ASPE_SHIFT (11U) |
#define | USB_USBCMD_ASPE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASPE_SHIFT)) & USB_USBCMD_ASPE_MASK) |
#define | USB_USBCMD_SUTW_MASK (0x2000U) |
#define | USB_USBCMD_SUTW_SHIFT (13U) |
#define | USB_USBCMD_SUTW(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_SUTW_SHIFT)) & USB_USBCMD_SUTW_MASK) |
#define | USB_USBCMD_ATDTW_MASK (0x4000U) |
#define | USB_USBCMD_ATDTW_SHIFT (14U) |
#define | USB_USBCMD_ATDTW(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ATDTW_SHIFT)) & USB_USBCMD_ATDTW_MASK) |
#define | USB_USBCMD_FS_2_MASK (0x8000U) |
#define | USB_USBCMD_FS_2_SHIFT (15U) |
#define | USB_USBCMD_FS_2(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_2_SHIFT)) & USB_USBCMD_FS_2_MASK) |
#define | USB_USBCMD_ITC_MASK (0xFF0000U) |
#define | USB_USBCMD_ITC_SHIFT (16U) |
#define | USB_USBCMD_ITC(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ITC_SHIFT)) & USB_USBCMD_ITC_MASK) |
USBSTS - USB Status Register | |
#define | USB_USBSTS_UI_MASK (0x1U) |
#define | USB_USBSTS_UI_SHIFT (0U) |
#define | USB_USBSTS_UI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UI_SHIFT)) & USB_USBSTS_UI_MASK) |
#define | USB_USBSTS_UEI_MASK (0x2U) |
#define | USB_USBSTS_UEI_SHIFT (1U) |
#define | USB_USBSTS_UEI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UEI_SHIFT)) & USB_USBSTS_UEI_MASK) |
#define | USB_USBSTS_PCI_MASK (0x4U) |
#define | USB_USBSTS_PCI_SHIFT (2U) |
#define | USB_USBSTS_PCI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PCI_SHIFT)) & USB_USBSTS_PCI_MASK) |
#define | USB_USBSTS_FRI_MASK (0x8U) |
#define | USB_USBSTS_FRI_SHIFT (3U) |
#define | USB_USBSTS_FRI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_FRI_SHIFT)) & USB_USBSTS_FRI_MASK) |
#define | USB_USBSTS_SEI_MASK (0x10U) |
#define | USB_USBSTS_SEI_SHIFT (4U) |
#define | USB_USBSTS_SEI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SEI_SHIFT)) & USB_USBSTS_SEI_MASK) |
#define | USB_USBSTS_AAI_MASK (0x20U) |
#define | USB_USBSTS_AAI_SHIFT (5U) |
#define | USB_USBSTS_AAI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AAI_SHIFT)) & USB_USBSTS_AAI_MASK) |
#define | USB_USBSTS_URI_MASK (0x40U) |
#define | USB_USBSTS_URI_SHIFT (6U) |
#define | USB_USBSTS_URI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_URI_SHIFT)) & USB_USBSTS_URI_MASK) |
#define | USB_USBSTS_SRI_MASK (0x80U) |
#define | USB_USBSTS_SRI_SHIFT (7U) |
#define | USB_USBSTS_SRI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SRI_SHIFT)) & USB_USBSTS_SRI_MASK) |
#define | USB_USBSTS_SLI_MASK (0x100U) |
#define | USB_USBSTS_SLI_SHIFT (8U) |
#define | USB_USBSTS_SLI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SLI_SHIFT)) & USB_USBSTS_SLI_MASK) |
#define | USB_USBSTS_ULPII_MASK (0x400U) |
#define | USB_USBSTS_ULPII_SHIFT (10U) |
#define | USB_USBSTS_ULPII(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_ULPII_SHIFT)) & USB_USBSTS_ULPII_MASK) |
#define | USB_USBSTS_HCH_MASK (0x1000U) |
#define | USB_USBSTS_HCH_SHIFT (12U) |
#define | USB_USBSTS_HCH(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_HCH_SHIFT)) & USB_USBSTS_HCH_MASK) |
#define | USB_USBSTS_RCL_MASK (0x2000U) |
#define | USB_USBSTS_RCL_SHIFT (13U) |
#define | USB_USBSTS_RCL(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_RCL_SHIFT)) & USB_USBSTS_RCL_MASK) |
#define | USB_USBSTS_PS_MASK (0x4000U) |
#define | USB_USBSTS_PS_SHIFT (14U) |
#define | USB_USBSTS_PS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PS_SHIFT)) & USB_USBSTS_PS_MASK) |
#define | USB_USBSTS_AS_MASK (0x8000U) |
#define | USB_USBSTS_AS_SHIFT (15U) |
#define | USB_USBSTS_AS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AS_SHIFT)) & USB_USBSTS_AS_MASK) |
#define | USB_USBSTS_NAKI_MASK (0x10000U) |
#define | USB_USBSTS_NAKI_SHIFT (16U) |
#define | USB_USBSTS_NAKI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_NAKI_SHIFT)) & USB_USBSTS_NAKI_MASK) |
#define | USB_USBSTS_TI0_MASK (0x1000000U) |
#define | USB_USBSTS_TI0_SHIFT (24U) |
#define | USB_USBSTS_TI0(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI0_SHIFT)) & USB_USBSTS_TI0_MASK) |
#define | USB_USBSTS_TI1_MASK (0x2000000U) |
#define | USB_USBSTS_TI1_SHIFT (25U) |
#define | USB_USBSTS_TI1(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI1_SHIFT)) & USB_USBSTS_TI1_MASK) |
USBINTR - Interrupt Enable Register | |
#define | USB_USBINTR_UE_MASK (0x1U) |
#define | USB_USBINTR_UE_SHIFT (0U) |
#define | USB_USBINTR_UE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UE_SHIFT)) & USB_USBINTR_UE_MASK) |
#define | USB_USBINTR_UEE_MASK (0x2U) |
#define | USB_USBINTR_UEE_SHIFT (1U) |
#define | USB_USBINTR_UEE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UEE_SHIFT)) & USB_USBINTR_UEE_MASK) |
#define | USB_USBINTR_PCE_MASK (0x4U) |
#define | USB_USBINTR_PCE_SHIFT (2U) |
#define | USB_USBINTR_PCE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_PCE_SHIFT)) & USB_USBINTR_PCE_MASK) |
#define | USB_USBINTR_FRE_MASK (0x8U) |
#define | USB_USBINTR_FRE_SHIFT (3U) |
#define | USB_USBINTR_FRE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_FRE_SHIFT)) & USB_USBINTR_FRE_MASK) |
#define | USB_USBINTR_SEE_MASK (0x10U) |
#define | USB_USBINTR_SEE_SHIFT (4U) |
#define | USB_USBINTR_SEE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SEE_SHIFT)) & USB_USBINTR_SEE_MASK) |
#define | USB_USBINTR_AAE_MASK (0x20U) |
#define | USB_USBINTR_AAE_SHIFT (5U) |
#define | USB_USBINTR_AAE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_AAE_SHIFT)) & USB_USBINTR_AAE_MASK) |
#define | USB_USBINTR_URE_MASK (0x40U) |
#define | USB_USBINTR_URE_SHIFT (6U) |
#define | USB_USBINTR_URE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_URE_SHIFT)) & USB_USBINTR_URE_MASK) |
#define | USB_USBINTR_SRE_MASK (0x80U) |
#define | USB_USBINTR_SRE_SHIFT (7U) |
#define | USB_USBINTR_SRE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SRE_SHIFT)) & USB_USBINTR_SRE_MASK) |
#define | USB_USBINTR_SLE_MASK (0x100U) |
#define | USB_USBINTR_SLE_SHIFT (8U) |
#define | USB_USBINTR_SLE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SLE_SHIFT)) & USB_USBINTR_SLE_MASK) |
#define | USB_USBINTR_ULPIE_MASK (0x400U) |
#define | USB_USBINTR_ULPIE_SHIFT (10U) |
#define | USB_USBINTR_ULPIE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_ULPIE_SHIFT)) & USB_USBINTR_ULPIE_MASK) |
#define | USB_USBINTR_NAKE_MASK (0x10000U) |
#define | USB_USBINTR_NAKE_SHIFT (16U) |
#define | USB_USBINTR_NAKE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_NAKE_SHIFT)) & USB_USBINTR_NAKE_MASK) |
#define | USB_USBINTR_UAIE_MASK (0x40000U) |
#define | USB_USBINTR_UAIE_SHIFT (18U) |
#define | USB_USBINTR_UAIE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UAIE_SHIFT)) & USB_USBINTR_UAIE_MASK) |
#define | USB_USBINTR_UPIE_MASK (0x80000U) |
#define | USB_USBINTR_UPIE_SHIFT (19U) |
#define | USB_USBINTR_UPIE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UPIE_SHIFT)) & USB_USBINTR_UPIE_MASK) |
#define | USB_USBINTR_TIE0_MASK (0x1000000U) |
#define | USB_USBINTR_TIE0_SHIFT (24U) |
#define | USB_USBINTR_TIE0(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE0_SHIFT)) & USB_USBINTR_TIE0_MASK) |
#define | USB_USBINTR_TIE1_MASK (0x2000000U) |
#define | USB_USBINTR_TIE1_SHIFT (25U) |
#define | USB_USBINTR_TIE1(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE1_SHIFT)) & USB_USBINTR_TIE1_MASK) |
FRINDEX - USB Frame Index | |
#define | USB_FRINDEX_FRINDEX_MASK (0x3FFFU) |
#define | USB_FRINDEX_FRINDEX_SHIFT (0U) |
#define | USB_FRINDEX_FRINDEX(x) (((uint32_t)(((uint32_t)(x)) << USB_FRINDEX_FRINDEX_SHIFT)) & USB_FRINDEX_FRINDEX_MASK) |
DEVICEADDR - Device Address | |
#define | USB_DEVICEADDR_USBADRA_MASK (0x1000000U) |
#define | USB_DEVICEADDR_USBADRA_SHIFT (24U) |
#define | USB_DEVICEADDR_USBADRA(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADRA_SHIFT)) & USB_DEVICEADDR_USBADRA_MASK) |
#define | USB_DEVICEADDR_USBADR_MASK (0xFE000000U) |
#define | USB_DEVICEADDR_USBADR_SHIFT (25U) |
#define | USB_DEVICEADDR_USBADR(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADR_SHIFT)) & USB_DEVICEADDR_USBADR_MASK) |
PERIODICLISTBASE - Frame List Base Address | |
#define | USB_PERIODICLISTBASE_BASEADR_MASK (0xFFFFF000U) |
#define | USB_PERIODICLISTBASE_BASEADR_SHIFT (12U) |
#define | USB_PERIODICLISTBASE_BASEADR(x) (((uint32_t)(((uint32_t)(x)) << USB_PERIODICLISTBASE_BASEADR_SHIFT)) & USB_PERIODICLISTBASE_BASEADR_MASK) |
ASYNCLISTADDR - Next Asynch. Address | |
#define | USB_ASYNCLISTADDR_ASYBASE_MASK (0xFFFFFFE0U) |
#define | USB_ASYNCLISTADDR_ASYBASE_SHIFT (5U) |
#define | USB_ASYNCLISTADDR_ASYBASE(x) (((uint32_t)(((uint32_t)(x)) << USB_ASYNCLISTADDR_ASYBASE_SHIFT)) & USB_ASYNCLISTADDR_ASYBASE_MASK) |
ENDPTLISTADDR - Endpoint List Address | |
#define | USB_ENDPTLISTADDR_EPBASE_MASK (0xFFFFF800U) |
#define | USB_ENDPTLISTADDR_EPBASE_SHIFT (11U) |
#define | USB_ENDPTLISTADDR_EPBASE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTLISTADDR_EPBASE_SHIFT)) & USB_ENDPTLISTADDR_EPBASE_MASK) |
BURSTSIZE - Programmable Burst Size | |
#define | USB_BURSTSIZE_RXPBURST_MASK (0xFFU) |
#define | USB_BURSTSIZE_RXPBURST_SHIFT (0U) |
#define | USB_BURSTSIZE_RXPBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_RXPBURST_SHIFT)) & USB_BURSTSIZE_RXPBURST_MASK) |
#define | USB_BURSTSIZE_TXPBURST_MASK (0x1FF00U) |
#define | USB_BURSTSIZE_TXPBURST_SHIFT (8U) |
#define | USB_BURSTSIZE_TXPBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_TXPBURST_SHIFT)) & USB_BURSTSIZE_TXPBURST_MASK) |
TXFILLTUNING - TX FIFO Fill Tuning | |
#define | USB_TXFILLTUNING_TXSCHOH_MASK (0xFFU) |
#define | USB_TXFILLTUNING_TXSCHOH_SHIFT (0U) |
#define | USB_TXFILLTUNING_TXSCHOH(x) (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHOH_SHIFT)) & USB_TXFILLTUNING_TXSCHOH_MASK) |
#define | USB_TXFILLTUNING_TXSCHHEALTH_MASK (0x1F00U) |
#define | USB_TXFILLTUNING_TXSCHHEALTH_SHIFT (8U) |
#define | USB_TXFILLTUNING_TXSCHHEALTH(x) (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHHEALTH_SHIFT)) & USB_TXFILLTUNING_TXSCHHEALTH_MASK) |
#define | USB_TXFILLTUNING_TXFIFOTHRES_MASK (0x3F0000U) |
#define | USB_TXFILLTUNING_TXFIFOTHRES_SHIFT (16U) |
#define | USB_TXFILLTUNING_TXFIFOTHRES(x) (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXFIFOTHRES_SHIFT)) & USB_TXFILLTUNING_TXFIFOTHRES_MASK) |
ENDPTNAK - Endpoint NAK | |
#define | USB_ENDPTNAK_EPRN_MASK (0xFFU) |
#define | USB_ENDPTNAK_EPRN_SHIFT (0U) |
#define | USB_ENDPTNAK_EPRN(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPRN_SHIFT)) & USB_ENDPTNAK_EPRN_MASK) |
#define | USB_ENDPTNAK_EPTN_MASK (0xFF0000U) |
#define | USB_ENDPTNAK_EPTN_SHIFT (16U) |
#define | USB_ENDPTNAK_EPTN(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPTN_SHIFT)) & USB_ENDPTNAK_EPTN_MASK) |
ENDPTNAKEN - Endpoint NAK Enable | |
#define | USB_ENDPTNAKEN_EPRNE_MASK (0xFFU) |
#define | USB_ENDPTNAKEN_EPRNE_SHIFT (0U) |
#define | USB_ENDPTNAKEN_EPRNE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPRNE_SHIFT)) & USB_ENDPTNAKEN_EPRNE_MASK) |
#define | USB_ENDPTNAKEN_EPTNE_MASK (0xFF0000U) |
#define | USB_ENDPTNAKEN_EPTNE_SHIFT (16U) |
#define | USB_ENDPTNAKEN_EPTNE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPTNE_SHIFT)) & USB_ENDPTNAKEN_EPTNE_MASK) |
CONFIGFLAG - Configure Flag Register | |
#define | USB_CONFIGFLAG_CF_MASK (0x1U) |
#define | USB_CONFIGFLAG_CF_SHIFT (0U) |
#define | USB_CONFIGFLAG_CF(x) (((uint32_t)(((uint32_t)(x)) << USB_CONFIGFLAG_CF_SHIFT)) & USB_CONFIGFLAG_CF_MASK) |
PORTSC1 - Port Status & Control | |
#define | USB_PORTSC1_CCS_MASK (0x1U) |
#define | USB_PORTSC1_CCS_SHIFT (0U) |
#define | USB_PORTSC1_CCS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CCS_SHIFT)) & USB_PORTSC1_CCS_MASK) |
#define | USB_PORTSC1_CSC_MASK (0x2U) |
#define | USB_PORTSC1_CSC_SHIFT (1U) |
#define | USB_PORTSC1_CSC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CSC_SHIFT)) & USB_PORTSC1_CSC_MASK) |
#define | USB_PORTSC1_PE_MASK (0x4U) |
#define | USB_PORTSC1_PE_SHIFT (2U) |
#define | USB_PORTSC1_PE(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PE_SHIFT)) & USB_PORTSC1_PE_MASK) |
#define | USB_PORTSC1_PEC_MASK (0x8U) |
#define | USB_PORTSC1_PEC_SHIFT (3U) |
#define | USB_PORTSC1_PEC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PEC_SHIFT)) & USB_PORTSC1_PEC_MASK) |
#define | USB_PORTSC1_OCA_MASK (0x10U) |
#define | USB_PORTSC1_OCA_SHIFT (4U) |
#define | USB_PORTSC1_OCA(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCA_SHIFT)) & USB_PORTSC1_OCA_MASK) |
#define | USB_PORTSC1_OCC_MASK (0x20U) |
#define | USB_PORTSC1_OCC_SHIFT (5U) |
#define | USB_PORTSC1_OCC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCC_SHIFT)) & USB_PORTSC1_OCC_MASK) |
#define | USB_PORTSC1_FPR_MASK (0x40U) |
#define | USB_PORTSC1_FPR_SHIFT (6U) |
#define | USB_PORTSC1_FPR(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_FPR_SHIFT)) & USB_PORTSC1_FPR_MASK) |
#define | USB_PORTSC1_SUSP_MASK (0x80U) |
#define | USB_PORTSC1_SUSP_SHIFT (7U) |
#define | USB_PORTSC1_SUSP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_SUSP_SHIFT)) & USB_PORTSC1_SUSP_MASK) |
#define | USB_PORTSC1_PR_MASK (0x100U) |
#define | USB_PORTSC1_PR_SHIFT (8U) |
#define | USB_PORTSC1_PR(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PR_SHIFT)) & USB_PORTSC1_PR_MASK) |
#define | USB_PORTSC1_HSP_MASK (0x200U) |
#define | USB_PORTSC1_HSP_SHIFT (9U) |
#define | USB_PORTSC1_HSP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_HSP_SHIFT)) & USB_PORTSC1_HSP_MASK) |
#define | USB_PORTSC1_LS_MASK (0xC00U) |
#define | USB_PORTSC1_LS_SHIFT (10U) |
#define | USB_PORTSC1_LS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_LS_SHIFT)) & USB_PORTSC1_LS_MASK) |
#define | USB_PORTSC1_PP_MASK (0x1000U) |
#define | USB_PORTSC1_PP_SHIFT (12U) |
#define | USB_PORTSC1_PP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PP_SHIFT)) & USB_PORTSC1_PP_MASK) |
#define | USB_PORTSC1_PO_MASK (0x2000U) |
#define | USB_PORTSC1_PO_SHIFT (13U) |
#define | USB_PORTSC1_PO(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PO_SHIFT)) & USB_PORTSC1_PO_MASK) |
#define | USB_PORTSC1_PIC_MASK (0xC000U) |
#define | USB_PORTSC1_PIC_SHIFT (14U) |
#define | USB_PORTSC1_PIC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PIC_SHIFT)) & USB_PORTSC1_PIC_MASK) |
#define | USB_PORTSC1_PTC_MASK (0xF0000U) |
#define | USB_PORTSC1_PTC_SHIFT (16U) |
#define | USB_PORTSC1_PTC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTC_SHIFT)) & USB_PORTSC1_PTC_MASK) |
#define | USB_PORTSC1_WKCN_MASK (0x100000U) |
#define | USB_PORTSC1_WKCN_SHIFT (20U) |
#define | USB_PORTSC1_WKCN(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKCN_SHIFT)) & USB_PORTSC1_WKCN_MASK) |
#define | USB_PORTSC1_WKDC_MASK (0x200000U) |
#define | USB_PORTSC1_WKDC_SHIFT (21U) |
#define | USB_PORTSC1_WKDC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKDC_SHIFT)) & USB_PORTSC1_WKDC_MASK) |
#define | USB_PORTSC1_WKOC_MASK (0x400000U) |
#define | USB_PORTSC1_WKOC_SHIFT (22U) |
#define | USB_PORTSC1_WKOC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKOC_SHIFT)) & USB_PORTSC1_WKOC_MASK) |
#define | USB_PORTSC1_PHCD_MASK (0x800000U) |
#define | USB_PORTSC1_PHCD_SHIFT (23U) |
#define | USB_PORTSC1_PHCD(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PHCD_SHIFT)) & USB_PORTSC1_PHCD_MASK) |
#define | USB_PORTSC1_PFSC_MASK (0x1000000U) |
#define | USB_PORTSC1_PFSC_SHIFT (24U) |
#define | USB_PORTSC1_PFSC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PFSC_SHIFT)) & USB_PORTSC1_PFSC_MASK) |
#define | USB_PORTSC1_PTS_2_MASK (0x2000000U) |
#define | USB_PORTSC1_PTS_2_SHIFT (25U) |
#define | USB_PORTSC1_PTS_2(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_2_SHIFT)) & USB_PORTSC1_PTS_2_MASK) |
#define | USB_PORTSC1_PSPD_MASK (0xC000000U) |
#define | USB_PORTSC1_PSPD_SHIFT (26U) |
#define | USB_PORTSC1_PSPD(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PSPD_SHIFT)) & USB_PORTSC1_PSPD_MASK) |
#define | USB_PORTSC1_PTW_MASK (0x10000000U) |
#define | USB_PORTSC1_PTW_SHIFT (28U) |
#define | USB_PORTSC1_PTW(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTW_SHIFT)) & USB_PORTSC1_PTW_MASK) |
#define | USB_PORTSC1_STS_MASK (0x20000000U) |
#define | USB_PORTSC1_STS_SHIFT (29U) |
#define | USB_PORTSC1_STS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_STS_SHIFT)) & USB_PORTSC1_STS_MASK) |
#define | USB_PORTSC1_PTS_1_MASK (0xC0000000U) |
#define | USB_PORTSC1_PTS_1_SHIFT (30U) |
#define | USB_PORTSC1_PTS_1(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_1_SHIFT)) & USB_PORTSC1_PTS_1_MASK) |
OTGSC - On-The-Go Status & control | |
#define | USB_OTGSC_VD_MASK (0x1U) |
#define | USB_OTGSC_VD_SHIFT (0U) |
#define | USB_OTGSC_VD(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VD_SHIFT)) & USB_OTGSC_VD_MASK) |
#define | USB_OTGSC_VC_MASK (0x2U) |
#define | USB_OTGSC_VC_SHIFT (1U) |
#define | USB_OTGSC_VC(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VC_SHIFT)) & USB_OTGSC_VC_MASK) |
#define | USB_OTGSC_OT_MASK (0x8U) |
#define | USB_OTGSC_OT_SHIFT (3U) |
#define | USB_OTGSC_OT(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_OT_SHIFT)) & USB_OTGSC_OT_MASK) |
#define | USB_OTGSC_DP_MASK (0x10U) |
#define | USB_OTGSC_DP_SHIFT (4U) |
#define | USB_OTGSC_DP(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DP_SHIFT)) & USB_OTGSC_DP_MASK) |
#define | USB_OTGSC_IDPU_MASK (0x20U) |
#define | USB_OTGSC_IDPU_SHIFT (5U) |
#define | USB_OTGSC_IDPU(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDPU_SHIFT)) & USB_OTGSC_IDPU_MASK) |
#define | USB_OTGSC_ID_MASK (0x100U) |
#define | USB_OTGSC_ID_SHIFT (8U) |
#define | USB_OTGSC_ID(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ID_SHIFT)) & USB_OTGSC_ID_MASK) |
#define | USB_OTGSC_AVV_MASK (0x200U) |
#define | USB_OTGSC_AVV_SHIFT (9U) |
#define | USB_OTGSC_AVV(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVV_SHIFT)) & USB_OTGSC_AVV_MASK) |
#define | USB_OTGSC_ASV_MASK (0x400U) |
#define | USB_OTGSC_ASV_SHIFT (10U) |
#define | USB_OTGSC_ASV(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASV_SHIFT)) & USB_OTGSC_ASV_MASK) |
#define | USB_OTGSC_BSV_MASK (0x800U) |
#define | USB_OTGSC_BSV_SHIFT (11U) |
#define | USB_OTGSC_BSV(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSV_SHIFT)) & USB_OTGSC_BSV_MASK) |
#define | USB_OTGSC_BSE_MASK (0x1000U) |
#define | USB_OTGSC_BSE_SHIFT (12U) |
#define | USB_OTGSC_BSE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSE_SHIFT)) & USB_OTGSC_BSE_MASK) |
#define | USB_OTGSC_TOG_1MS_MASK (0x2000U) |
#define | USB_OTGSC_TOG_1MS_SHIFT (13U) |
#define | USB_OTGSC_TOG_1MS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_TOG_1MS_SHIFT)) & USB_OTGSC_TOG_1MS_MASK) |
#define | USB_OTGSC_DPS_MASK (0x4000U) |
#define | USB_OTGSC_DPS_SHIFT (14U) |
#define | USB_OTGSC_DPS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPS_SHIFT)) & USB_OTGSC_DPS_MASK) |
#define | USB_OTGSC_IDIS_MASK (0x10000U) |
#define | USB_OTGSC_IDIS_SHIFT (16U) |
#define | USB_OTGSC_IDIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIS_SHIFT)) & USB_OTGSC_IDIS_MASK) |
#define | USB_OTGSC_AVVIS_MASK (0x20000U) |
#define | USB_OTGSC_AVVIS_SHIFT (17U) |
#define | USB_OTGSC_AVVIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIS_SHIFT)) & USB_OTGSC_AVVIS_MASK) |
#define | USB_OTGSC_ASVIS_MASK (0x40000U) |
#define | USB_OTGSC_ASVIS_SHIFT (18U) |
#define | USB_OTGSC_ASVIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIS_SHIFT)) & USB_OTGSC_ASVIS_MASK) |
#define | USB_OTGSC_BSVIS_MASK (0x80000U) |
#define | USB_OTGSC_BSVIS_SHIFT (19U) |
#define | USB_OTGSC_BSVIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIS_SHIFT)) & USB_OTGSC_BSVIS_MASK) |
#define | USB_OTGSC_BSEIS_MASK (0x100000U) |
#define | USB_OTGSC_BSEIS_SHIFT (20U) |
#define | USB_OTGSC_BSEIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIS_SHIFT)) & USB_OTGSC_BSEIS_MASK) |
#define | USB_OTGSC_STATUS_1MS_MASK (0x200000U) |
#define | USB_OTGSC_STATUS_1MS_SHIFT (21U) |
#define | USB_OTGSC_STATUS_1MS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_STATUS_1MS_SHIFT)) & USB_OTGSC_STATUS_1MS_MASK) |
#define | USB_OTGSC_DPIS_MASK (0x400000U) |
#define | USB_OTGSC_DPIS_SHIFT (22U) |
#define | USB_OTGSC_DPIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIS_SHIFT)) & USB_OTGSC_DPIS_MASK) |
#define | USB_OTGSC_IDIE_MASK (0x1000000U) |
#define | USB_OTGSC_IDIE_SHIFT (24U) |
#define | USB_OTGSC_IDIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIE_SHIFT)) & USB_OTGSC_IDIE_MASK) |
#define | USB_OTGSC_AVVIE_MASK (0x2000000U) |
#define | USB_OTGSC_AVVIE_SHIFT (25U) |
#define | USB_OTGSC_AVVIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIE_SHIFT)) & USB_OTGSC_AVVIE_MASK) |
#define | USB_OTGSC_ASVIE_MASK (0x4000000U) |
#define | USB_OTGSC_ASVIE_SHIFT (26U) |
#define | USB_OTGSC_ASVIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIE_SHIFT)) & USB_OTGSC_ASVIE_MASK) |
#define | USB_OTGSC_BSVIE_MASK (0x8000000U) |
#define | USB_OTGSC_BSVIE_SHIFT (27U) |
#define | USB_OTGSC_BSVIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIE_SHIFT)) & USB_OTGSC_BSVIE_MASK) |
#define | USB_OTGSC_BSEIE_MASK (0x10000000U) |
#define | USB_OTGSC_BSEIE_SHIFT (28U) |
#define | USB_OTGSC_BSEIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIE_SHIFT)) & USB_OTGSC_BSEIE_MASK) |
#define | USB_OTGSC_EN_1MS_MASK (0x20000000U) |
#define | USB_OTGSC_EN_1MS_SHIFT (29U) |
#define | USB_OTGSC_EN_1MS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_EN_1MS_SHIFT)) & USB_OTGSC_EN_1MS_MASK) |
#define | USB_OTGSC_DPIE_MASK (0x40000000U) |
#define | USB_OTGSC_DPIE_SHIFT (30U) |
#define | USB_OTGSC_DPIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIE_SHIFT)) & USB_OTGSC_DPIE_MASK) |
USBMODE - USB Device Mode | |
#define | USB_USBMODE_CM_MASK (0x3U) |
#define | USB_USBMODE_CM_SHIFT (0U) |
#define | USB_USBMODE_CM(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_CM_SHIFT)) & USB_USBMODE_CM_MASK) |
#define | USB_USBMODE_ES_MASK (0x4U) |
#define | USB_USBMODE_ES_SHIFT (2U) |
#define | USB_USBMODE_ES(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_ES_SHIFT)) & USB_USBMODE_ES_MASK) |
#define | USB_USBMODE_SLOM_MASK (0x8U) |
#define | USB_USBMODE_SLOM_SHIFT (3U) |
#define | USB_USBMODE_SLOM(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SLOM_SHIFT)) & USB_USBMODE_SLOM_MASK) |
#define | USB_USBMODE_SDIS_MASK (0x10U) |
#define | USB_USBMODE_SDIS_SHIFT (4U) |
#define | USB_USBMODE_SDIS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SDIS_SHIFT)) & USB_USBMODE_SDIS_MASK) |
ENDPTSETUPSTAT - Endpoint Setup Status | |
#define | USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_MASK (0xFFFFU) |
#define | USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT (0U) |
#define | USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT)) & USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_MASK) |
ENDPTPRIME - Endpoint Prime | |
#define | USB_ENDPTPRIME_PERB_MASK (0xFFU) |
#define | USB_ENDPTPRIME_PERB_SHIFT (0U) |
#define | USB_ENDPTPRIME_PERB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PERB_SHIFT)) & USB_ENDPTPRIME_PERB_MASK) |
#define | USB_ENDPTPRIME_PETB_MASK (0xFF0000U) |
#define | USB_ENDPTPRIME_PETB_SHIFT (16U) |
#define | USB_ENDPTPRIME_PETB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PETB_SHIFT)) & USB_ENDPTPRIME_PETB_MASK) |
ENDPTFLUSH - Endpoint Flush | |
#define | USB_ENDPTFLUSH_FERB_MASK (0xFFU) |
#define | USB_ENDPTFLUSH_FERB_SHIFT (0U) |
#define | USB_ENDPTFLUSH_FERB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FERB_SHIFT)) & USB_ENDPTFLUSH_FERB_MASK) |
#define | USB_ENDPTFLUSH_FETB_MASK (0xFF0000U) |
#define | USB_ENDPTFLUSH_FETB_SHIFT (16U) |
#define | USB_ENDPTFLUSH_FETB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FETB_SHIFT)) & USB_ENDPTFLUSH_FETB_MASK) |
ENDPTSTAT - Endpoint Status | |
#define | USB_ENDPTSTAT_ERBR_MASK (0xFFU) |
#define | USB_ENDPTSTAT_ERBR_SHIFT (0U) |
#define | USB_ENDPTSTAT_ERBR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ERBR_SHIFT)) & USB_ENDPTSTAT_ERBR_MASK) |
#define | USB_ENDPTSTAT_ETBR_MASK (0xFF0000U) |
#define | USB_ENDPTSTAT_ETBR_SHIFT (16U) |
#define | USB_ENDPTSTAT_ETBR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ETBR_SHIFT)) & USB_ENDPTSTAT_ETBR_MASK) |
ENDPTCOMPLETE - Endpoint Complete | |
#define | USB_ENDPTCOMPLETE_ERCE_MASK (0xFFU) |
#define | USB_ENDPTCOMPLETE_ERCE_SHIFT (0U) |
#define | USB_ENDPTCOMPLETE_ERCE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ERCE_SHIFT)) & USB_ENDPTCOMPLETE_ERCE_MASK) |
#define | USB_ENDPTCOMPLETE_ETCE_MASK (0xFF0000U) |
#define | USB_ENDPTCOMPLETE_ETCE_SHIFT (16U) |
#define | USB_ENDPTCOMPLETE_ETCE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ETCE_SHIFT)) & USB_ENDPTCOMPLETE_ETCE_MASK) |
ENDPTCTRL0 - Endpoint Control0 | |
#define | USB_ENDPTCTRL0_RXS_MASK (0x1U) |
#define | USB_ENDPTCTRL0_RXS_SHIFT (0U) |
#define | USB_ENDPTCTRL0_RXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXS_SHIFT)) & USB_ENDPTCTRL0_RXS_MASK) |
#define | USB_ENDPTCTRL0_RXT_MASK (0xCU) |
#define | USB_ENDPTCTRL0_RXT_SHIFT (2U) |
#define | USB_ENDPTCTRL0_RXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXT_SHIFT)) & USB_ENDPTCTRL0_RXT_MASK) |
#define | USB_ENDPTCTRL0_RXE_MASK (0x80U) |
#define | USB_ENDPTCTRL0_RXE_SHIFT (7U) |
#define | USB_ENDPTCTRL0_RXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXE_SHIFT)) & USB_ENDPTCTRL0_RXE_MASK) |
#define | USB_ENDPTCTRL0_TXS_MASK (0x10000U) |
#define | USB_ENDPTCTRL0_TXS_SHIFT (16U) |
#define | USB_ENDPTCTRL0_TXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXS_SHIFT)) & USB_ENDPTCTRL0_TXS_MASK) |
#define | USB_ENDPTCTRL0_TXT_MASK (0xC0000U) |
#define | USB_ENDPTCTRL0_TXT_SHIFT (18U) |
#define | USB_ENDPTCTRL0_TXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXT_SHIFT)) & USB_ENDPTCTRL0_TXT_MASK) |
#define | USB_ENDPTCTRL0_TXE_MASK (0x800000U) |
#define | USB_ENDPTCTRL0_TXE_SHIFT (23U) |
#define | USB_ENDPTCTRL0_TXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXE_SHIFT)) & USB_ENDPTCTRL0_TXE_MASK) |
ENDPTCTRL - Endpoint Control 1..Endpoint Control 7 | |
#define | USB_ENDPTCTRL_RXS_MASK (0x1U) |
#define | USB_ENDPTCTRL_RXS_SHIFT (0U) |
#define | USB_ENDPTCTRL_RXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXS_SHIFT)) & USB_ENDPTCTRL_RXS_MASK) |
#define | USB_ENDPTCTRL_RXD_MASK (0x2U) |
#define | USB_ENDPTCTRL_RXD_SHIFT (1U) |
#define | USB_ENDPTCTRL_RXD(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXD_SHIFT)) & USB_ENDPTCTRL_RXD_MASK) |
#define | USB_ENDPTCTRL_RXT_MASK (0xCU) |
#define | USB_ENDPTCTRL_RXT_SHIFT (2U) |
#define | USB_ENDPTCTRL_RXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXT_SHIFT)) & USB_ENDPTCTRL_RXT_MASK) |
#define | USB_ENDPTCTRL_RXI_MASK (0x20U) |
#define | USB_ENDPTCTRL_RXI_SHIFT (5U) |
#define | USB_ENDPTCTRL_RXI(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXI_SHIFT)) & USB_ENDPTCTRL_RXI_MASK) |
#define | USB_ENDPTCTRL_RXR_MASK (0x40U) |
#define | USB_ENDPTCTRL_RXR_SHIFT (6U) |
#define | USB_ENDPTCTRL_RXR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXR_SHIFT)) & USB_ENDPTCTRL_RXR_MASK) |
#define | USB_ENDPTCTRL_RXE_MASK (0x80U) |
#define | USB_ENDPTCTRL_RXE_SHIFT (7U) |
#define | USB_ENDPTCTRL_RXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXE_SHIFT)) & USB_ENDPTCTRL_RXE_MASK) |
#define | USB_ENDPTCTRL_TXS_MASK (0x10000U) |
#define | USB_ENDPTCTRL_TXS_SHIFT (16U) |
#define | USB_ENDPTCTRL_TXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXS_SHIFT)) & USB_ENDPTCTRL_TXS_MASK) |
#define | USB_ENDPTCTRL_TXD_MASK (0x20000U) |
#define | USB_ENDPTCTRL_TXD_SHIFT (17U) |
#define | USB_ENDPTCTRL_TXD(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXD_SHIFT)) & USB_ENDPTCTRL_TXD_MASK) |
#define | USB_ENDPTCTRL_TXT_MASK (0xC0000U) |
#define | USB_ENDPTCTRL_TXT_SHIFT (18U) |
#define | USB_ENDPTCTRL_TXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXT_SHIFT)) & USB_ENDPTCTRL_TXT_MASK) |
#define | USB_ENDPTCTRL_TXI_MASK (0x200000U) |
#define | USB_ENDPTCTRL_TXI_SHIFT (21U) |
#define | USB_ENDPTCTRL_TXI(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXI_SHIFT)) & USB_ENDPTCTRL_TXI_MASK) |
#define | USB_ENDPTCTRL_TXR_MASK (0x400000U) |
#define | USB_ENDPTCTRL_TXR_SHIFT (22U) |
#define | USB_ENDPTCTRL_TXR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXR_SHIFT)) & USB_ENDPTCTRL_TXR_MASK) |
#define | USB_ENDPTCTRL_TXE_MASK (0x800000U) |
#define | USB_ENDPTCTRL_TXE_SHIFT (23U) |
#define | USB_ENDPTCTRL_TXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXE_SHIFT)) & USB_ENDPTCTRL_TXE_MASK) |
ID - Identification register | |
#define | USB_ID_ID_MASK (0x3FU) |
#define | USB_ID_ID_SHIFT (0U) |
#define | USB_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << USB_ID_ID_SHIFT)) & USB_ID_ID_MASK) |
#define | USB_ID_NID_MASK (0x3F00U) |
#define | USB_ID_NID_SHIFT (8U) |
#define | USB_ID_NID(x) (((uint32_t)(((uint32_t)(x)) << USB_ID_NID_SHIFT)) & USB_ID_NID_MASK) |
#define | USB_ID_REVISION_MASK (0xFF0000U) |
#define | USB_ID_REVISION_SHIFT (16U) |
#define | USB_ID_REVISION(x) (((uint32_t)(((uint32_t)(x)) << USB_ID_REVISION_SHIFT)) & USB_ID_REVISION_MASK) |
HWGENERAL - Hardware General | |
#define | USB_HWGENERAL_PHYW_MASK (0x30U) |
#define | USB_HWGENERAL_PHYW_SHIFT (4U) |
#define | USB_HWGENERAL_PHYW(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYW_SHIFT)) & USB_HWGENERAL_PHYW_MASK) |
#define | USB_HWGENERAL_PHYM_MASK (0x1C0U) |
#define | USB_HWGENERAL_PHYM_SHIFT (6U) |
#define | USB_HWGENERAL_PHYM(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYM_SHIFT)) & USB_HWGENERAL_PHYM_MASK) |
#define | USB_HWGENERAL_SM_MASK (0x600U) |
#define | USB_HWGENERAL_SM_SHIFT (9U) |
#define | USB_HWGENERAL_SM(x) (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_SM_SHIFT)) & USB_HWGENERAL_SM_MASK) |
HWHOST - Host Hardware Parameters | |
#define | USB_HWHOST_HC_MASK (0x1U) |
#define | USB_HWHOST_HC_SHIFT (0U) |
#define | USB_HWHOST_HC(x) (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_HC_SHIFT)) & USB_HWHOST_HC_MASK) |
#define | USB_HWHOST_NPORT_MASK (0xEU) |
#define | USB_HWHOST_NPORT_SHIFT (1U) |
#define | USB_HWHOST_NPORT(x) (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_NPORT_SHIFT)) & USB_HWHOST_NPORT_MASK) |
HWDEVICE - Device Hardware Parameters | |
#define | USB_HWDEVICE_DC_MASK (0x1U) |
#define | USB_HWDEVICE_DC_SHIFT (0U) |
#define | USB_HWDEVICE_DC(x) (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DC_SHIFT)) & USB_HWDEVICE_DC_MASK) |
#define | USB_HWDEVICE_DEVEP_MASK (0x3EU) |
#define | USB_HWDEVICE_DEVEP_SHIFT (1U) |
#define | USB_HWDEVICE_DEVEP(x) (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DEVEP_SHIFT)) & USB_HWDEVICE_DEVEP_MASK) |
HWTXBUF - TX Buffer Hardware Parameters | |
#define | USB_HWTXBUF_TXBURST_MASK (0xFFU) |
#define | USB_HWTXBUF_TXBURST_SHIFT (0U) |
#define | USB_HWTXBUF_TXBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXBURST_SHIFT)) & USB_HWTXBUF_TXBURST_MASK) |
#define | USB_HWTXBUF_TXCHANADD_MASK (0xFF0000U) |
#define | USB_HWTXBUF_TXCHANADD_SHIFT (16U) |
#define | USB_HWTXBUF_TXCHANADD(x) (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXCHANADD_SHIFT)) & USB_HWTXBUF_TXCHANADD_MASK) |
HWRXBUF - RX Buffer Hardware Parameters | |
#define | USB_HWRXBUF_RXBURST_MASK (0xFFU) |
#define | USB_HWRXBUF_RXBURST_SHIFT (0U) |
#define | USB_HWRXBUF_RXBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXBURST_SHIFT)) & USB_HWRXBUF_RXBURST_MASK) |
#define | USB_HWRXBUF_RXADD_MASK (0xFF00U) |
#define | USB_HWRXBUF_RXADD_SHIFT (8U) |
#define | USB_HWRXBUF_RXADD(x) (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXADD_SHIFT)) & USB_HWRXBUF_RXADD_MASK) |
GPTIMER0LD - General Purpose Timer #0 Load | |
#define | USB_GPTIMER0LD_GPTLD_MASK (0xFFFFFFU) |
#define | USB_GPTIMER0LD_GPTLD_SHIFT (0U) |
#define | USB_GPTIMER0LD_GPTLD(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0LD_GPTLD_SHIFT)) & USB_GPTIMER0LD_GPTLD_MASK) |
GPTIMER0CTRL - General Purpose Timer #0 Controller | |
#define | USB_GPTIMER0CTRL_GPTCNT_MASK (0xFFFFFFU) |
#define | USB_GPTIMER0CTRL_GPTCNT_SHIFT (0U) |
#define | USB_GPTIMER0CTRL_GPTCNT(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTCNT_SHIFT)) & USB_GPTIMER0CTRL_GPTCNT_MASK) |
#define | USB_GPTIMER0CTRL_GPTMODE_MASK (0x1000000U) |
#define | USB_GPTIMER0CTRL_GPTMODE_SHIFT (24U) |
#define | USB_GPTIMER0CTRL_GPTMODE(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTMODE_SHIFT)) & USB_GPTIMER0CTRL_GPTMODE_MASK) |
#define | USB_GPTIMER0CTRL_GPTRST_MASK (0x40000000U) |
#define | USB_GPTIMER0CTRL_GPTRST_SHIFT (30U) |
#define | USB_GPTIMER0CTRL_GPTRST(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRST_SHIFT)) & USB_GPTIMER0CTRL_GPTRST_MASK) |
#define | USB_GPTIMER0CTRL_GPTRUN_MASK (0x80000000U) |
#define | USB_GPTIMER0CTRL_GPTRUN_SHIFT (31U) |
#define | USB_GPTIMER0CTRL_GPTRUN(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRUN_SHIFT)) & USB_GPTIMER0CTRL_GPTRUN_MASK) |
GPTIMER1LD - General Purpose Timer #1 Load | |
#define | USB_GPTIMER1LD_GPTLD_MASK (0xFFFFFFU) |
#define | USB_GPTIMER1LD_GPTLD_SHIFT (0U) |
#define | USB_GPTIMER1LD_GPTLD(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1LD_GPTLD_SHIFT)) & USB_GPTIMER1LD_GPTLD_MASK) |
GPTIMER1CTRL - General Purpose Timer #1 Controller | |
#define | USB_GPTIMER1CTRL_GPTCNT_MASK (0xFFFFFFU) |
#define | USB_GPTIMER1CTRL_GPTCNT_SHIFT (0U) |
#define | USB_GPTIMER1CTRL_GPTCNT(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTCNT_SHIFT)) & USB_GPTIMER1CTRL_GPTCNT_MASK) |
#define | USB_GPTIMER1CTRL_GPTMODE_MASK (0x1000000U) |
#define | USB_GPTIMER1CTRL_GPTMODE_SHIFT (24U) |
#define | USB_GPTIMER1CTRL_GPTMODE(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTMODE_SHIFT)) & USB_GPTIMER1CTRL_GPTMODE_MASK) |
#define | USB_GPTIMER1CTRL_GPTRST_MASK (0x40000000U) |
#define | USB_GPTIMER1CTRL_GPTRST_SHIFT (30U) |
#define | USB_GPTIMER1CTRL_GPTRST(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRST_SHIFT)) & USB_GPTIMER1CTRL_GPTRST_MASK) |
#define | USB_GPTIMER1CTRL_GPTRUN_MASK (0x80000000U) |
#define | USB_GPTIMER1CTRL_GPTRUN_SHIFT (31U) |
#define | USB_GPTIMER1CTRL_GPTRUN(x) (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRUN_SHIFT)) & USB_GPTIMER1CTRL_GPTRUN_MASK) |
SBUSCFG - System Bus Config | |
#define | USB_SBUSCFG_AHBBRST_MASK (0x7U) |
#define | USB_SBUSCFG_AHBBRST_SHIFT (0U) |
#define | USB_SBUSCFG_AHBBRST(x) (((uint32_t)(((uint32_t)(x)) << USB_SBUSCFG_AHBBRST_SHIFT)) & USB_SBUSCFG_AHBBRST_MASK) |
CAPLENGTH - Capability Registers Length | |
#define | USB_CAPLENGTH_CAPLENGTH_MASK (0xFFU) |
#define | USB_CAPLENGTH_CAPLENGTH_SHIFT (0U) |
#define | USB_CAPLENGTH_CAPLENGTH(x) (((uint8_t)(((uint8_t)(x)) << USB_CAPLENGTH_CAPLENGTH_SHIFT)) & USB_CAPLENGTH_CAPLENGTH_MASK) |
HCIVERSION - Host Controller Interface Version | |
#define | USB_HCIVERSION_HCIVERSION_MASK (0xFFFFU) |
#define | USB_HCIVERSION_HCIVERSION_SHIFT (0U) |
#define | USB_HCIVERSION_HCIVERSION(x) (((uint16_t)(((uint16_t)(x)) << USB_HCIVERSION_HCIVERSION_SHIFT)) & USB_HCIVERSION_HCIVERSION_MASK) |
HCSPARAMS - Host Controller Structural Parameters | |
#define | USB_HCSPARAMS_N_PORTS_MASK (0xFU) |
#define | USB_HCSPARAMS_N_PORTS_SHIFT (0U) |
#define | USB_HCSPARAMS_N_PORTS(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PORTS_SHIFT)) & USB_HCSPARAMS_N_PORTS_MASK) |
#define | USB_HCSPARAMS_PPC_MASK (0x10U) |
#define | USB_HCSPARAMS_PPC_SHIFT (4U) |
#define | USB_HCSPARAMS_PPC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PPC_SHIFT)) & USB_HCSPARAMS_PPC_MASK) |
#define | USB_HCSPARAMS_N_PCC_MASK (0xF00U) |
#define | USB_HCSPARAMS_N_PCC_SHIFT (8U) |
#define | USB_HCSPARAMS_N_PCC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PCC_SHIFT)) & USB_HCSPARAMS_N_PCC_MASK) |
#define | USB_HCSPARAMS_N_CC_MASK (0xF000U) |
#define | USB_HCSPARAMS_N_CC_SHIFT (12U) |
#define | USB_HCSPARAMS_N_CC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_CC_SHIFT)) & USB_HCSPARAMS_N_CC_MASK) |
#define | USB_HCSPARAMS_PI_MASK (0x10000U) |
#define | USB_HCSPARAMS_PI_SHIFT (16U) |
#define | USB_HCSPARAMS_PI(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PI_SHIFT)) & USB_HCSPARAMS_PI_MASK) |
#define | USB_HCSPARAMS_N_PTT_MASK (0xF00000U) |
#define | USB_HCSPARAMS_N_PTT_SHIFT (20U) |
#define | USB_HCSPARAMS_N_PTT(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PTT_SHIFT)) & USB_HCSPARAMS_N_PTT_MASK) |
#define | USB_HCSPARAMS_N_TT_MASK (0xF000000U) |
#define | USB_HCSPARAMS_N_TT_SHIFT (24U) |
#define | USB_HCSPARAMS_N_TT(x) (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_TT_SHIFT)) & USB_HCSPARAMS_N_TT_MASK) |
HCCPARAMS - Host Controller Capability Parameters | |
#define | USB_HCCPARAMS_ADC_MASK (0x1U) |
#define | USB_HCCPARAMS_ADC_SHIFT (0U) |
#define | USB_HCCPARAMS_ADC(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ADC_SHIFT)) & USB_HCCPARAMS_ADC_MASK) |
#define | USB_HCCPARAMS_PFL_MASK (0x2U) |
#define | USB_HCCPARAMS_PFL_SHIFT (1U) |
#define | USB_HCCPARAMS_PFL(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_PFL_SHIFT)) & USB_HCCPARAMS_PFL_MASK) |
#define | USB_HCCPARAMS_ASP_MASK (0x4U) |
#define | USB_HCCPARAMS_ASP_SHIFT (2U) |
#define | USB_HCCPARAMS_ASP(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ASP_SHIFT)) & USB_HCCPARAMS_ASP_MASK) |
#define | USB_HCCPARAMS_IST_MASK (0xF0U) |
#define | USB_HCCPARAMS_IST_SHIFT (4U) |
#define | USB_HCCPARAMS_IST(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_IST_SHIFT)) & USB_HCCPARAMS_IST_MASK) |
#define | USB_HCCPARAMS_EECP_MASK (0xFF00U) |
#define | USB_HCCPARAMS_EECP_SHIFT (8U) |
#define | USB_HCCPARAMS_EECP(x) (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_EECP_SHIFT)) & USB_HCCPARAMS_EECP_MASK) |
DCIVERSION - Device Controller Interface Version | |
#define | USB_DCIVERSION_DCIVERSION_MASK (0xFFFFU) |
#define | USB_DCIVERSION_DCIVERSION_SHIFT (0U) |
#define | USB_DCIVERSION_DCIVERSION(x) (((uint16_t)(((uint16_t)(x)) << USB_DCIVERSION_DCIVERSION_SHIFT)) & USB_DCIVERSION_DCIVERSION_MASK) |
DCCPARAMS - Device Controller Capability Parameters | |
#define | USB_DCCPARAMS_DEN_MASK (0x1FU) |
#define | USB_DCCPARAMS_DEN_SHIFT (0U) |
#define | USB_DCCPARAMS_DEN(x) (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DEN_SHIFT)) & USB_DCCPARAMS_DEN_MASK) |
#define | USB_DCCPARAMS_DC_MASK (0x80U) |
#define | USB_DCCPARAMS_DC_SHIFT (7U) |
#define | USB_DCCPARAMS_DC(x) (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DC_SHIFT)) & USB_DCCPARAMS_DC_MASK) |
#define | USB_DCCPARAMS_HC_MASK (0x100U) |
#define | USB_DCCPARAMS_HC_SHIFT (8U) |
#define | USB_DCCPARAMS_HC(x) (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_HC_SHIFT)) & USB_DCCPARAMS_HC_MASK) |
USBCMD - USB Command Register | |
#define | USB_USBCMD_RS_MASK (0x1U) |
#define | USB_USBCMD_RS_SHIFT (0U) |
#define | USB_USBCMD_RS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RS_SHIFT)) & USB_USBCMD_RS_MASK) |
#define | USB_USBCMD_RST_MASK (0x2U) |
#define | USB_USBCMD_RST_SHIFT (1U) |
#define | USB_USBCMD_RST(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RST_SHIFT)) & USB_USBCMD_RST_MASK) |
#define | USB_USBCMD_FS_1_MASK (0xCU) |
#define | USB_USBCMD_FS_1_SHIFT (2U) |
#define | USB_USBCMD_FS_1(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_1_SHIFT)) & USB_USBCMD_FS_1_MASK) |
#define | USB_USBCMD_PSE_MASK (0x10U) |
#define | USB_USBCMD_PSE_SHIFT (4U) |
#define | USB_USBCMD_PSE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_PSE_SHIFT)) & USB_USBCMD_PSE_MASK) |
#define | USB_USBCMD_ASE_MASK (0x20U) |
#define | USB_USBCMD_ASE_SHIFT (5U) |
#define | USB_USBCMD_ASE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASE_SHIFT)) & USB_USBCMD_ASE_MASK) |
#define | USB_USBCMD_IAA_MASK (0x40U) |
#define | USB_USBCMD_IAA_SHIFT (6U) |
#define | USB_USBCMD_IAA(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_IAA_SHIFT)) & USB_USBCMD_IAA_MASK) |
#define | USB_USBCMD_ASP_MASK (0x300U) |
#define | USB_USBCMD_ASP_SHIFT (8U) |
#define | USB_USBCMD_ASP(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASP_SHIFT)) & USB_USBCMD_ASP_MASK) |
#define | USB_USBCMD_ASPE_MASK (0x800U) |
#define | USB_USBCMD_ASPE_SHIFT (11U) |
#define | USB_USBCMD_ASPE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASPE_SHIFT)) & USB_USBCMD_ASPE_MASK) |
#define | USB_USBCMD_SUTW_MASK (0x2000U) |
#define | USB_USBCMD_SUTW_SHIFT (13U) |
#define | USB_USBCMD_SUTW(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_SUTW_SHIFT)) & USB_USBCMD_SUTW_MASK) |
#define | USB_USBCMD_ATDTW_MASK (0x4000U) |
#define | USB_USBCMD_ATDTW_SHIFT (14U) |
#define | USB_USBCMD_ATDTW(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ATDTW_SHIFT)) & USB_USBCMD_ATDTW_MASK) |
#define | USB_USBCMD_FS_2_MASK (0x8000U) |
#define | USB_USBCMD_FS_2_SHIFT (15U) |
#define | USB_USBCMD_FS_2(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_2_SHIFT)) & USB_USBCMD_FS_2_MASK) |
#define | USB_USBCMD_ITC_MASK (0xFF0000U) |
#define | USB_USBCMD_ITC_SHIFT (16U) |
#define | USB_USBCMD_ITC(x) (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ITC_SHIFT)) & USB_USBCMD_ITC_MASK) |
USBSTS - USB Status Register | |
#define | USB_USBSTS_UI_MASK (0x1U) |
#define | USB_USBSTS_UI_SHIFT (0U) |
#define | USB_USBSTS_UI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UI_SHIFT)) & USB_USBSTS_UI_MASK) |
#define | USB_USBSTS_UEI_MASK (0x2U) |
#define | USB_USBSTS_UEI_SHIFT (1U) |
#define | USB_USBSTS_UEI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UEI_SHIFT)) & USB_USBSTS_UEI_MASK) |
#define | USB_USBSTS_PCI_MASK (0x4U) |
#define | USB_USBSTS_PCI_SHIFT (2U) |
#define | USB_USBSTS_PCI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PCI_SHIFT)) & USB_USBSTS_PCI_MASK) |
#define | USB_USBSTS_FRI_MASK (0x8U) |
#define | USB_USBSTS_FRI_SHIFT (3U) |
#define | USB_USBSTS_FRI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_FRI_SHIFT)) & USB_USBSTS_FRI_MASK) |
#define | USB_USBSTS_SEI_MASK (0x10U) |
#define | USB_USBSTS_SEI_SHIFT (4U) |
#define | USB_USBSTS_SEI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SEI_SHIFT)) & USB_USBSTS_SEI_MASK) |
#define | USB_USBSTS_AAI_MASK (0x20U) |
#define | USB_USBSTS_AAI_SHIFT (5U) |
#define | USB_USBSTS_AAI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AAI_SHIFT)) & USB_USBSTS_AAI_MASK) |
#define | USB_USBSTS_URI_MASK (0x40U) |
#define | USB_USBSTS_URI_SHIFT (6U) |
#define | USB_USBSTS_URI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_URI_SHIFT)) & USB_USBSTS_URI_MASK) |
#define | USB_USBSTS_SRI_MASK (0x80U) |
#define | USB_USBSTS_SRI_SHIFT (7U) |
#define | USB_USBSTS_SRI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SRI_SHIFT)) & USB_USBSTS_SRI_MASK) |
#define | USB_USBSTS_SLI_MASK (0x100U) |
#define | USB_USBSTS_SLI_SHIFT (8U) |
#define | USB_USBSTS_SLI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SLI_SHIFT)) & USB_USBSTS_SLI_MASK) |
#define | USB_USBSTS_ULPII_MASK (0x400U) |
#define | USB_USBSTS_ULPII_SHIFT (10U) |
#define | USB_USBSTS_ULPII(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_ULPII_SHIFT)) & USB_USBSTS_ULPII_MASK) |
#define | USB_USBSTS_HCH_MASK (0x1000U) |
#define | USB_USBSTS_HCH_SHIFT (12U) |
#define | USB_USBSTS_HCH(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_HCH_SHIFT)) & USB_USBSTS_HCH_MASK) |
#define | USB_USBSTS_RCL_MASK (0x2000U) |
#define | USB_USBSTS_RCL_SHIFT (13U) |
#define | USB_USBSTS_RCL(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_RCL_SHIFT)) & USB_USBSTS_RCL_MASK) |
#define | USB_USBSTS_PS_MASK (0x4000U) |
#define | USB_USBSTS_PS_SHIFT (14U) |
#define | USB_USBSTS_PS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PS_SHIFT)) & USB_USBSTS_PS_MASK) |
#define | USB_USBSTS_AS_MASK (0x8000U) |
#define | USB_USBSTS_AS_SHIFT (15U) |
#define | USB_USBSTS_AS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AS_SHIFT)) & USB_USBSTS_AS_MASK) |
#define | USB_USBSTS_NAKI_MASK (0x10000U) |
#define | USB_USBSTS_NAKI_SHIFT (16U) |
#define | USB_USBSTS_NAKI(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_NAKI_SHIFT)) & USB_USBSTS_NAKI_MASK) |
#define | USB_USBSTS_TI0_MASK (0x1000000U) |
#define | USB_USBSTS_TI0_SHIFT (24U) |
#define | USB_USBSTS_TI0(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI0_SHIFT)) & USB_USBSTS_TI0_MASK) |
#define | USB_USBSTS_TI1_MASK (0x2000000U) |
#define | USB_USBSTS_TI1_SHIFT (25U) |
#define | USB_USBSTS_TI1(x) (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI1_SHIFT)) & USB_USBSTS_TI1_MASK) |
USBINTR - Interrupt Enable Register | |
#define | USB_USBINTR_UE_MASK (0x1U) |
#define | USB_USBINTR_UE_SHIFT (0U) |
#define | USB_USBINTR_UE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UE_SHIFT)) & USB_USBINTR_UE_MASK) |
#define | USB_USBINTR_UEE_MASK (0x2U) |
#define | USB_USBINTR_UEE_SHIFT (1U) |
#define | USB_USBINTR_UEE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UEE_SHIFT)) & USB_USBINTR_UEE_MASK) |
#define | USB_USBINTR_PCE_MASK (0x4U) |
#define | USB_USBINTR_PCE_SHIFT (2U) |
#define | USB_USBINTR_PCE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_PCE_SHIFT)) & USB_USBINTR_PCE_MASK) |
#define | USB_USBINTR_FRE_MASK (0x8U) |
#define | USB_USBINTR_FRE_SHIFT (3U) |
#define | USB_USBINTR_FRE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_FRE_SHIFT)) & USB_USBINTR_FRE_MASK) |
#define | USB_USBINTR_SEE_MASK (0x10U) |
#define | USB_USBINTR_SEE_SHIFT (4U) |
#define | USB_USBINTR_SEE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SEE_SHIFT)) & USB_USBINTR_SEE_MASK) |
#define | USB_USBINTR_AAE_MASK (0x20U) |
#define | USB_USBINTR_AAE_SHIFT (5U) |
#define | USB_USBINTR_AAE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_AAE_SHIFT)) & USB_USBINTR_AAE_MASK) |
#define | USB_USBINTR_URE_MASK (0x40U) |
#define | USB_USBINTR_URE_SHIFT (6U) |
#define | USB_USBINTR_URE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_URE_SHIFT)) & USB_USBINTR_URE_MASK) |
#define | USB_USBINTR_SRE_MASK (0x80U) |
#define | USB_USBINTR_SRE_SHIFT (7U) |
#define | USB_USBINTR_SRE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SRE_SHIFT)) & USB_USBINTR_SRE_MASK) |
#define | USB_USBINTR_SLE_MASK (0x100U) |
#define | USB_USBINTR_SLE_SHIFT (8U) |
#define | USB_USBINTR_SLE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SLE_SHIFT)) & USB_USBINTR_SLE_MASK) |
#define | USB_USBINTR_ULPIE_MASK (0x400U) |
#define | USB_USBINTR_ULPIE_SHIFT (10U) |
#define | USB_USBINTR_ULPIE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_ULPIE_SHIFT)) & USB_USBINTR_ULPIE_MASK) |
#define | USB_USBINTR_NAKE_MASK (0x10000U) |
#define | USB_USBINTR_NAKE_SHIFT (16U) |
#define | USB_USBINTR_NAKE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_NAKE_SHIFT)) & USB_USBINTR_NAKE_MASK) |
#define | USB_USBINTR_UAIE_MASK (0x40000U) |
#define | USB_USBINTR_UAIE_SHIFT (18U) |
#define | USB_USBINTR_UAIE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UAIE_SHIFT)) & USB_USBINTR_UAIE_MASK) |
#define | USB_USBINTR_UPIE_MASK (0x80000U) |
#define | USB_USBINTR_UPIE_SHIFT (19U) |
#define | USB_USBINTR_UPIE(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UPIE_SHIFT)) & USB_USBINTR_UPIE_MASK) |
#define | USB_USBINTR_TIE0_MASK (0x1000000U) |
#define | USB_USBINTR_TIE0_SHIFT (24U) |
#define | USB_USBINTR_TIE0(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE0_SHIFT)) & USB_USBINTR_TIE0_MASK) |
#define | USB_USBINTR_TIE1_MASK (0x2000000U) |
#define | USB_USBINTR_TIE1_SHIFT (25U) |
#define | USB_USBINTR_TIE1(x) (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE1_SHIFT)) & USB_USBINTR_TIE1_MASK) |
FRINDEX - USB Frame Index | |
#define | USB_FRINDEX_FRINDEX_MASK (0x3FFFU) |
#define | USB_FRINDEX_FRINDEX_SHIFT (0U) |
#define | USB_FRINDEX_FRINDEX(x) (((uint32_t)(((uint32_t)(x)) << USB_FRINDEX_FRINDEX_SHIFT)) & USB_FRINDEX_FRINDEX_MASK) |
DEVICEADDR - Device Address | |
#define | USB_DEVICEADDR_USBADRA_MASK (0x1000000U) |
#define | USB_DEVICEADDR_USBADRA_SHIFT (24U) |
#define | USB_DEVICEADDR_USBADRA(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADRA_SHIFT)) & USB_DEVICEADDR_USBADRA_MASK) |
#define | USB_DEVICEADDR_USBADR_MASK (0xFE000000U) |
#define | USB_DEVICEADDR_USBADR_SHIFT (25U) |
#define | USB_DEVICEADDR_USBADR(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADR_SHIFT)) & USB_DEVICEADDR_USBADR_MASK) |
PERIODICLISTBASE - Frame List Base Address | |
#define | USB_PERIODICLISTBASE_BASEADR_MASK (0xFFFFF000U) |
#define | USB_PERIODICLISTBASE_BASEADR_SHIFT (12U) |
#define | USB_PERIODICLISTBASE_BASEADR(x) (((uint32_t)(((uint32_t)(x)) << USB_PERIODICLISTBASE_BASEADR_SHIFT)) & USB_PERIODICLISTBASE_BASEADR_MASK) |
ASYNCLISTADDR - Next Asynch. Address | |
#define | USB_ASYNCLISTADDR_ASYBASE_MASK (0xFFFFFFE0U) |
#define | USB_ASYNCLISTADDR_ASYBASE_SHIFT (5U) |
#define | USB_ASYNCLISTADDR_ASYBASE(x) (((uint32_t)(((uint32_t)(x)) << USB_ASYNCLISTADDR_ASYBASE_SHIFT)) & USB_ASYNCLISTADDR_ASYBASE_MASK) |
ENDPTLISTADDR - Endpoint List Address | |
#define | USB_ENDPTLISTADDR_EPBASE_MASK (0xFFFFF800U) |
#define | USB_ENDPTLISTADDR_EPBASE_SHIFT (11U) |
#define | USB_ENDPTLISTADDR_EPBASE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTLISTADDR_EPBASE_SHIFT)) & USB_ENDPTLISTADDR_EPBASE_MASK) |
BURSTSIZE - Programmable Burst Size | |
#define | USB_BURSTSIZE_RXPBURST_MASK (0xFFU) |
#define | USB_BURSTSIZE_RXPBURST_SHIFT (0U) |
#define | USB_BURSTSIZE_RXPBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_RXPBURST_SHIFT)) & USB_BURSTSIZE_RXPBURST_MASK) |
#define | USB_BURSTSIZE_TXPBURST_MASK (0x1FF00U) |
#define | USB_BURSTSIZE_TXPBURST_SHIFT (8U) |
#define | USB_BURSTSIZE_TXPBURST(x) (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_TXPBURST_SHIFT)) & USB_BURSTSIZE_TXPBURST_MASK) |
TXFILLTUNING - TX FIFO Fill Tuning | |
#define | USB_TXFILLTUNING_TXSCHOH_MASK (0xFFU) |
#define | USB_TXFILLTUNING_TXSCHOH_SHIFT (0U) |
#define | USB_TXFILLTUNING_TXSCHOH(x) (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHOH_SHIFT)) & USB_TXFILLTUNING_TXSCHOH_MASK) |
#define | USB_TXFILLTUNING_TXSCHHEALTH_MASK (0x1F00U) |
#define | USB_TXFILLTUNING_TXSCHHEALTH_SHIFT (8U) |
#define | USB_TXFILLTUNING_TXSCHHEALTH(x) (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHHEALTH_SHIFT)) & USB_TXFILLTUNING_TXSCHHEALTH_MASK) |
#define | USB_TXFILLTUNING_TXFIFOTHRES_MASK (0x3F0000U) |
#define | USB_TXFILLTUNING_TXFIFOTHRES_SHIFT (16U) |
#define | USB_TXFILLTUNING_TXFIFOTHRES(x) (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXFIFOTHRES_SHIFT)) & USB_TXFILLTUNING_TXFIFOTHRES_MASK) |
ENDPTNAK - Endpoint NAK | |
#define | USB_ENDPTNAK_EPRN_MASK (0xFFU) |
#define | USB_ENDPTNAK_EPRN_SHIFT (0U) |
#define | USB_ENDPTNAK_EPRN(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPRN_SHIFT)) & USB_ENDPTNAK_EPRN_MASK) |
#define | USB_ENDPTNAK_EPTN_MASK (0xFF0000U) |
#define | USB_ENDPTNAK_EPTN_SHIFT (16U) |
#define | USB_ENDPTNAK_EPTN(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPTN_SHIFT)) & USB_ENDPTNAK_EPTN_MASK) |
ENDPTNAKEN - Endpoint NAK Enable | |
#define | USB_ENDPTNAKEN_EPRNE_MASK (0xFFU) |
#define | USB_ENDPTNAKEN_EPRNE_SHIFT (0U) |
#define | USB_ENDPTNAKEN_EPRNE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPRNE_SHIFT)) & USB_ENDPTNAKEN_EPRNE_MASK) |
#define | USB_ENDPTNAKEN_EPTNE_MASK (0xFF0000U) |
#define | USB_ENDPTNAKEN_EPTNE_SHIFT (16U) |
#define | USB_ENDPTNAKEN_EPTNE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPTNE_SHIFT)) & USB_ENDPTNAKEN_EPTNE_MASK) |
CONFIGFLAG - Configure Flag Register | |
#define | USB_CONFIGFLAG_CF_MASK (0x1U) |
#define | USB_CONFIGFLAG_CF_SHIFT (0U) |
#define | USB_CONFIGFLAG_CF(x) (((uint32_t)(((uint32_t)(x)) << USB_CONFIGFLAG_CF_SHIFT)) & USB_CONFIGFLAG_CF_MASK) |
PORTSC1 - Port Status & Control | |
#define | USB_PORTSC1_CCS_MASK (0x1U) |
#define | USB_PORTSC1_CCS_SHIFT (0U) |
#define | USB_PORTSC1_CCS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CCS_SHIFT)) & USB_PORTSC1_CCS_MASK) |
#define | USB_PORTSC1_CSC_MASK (0x2U) |
#define | USB_PORTSC1_CSC_SHIFT (1U) |
#define | USB_PORTSC1_CSC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CSC_SHIFT)) & USB_PORTSC1_CSC_MASK) |
#define | USB_PORTSC1_PE_MASK (0x4U) |
#define | USB_PORTSC1_PE_SHIFT (2U) |
#define | USB_PORTSC1_PE(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PE_SHIFT)) & USB_PORTSC1_PE_MASK) |
#define | USB_PORTSC1_PEC_MASK (0x8U) |
#define | USB_PORTSC1_PEC_SHIFT (3U) |
#define | USB_PORTSC1_PEC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PEC_SHIFT)) & USB_PORTSC1_PEC_MASK) |
#define | USB_PORTSC1_OCA_MASK (0x10U) |
#define | USB_PORTSC1_OCA_SHIFT (4U) |
#define | USB_PORTSC1_OCA(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCA_SHIFT)) & USB_PORTSC1_OCA_MASK) |
#define | USB_PORTSC1_OCC_MASK (0x20U) |
#define | USB_PORTSC1_OCC_SHIFT (5U) |
#define | USB_PORTSC1_OCC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCC_SHIFT)) & USB_PORTSC1_OCC_MASK) |
#define | USB_PORTSC1_FPR_MASK (0x40U) |
#define | USB_PORTSC1_FPR_SHIFT (6U) |
#define | USB_PORTSC1_FPR(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_FPR_SHIFT)) & USB_PORTSC1_FPR_MASK) |
#define | USB_PORTSC1_SUSP_MASK (0x80U) |
#define | USB_PORTSC1_SUSP_SHIFT (7U) |
#define | USB_PORTSC1_SUSP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_SUSP_SHIFT)) & USB_PORTSC1_SUSP_MASK) |
#define | USB_PORTSC1_PR_MASK (0x100U) |
#define | USB_PORTSC1_PR_SHIFT (8U) |
#define | USB_PORTSC1_PR(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PR_SHIFT)) & USB_PORTSC1_PR_MASK) |
#define | USB_PORTSC1_HSP_MASK (0x200U) |
#define | USB_PORTSC1_HSP_SHIFT (9U) |
#define | USB_PORTSC1_HSP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_HSP_SHIFT)) & USB_PORTSC1_HSP_MASK) |
#define | USB_PORTSC1_LS_MASK (0xC00U) |
#define | USB_PORTSC1_LS_SHIFT (10U) |
#define | USB_PORTSC1_LS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_LS_SHIFT)) & USB_PORTSC1_LS_MASK) |
#define | USB_PORTSC1_PP_MASK (0x1000U) |
#define | USB_PORTSC1_PP_SHIFT (12U) |
#define | USB_PORTSC1_PP(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PP_SHIFT)) & USB_PORTSC1_PP_MASK) |
#define | USB_PORTSC1_PO_MASK (0x2000U) |
#define | USB_PORTSC1_PO_SHIFT (13U) |
#define | USB_PORTSC1_PO(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PO_SHIFT)) & USB_PORTSC1_PO_MASK) |
#define | USB_PORTSC1_PIC_MASK (0xC000U) |
#define | USB_PORTSC1_PIC_SHIFT (14U) |
#define | USB_PORTSC1_PIC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PIC_SHIFT)) & USB_PORTSC1_PIC_MASK) |
#define | USB_PORTSC1_PTC_MASK (0xF0000U) |
#define | USB_PORTSC1_PTC_SHIFT (16U) |
#define | USB_PORTSC1_PTC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTC_SHIFT)) & USB_PORTSC1_PTC_MASK) |
#define | USB_PORTSC1_WKCN_MASK (0x100000U) |
#define | USB_PORTSC1_WKCN_SHIFT (20U) |
#define | USB_PORTSC1_WKCN(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKCN_SHIFT)) & USB_PORTSC1_WKCN_MASK) |
#define | USB_PORTSC1_WKDC_MASK (0x200000U) |
#define | USB_PORTSC1_WKDC_SHIFT (21U) |
#define | USB_PORTSC1_WKDC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKDC_SHIFT)) & USB_PORTSC1_WKDC_MASK) |
#define | USB_PORTSC1_WKOC_MASK (0x400000U) |
#define | USB_PORTSC1_WKOC_SHIFT (22U) |
#define | USB_PORTSC1_WKOC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKOC_SHIFT)) & USB_PORTSC1_WKOC_MASK) |
#define | USB_PORTSC1_PHCD_MASK (0x800000U) |
#define | USB_PORTSC1_PHCD_SHIFT (23U) |
#define | USB_PORTSC1_PHCD(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PHCD_SHIFT)) & USB_PORTSC1_PHCD_MASK) |
#define | USB_PORTSC1_PFSC_MASK (0x1000000U) |
#define | USB_PORTSC1_PFSC_SHIFT (24U) |
#define | USB_PORTSC1_PFSC(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PFSC_SHIFT)) & USB_PORTSC1_PFSC_MASK) |
#define | USB_PORTSC1_PTS_2_MASK (0x2000000U) |
#define | USB_PORTSC1_PTS_2_SHIFT (25U) |
#define | USB_PORTSC1_PTS_2(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_2_SHIFT)) & USB_PORTSC1_PTS_2_MASK) |
#define | USB_PORTSC1_PSPD_MASK (0xC000000U) |
#define | USB_PORTSC1_PSPD_SHIFT (26U) |
#define | USB_PORTSC1_PSPD(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PSPD_SHIFT)) & USB_PORTSC1_PSPD_MASK) |
#define | USB_PORTSC1_PTW_MASK (0x10000000U) |
#define | USB_PORTSC1_PTW_SHIFT (28U) |
#define | USB_PORTSC1_PTW(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTW_SHIFT)) & USB_PORTSC1_PTW_MASK) |
#define | USB_PORTSC1_STS_MASK (0x20000000U) |
#define | USB_PORTSC1_STS_SHIFT (29U) |
#define | USB_PORTSC1_STS(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_STS_SHIFT)) & USB_PORTSC1_STS_MASK) |
#define | USB_PORTSC1_PTS_1_MASK (0xC0000000U) |
#define | USB_PORTSC1_PTS_1_SHIFT (30U) |
#define | USB_PORTSC1_PTS_1(x) (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_1_SHIFT)) & USB_PORTSC1_PTS_1_MASK) |
OTGSC - On-The-Go Status & control | |
#define | USB_OTGSC_VD_MASK (0x1U) |
#define | USB_OTGSC_VD_SHIFT (0U) |
#define | USB_OTGSC_VD(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VD_SHIFT)) & USB_OTGSC_VD_MASK) |
#define | USB_OTGSC_VC_MASK (0x2U) |
#define | USB_OTGSC_VC_SHIFT (1U) |
#define | USB_OTGSC_VC(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VC_SHIFT)) & USB_OTGSC_VC_MASK) |
#define | USB_OTGSC_OT_MASK (0x8U) |
#define | USB_OTGSC_OT_SHIFT (3U) |
#define | USB_OTGSC_OT(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_OT_SHIFT)) & USB_OTGSC_OT_MASK) |
#define | USB_OTGSC_DP_MASK (0x10U) |
#define | USB_OTGSC_DP_SHIFT (4U) |
#define | USB_OTGSC_DP(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DP_SHIFT)) & USB_OTGSC_DP_MASK) |
#define | USB_OTGSC_IDPU_MASK (0x20U) |
#define | USB_OTGSC_IDPU_SHIFT (5U) |
#define | USB_OTGSC_IDPU(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDPU_SHIFT)) & USB_OTGSC_IDPU_MASK) |
#define | USB_OTGSC_ID_MASK (0x100U) |
#define | USB_OTGSC_ID_SHIFT (8U) |
#define | USB_OTGSC_ID(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ID_SHIFT)) & USB_OTGSC_ID_MASK) |
#define | USB_OTGSC_AVV_MASK (0x200U) |
#define | USB_OTGSC_AVV_SHIFT (9U) |
#define | USB_OTGSC_AVV(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVV_SHIFT)) & USB_OTGSC_AVV_MASK) |
#define | USB_OTGSC_ASV_MASK (0x400U) |
#define | USB_OTGSC_ASV_SHIFT (10U) |
#define | USB_OTGSC_ASV(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASV_SHIFT)) & USB_OTGSC_ASV_MASK) |
#define | USB_OTGSC_BSV_MASK (0x800U) |
#define | USB_OTGSC_BSV_SHIFT (11U) |
#define | USB_OTGSC_BSV(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSV_SHIFT)) & USB_OTGSC_BSV_MASK) |
#define | USB_OTGSC_BSE_MASK (0x1000U) |
#define | USB_OTGSC_BSE_SHIFT (12U) |
#define | USB_OTGSC_BSE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSE_SHIFT)) & USB_OTGSC_BSE_MASK) |
#define | USB_OTGSC_TOG_1MS_MASK (0x2000U) |
#define | USB_OTGSC_TOG_1MS_SHIFT (13U) |
#define | USB_OTGSC_TOG_1MS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_TOG_1MS_SHIFT)) & USB_OTGSC_TOG_1MS_MASK) |
#define | USB_OTGSC_DPS_MASK (0x4000U) |
#define | USB_OTGSC_DPS_SHIFT (14U) |
#define | USB_OTGSC_DPS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPS_SHIFT)) & USB_OTGSC_DPS_MASK) |
#define | USB_OTGSC_IDIS_MASK (0x10000U) |
#define | USB_OTGSC_IDIS_SHIFT (16U) |
#define | USB_OTGSC_IDIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIS_SHIFT)) & USB_OTGSC_IDIS_MASK) |
#define | USB_OTGSC_AVVIS_MASK (0x20000U) |
#define | USB_OTGSC_AVVIS_SHIFT (17U) |
#define | USB_OTGSC_AVVIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIS_SHIFT)) & USB_OTGSC_AVVIS_MASK) |
#define | USB_OTGSC_ASVIS_MASK (0x40000U) |
#define | USB_OTGSC_ASVIS_SHIFT (18U) |
#define | USB_OTGSC_ASVIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIS_SHIFT)) & USB_OTGSC_ASVIS_MASK) |
#define | USB_OTGSC_BSVIS_MASK (0x80000U) |
#define | USB_OTGSC_BSVIS_SHIFT (19U) |
#define | USB_OTGSC_BSVIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIS_SHIFT)) & USB_OTGSC_BSVIS_MASK) |
#define | USB_OTGSC_BSEIS_MASK (0x100000U) |
#define | USB_OTGSC_BSEIS_SHIFT (20U) |
#define | USB_OTGSC_BSEIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIS_SHIFT)) & USB_OTGSC_BSEIS_MASK) |
#define | USB_OTGSC_STATUS_1MS_MASK (0x200000U) |
#define | USB_OTGSC_STATUS_1MS_SHIFT (21U) |
#define | USB_OTGSC_STATUS_1MS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_STATUS_1MS_SHIFT)) & USB_OTGSC_STATUS_1MS_MASK) |
#define | USB_OTGSC_DPIS_MASK (0x400000U) |
#define | USB_OTGSC_DPIS_SHIFT (22U) |
#define | USB_OTGSC_DPIS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIS_SHIFT)) & USB_OTGSC_DPIS_MASK) |
#define | USB_OTGSC_IDIE_MASK (0x1000000U) |
#define | USB_OTGSC_IDIE_SHIFT (24U) |
#define | USB_OTGSC_IDIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIE_SHIFT)) & USB_OTGSC_IDIE_MASK) |
#define | USB_OTGSC_AVVIE_MASK (0x2000000U) |
#define | USB_OTGSC_AVVIE_SHIFT (25U) |
#define | USB_OTGSC_AVVIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIE_SHIFT)) & USB_OTGSC_AVVIE_MASK) |
#define | USB_OTGSC_ASVIE_MASK (0x4000000U) |
#define | USB_OTGSC_ASVIE_SHIFT (26U) |
#define | USB_OTGSC_ASVIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIE_SHIFT)) & USB_OTGSC_ASVIE_MASK) |
#define | USB_OTGSC_BSVIE_MASK (0x8000000U) |
#define | USB_OTGSC_BSVIE_SHIFT (27U) |
#define | USB_OTGSC_BSVIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIE_SHIFT)) & USB_OTGSC_BSVIE_MASK) |
#define | USB_OTGSC_BSEIE_MASK (0x10000000U) |
#define | USB_OTGSC_BSEIE_SHIFT (28U) |
#define | USB_OTGSC_BSEIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIE_SHIFT)) & USB_OTGSC_BSEIE_MASK) |
#define | USB_OTGSC_EN_1MS_MASK (0x20000000U) |
#define | USB_OTGSC_EN_1MS_SHIFT (29U) |
#define | USB_OTGSC_EN_1MS(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_EN_1MS_SHIFT)) & USB_OTGSC_EN_1MS_MASK) |
#define | USB_OTGSC_DPIE_MASK (0x40000000U) |
#define | USB_OTGSC_DPIE_SHIFT (30U) |
#define | USB_OTGSC_DPIE(x) (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIE_SHIFT)) & USB_OTGSC_DPIE_MASK) |
USBMODE - USB Device Mode | |
#define | USB_USBMODE_CM_MASK (0x3U) |
#define | USB_USBMODE_CM_SHIFT (0U) |
#define | USB_USBMODE_CM(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_CM_SHIFT)) & USB_USBMODE_CM_MASK) |
#define | USB_USBMODE_ES_MASK (0x4U) |
#define | USB_USBMODE_ES_SHIFT (2U) |
#define | USB_USBMODE_ES(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_ES_SHIFT)) & USB_USBMODE_ES_MASK) |
#define | USB_USBMODE_SLOM_MASK (0x8U) |
#define | USB_USBMODE_SLOM_SHIFT (3U) |
#define | USB_USBMODE_SLOM(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SLOM_SHIFT)) & USB_USBMODE_SLOM_MASK) |
#define | USB_USBMODE_SDIS_MASK (0x10U) |
#define | USB_USBMODE_SDIS_SHIFT (4U) |
#define | USB_USBMODE_SDIS(x) (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SDIS_SHIFT)) & USB_USBMODE_SDIS_MASK) |
ENDPTSETUPSTAT - Endpoint Setup Status | |
#define | USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_MASK (0xFFFFU) |
#define | USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT (0U) |
#define | USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT)) & USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_MASK) |
ENDPTPRIME - Endpoint Prime | |
#define | USB_ENDPTPRIME_PERB_MASK (0xFFU) |
#define | USB_ENDPTPRIME_PERB_SHIFT (0U) |
#define | USB_ENDPTPRIME_PERB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PERB_SHIFT)) & USB_ENDPTPRIME_PERB_MASK) |
#define | USB_ENDPTPRIME_PETB_MASK (0xFF0000U) |
#define | USB_ENDPTPRIME_PETB_SHIFT (16U) |
#define | USB_ENDPTPRIME_PETB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PETB_SHIFT)) & USB_ENDPTPRIME_PETB_MASK) |
ENDPTFLUSH - Endpoint Flush | |
#define | USB_ENDPTFLUSH_FERB_MASK (0xFFU) |
#define | USB_ENDPTFLUSH_FERB_SHIFT (0U) |
#define | USB_ENDPTFLUSH_FERB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FERB_SHIFT)) & USB_ENDPTFLUSH_FERB_MASK) |
#define | USB_ENDPTFLUSH_FETB_MASK (0xFF0000U) |
#define | USB_ENDPTFLUSH_FETB_SHIFT (16U) |
#define | USB_ENDPTFLUSH_FETB(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FETB_SHIFT)) & USB_ENDPTFLUSH_FETB_MASK) |
ENDPTSTAT - Endpoint Status | |
#define | USB_ENDPTSTAT_ERBR_MASK (0xFFU) |
#define | USB_ENDPTSTAT_ERBR_SHIFT (0U) |
#define | USB_ENDPTSTAT_ERBR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ERBR_SHIFT)) & USB_ENDPTSTAT_ERBR_MASK) |
#define | USB_ENDPTSTAT_ETBR_MASK (0xFF0000U) |
#define | USB_ENDPTSTAT_ETBR_SHIFT (16U) |
#define | USB_ENDPTSTAT_ETBR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ETBR_SHIFT)) & USB_ENDPTSTAT_ETBR_MASK) |
ENDPTCOMPLETE - Endpoint Complete | |
#define | USB_ENDPTCOMPLETE_ERCE_MASK (0xFFU) |
#define | USB_ENDPTCOMPLETE_ERCE_SHIFT (0U) |
#define | USB_ENDPTCOMPLETE_ERCE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ERCE_SHIFT)) & USB_ENDPTCOMPLETE_ERCE_MASK) |
#define | USB_ENDPTCOMPLETE_ETCE_MASK (0xFF0000U) |
#define | USB_ENDPTCOMPLETE_ETCE_SHIFT (16U) |
#define | USB_ENDPTCOMPLETE_ETCE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ETCE_SHIFT)) & USB_ENDPTCOMPLETE_ETCE_MASK) |
ENDPTCTRL0 - Endpoint Control0 | |
#define | USB_ENDPTCTRL0_RXS_MASK (0x1U) |
#define | USB_ENDPTCTRL0_RXS_SHIFT (0U) |
#define | USB_ENDPTCTRL0_RXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXS_SHIFT)) & USB_ENDPTCTRL0_RXS_MASK) |
#define | USB_ENDPTCTRL0_RXT_MASK (0xCU) |
#define | USB_ENDPTCTRL0_RXT_SHIFT (2U) |
#define | USB_ENDPTCTRL0_RXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXT_SHIFT)) & USB_ENDPTCTRL0_RXT_MASK) |
#define | USB_ENDPTCTRL0_RXE_MASK (0x80U) |
#define | USB_ENDPTCTRL0_RXE_SHIFT (7U) |
#define | USB_ENDPTCTRL0_RXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXE_SHIFT)) & USB_ENDPTCTRL0_RXE_MASK) |
#define | USB_ENDPTCTRL0_TXS_MASK (0x10000U) |
#define | USB_ENDPTCTRL0_TXS_SHIFT (16U) |
#define | USB_ENDPTCTRL0_TXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXS_SHIFT)) & USB_ENDPTCTRL0_TXS_MASK) |
#define | USB_ENDPTCTRL0_TXT_MASK (0xC0000U) |
#define | USB_ENDPTCTRL0_TXT_SHIFT (18U) |
#define | USB_ENDPTCTRL0_TXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXT_SHIFT)) & USB_ENDPTCTRL0_TXT_MASK) |
#define | USB_ENDPTCTRL0_TXE_MASK (0x800000U) |
#define | USB_ENDPTCTRL0_TXE_SHIFT (23U) |
#define | USB_ENDPTCTRL0_TXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXE_SHIFT)) & USB_ENDPTCTRL0_TXE_MASK) |
ENDPTCTRL - Endpoint Control 1..Endpoint Control 7 | |
#define | USB_ENDPTCTRL_RXS_MASK (0x1U) |
#define | USB_ENDPTCTRL_RXS_SHIFT (0U) |
#define | USB_ENDPTCTRL_RXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXS_SHIFT)) & USB_ENDPTCTRL_RXS_MASK) |
#define | USB_ENDPTCTRL_RXD_MASK (0x2U) |
#define | USB_ENDPTCTRL_RXD_SHIFT (1U) |
#define | USB_ENDPTCTRL_RXD(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXD_SHIFT)) & USB_ENDPTCTRL_RXD_MASK) |
#define | USB_ENDPTCTRL_RXT_MASK (0xCU) |
#define | USB_ENDPTCTRL_RXT_SHIFT (2U) |
#define | USB_ENDPTCTRL_RXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXT_SHIFT)) & USB_ENDPTCTRL_RXT_MASK) |
#define | USB_ENDPTCTRL_RXI_MASK (0x20U) |
#define | USB_ENDPTCTRL_RXI_SHIFT (5U) |
#define | USB_ENDPTCTRL_RXI(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXI_SHIFT)) & USB_ENDPTCTRL_RXI_MASK) |
#define | USB_ENDPTCTRL_RXR_MASK (0x40U) |
#define | USB_ENDPTCTRL_RXR_SHIFT (6U) |
#define | USB_ENDPTCTRL_RXR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXR_SHIFT)) & USB_ENDPTCTRL_RXR_MASK) |
#define | USB_ENDPTCTRL_RXE_MASK (0x80U) |
#define | USB_ENDPTCTRL_RXE_SHIFT (7U) |
#define | USB_ENDPTCTRL_RXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXE_SHIFT)) & USB_ENDPTCTRL_RXE_MASK) |
#define | USB_ENDPTCTRL_TXS_MASK (0x10000U) |
#define | USB_ENDPTCTRL_TXS_SHIFT (16U) |
#define | USB_ENDPTCTRL_TXS(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXS_SHIFT)) & USB_ENDPTCTRL_TXS_MASK) |
#define | USB_ENDPTCTRL_TXD_MASK (0x20000U) |
#define | USB_ENDPTCTRL_TXD_SHIFT (17U) |
#define | USB_ENDPTCTRL_TXD(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXD_SHIFT)) & USB_ENDPTCTRL_TXD_MASK) |
#define | USB_ENDPTCTRL_TXT_MASK (0xC0000U) |
#define | USB_ENDPTCTRL_TXT_SHIFT (18U) |
#define | USB_ENDPTCTRL_TXT(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXT_SHIFT)) & USB_ENDPTCTRL_TXT_MASK) |
#define | USB_ENDPTCTRL_TXI_MASK (0x200000U) |
#define | USB_ENDPTCTRL_TXI_SHIFT (21U) |
#define | USB_ENDPTCTRL_TXI(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXI_SHIFT)) & USB_ENDPTCTRL_TXI_MASK) |
#define | USB_ENDPTCTRL_TXR_MASK (0x400000U) |
#define | USB_ENDPTCTRL_TXR_SHIFT (22U) |
#define | USB_ENDPTCTRL_TXR(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXR_SHIFT)) & USB_ENDPTCTRL_TXR_MASK) |
#define | USB_ENDPTCTRL_TXE_MASK (0x800000U) |
#define | USB_ENDPTCTRL_TXE_SHIFT (23U) |
#define | USB_ENDPTCTRL_TXE(x) (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXE_SHIFT)) & USB_ENDPTCTRL_TXE_MASK) |
#define USB_ASYNCLISTADDR_ASYBASE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ASYNCLISTADDR_ASYBASE_SHIFT)) & USB_ASYNCLISTADDR_ASYBASE_MASK) |
ASYBASE - ASYBASE
#define USB_ASYNCLISTADDR_ASYBASE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ASYNCLISTADDR_ASYBASE_SHIFT)) & USB_ASYNCLISTADDR_ASYBASE_MASK) |
ASYBASE - ASYBASE
#define USB_BURSTSIZE_RXPBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_RXPBURST_SHIFT)) & USB_BURSTSIZE_RXPBURST_MASK) |
RXPBURST - RXPBURST
#define USB_BURSTSIZE_RXPBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_RXPBURST_SHIFT)) & USB_BURSTSIZE_RXPBURST_MASK) |
RXPBURST - RXPBURST
#define USB_BURSTSIZE_TXPBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_TXPBURST_SHIFT)) & USB_BURSTSIZE_TXPBURST_MASK) |
TXPBURST - TXPBURST
#define USB_BURSTSIZE_TXPBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_BURSTSIZE_TXPBURST_SHIFT)) & USB_BURSTSIZE_TXPBURST_MASK) |
TXPBURST - TXPBURST
#define USB_CAPLENGTH_CAPLENGTH | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << USB_CAPLENGTH_CAPLENGTH_SHIFT)) & USB_CAPLENGTH_CAPLENGTH_MASK) |
CAPLENGTH - CAPLENGTH
#define USB_CAPLENGTH_CAPLENGTH | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << USB_CAPLENGTH_CAPLENGTH_SHIFT)) & USB_CAPLENGTH_CAPLENGTH_MASK) |
CAPLENGTH - CAPLENGTH
#define USB_CONFIGFLAG_CF | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_CONFIGFLAG_CF_SHIFT)) & USB_CONFIGFLAG_CF_MASK) |
CF 0b0..Port routing control logic default-routes each port to an implementation dependent classic host controller. 0b1..Port routing control logic default-routes all ports to this host controller.
#define USB_CONFIGFLAG_CF | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_CONFIGFLAG_CF_SHIFT)) & USB_CONFIGFLAG_CF_MASK) |
CF - CF 0b0..Port routing control logic default-routes each port to an implementation dependent classic host controller. 0b1..Port routing control logic default-routes all ports to this host controller.
#define USB_CONFIGFLAG_CF | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_CONFIGFLAG_CF_SHIFT)) & USB_CONFIGFLAG_CF_MASK) |
CF - CF 0b0..Port routing control logic default-routes each port to an implementation dependent classic host controller. 0b1..Port routing control logic default-routes all ports to this host controller.
#define USB_DCCPARAMS_DC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DC_SHIFT)) & USB_DCCPARAMS_DC_MASK) |
DC - DC
#define USB_DCCPARAMS_DC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DC_SHIFT)) & USB_DCCPARAMS_DC_MASK) |
DC - DC
#define USB_DCCPARAMS_DEN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DEN_SHIFT)) & USB_DCCPARAMS_DEN_MASK) |
DEN - DEN
#define USB_DCCPARAMS_DEN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_DEN_SHIFT)) & USB_DCCPARAMS_DEN_MASK) |
DEN - DEN
#define USB_DCCPARAMS_HC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_HC_SHIFT)) & USB_DCCPARAMS_HC_MASK) |
HC - HC
#define USB_DCCPARAMS_HC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DCCPARAMS_HC_SHIFT)) & USB_DCCPARAMS_HC_MASK) |
HC - HC
#define USB_DCIVERSION_DCIVERSION | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << USB_DCIVERSION_DCIVERSION_SHIFT)) & USB_DCIVERSION_DCIVERSION_MASK) |
DCIVERSION - DCIVERSION
#define USB_DCIVERSION_DCIVERSION | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << USB_DCIVERSION_DCIVERSION_SHIFT)) & USB_DCIVERSION_DCIVERSION_MASK) |
DCIVERSION - DCIVERSION
#define USB_DEVICEADDR_USBADR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADR_SHIFT)) & USB_DEVICEADDR_USBADR_MASK) |
USBADR - USBADR
#define USB_DEVICEADDR_USBADR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADR_SHIFT)) & USB_DEVICEADDR_USBADR_MASK) |
USBADR - USBADR
#define USB_DEVICEADDR_USBADRA | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADRA_SHIFT)) & USB_DEVICEADDR_USBADRA_MASK) |
USBADRA - USBADRA
#define USB_DEVICEADDR_USBADRA | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_DEVICEADDR_USBADRA_SHIFT)) & USB_DEVICEADDR_USBADRA_MASK) |
USBADRA - USBADRA
#define USB_ENDPTCOMPLETE_ERCE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ERCE_SHIFT)) & USB_ENDPTCOMPLETE_ERCE_MASK) |
ERCE - ERCE
#define USB_ENDPTCOMPLETE_ERCE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ERCE_SHIFT)) & USB_ENDPTCOMPLETE_ERCE_MASK) |
ERCE - ERCE
#define USB_ENDPTCOMPLETE_ETCE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ETCE_SHIFT)) & USB_ENDPTCOMPLETE_ETCE_MASK) |
ETCE - ETCE
#define USB_ENDPTCOMPLETE_ETCE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCOMPLETE_ETCE_SHIFT)) & USB_ENDPTCOMPLETE_ETCE_MASK) |
ETCE - ETCE
#define USB_ENDPTCTRL0_RXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXE_SHIFT)) & USB_ENDPTCTRL0_RXE_MASK) |
RXE - RXE
#define USB_ENDPTCTRL0_RXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXE_SHIFT)) & USB_ENDPTCTRL0_RXE_MASK) |
RXE - RXE
#define USB_ENDPTCTRL0_RXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXS_SHIFT)) & USB_ENDPTCTRL0_RXS_MASK) |
RXS - RXS
#define USB_ENDPTCTRL0_RXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXS_SHIFT)) & USB_ENDPTCTRL0_RXS_MASK) |
RXS - RXS
#define USB_ENDPTCTRL0_RXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXT_SHIFT)) & USB_ENDPTCTRL0_RXT_MASK) |
RXT - RXT
#define USB_ENDPTCTRL0_RXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_RXT_SHIFT)) & USB_ENDPTCTRL0_RXT_MASK) |
RXT - RXT
#define USB_ENDPTCTRL0_TXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXE_SHIFT)) & USB_ENDPTCTRL0_TXE_MASK) |
TXE - TXE
#define USB_ENDPTCTRL0_TXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXE_SHIFT)) & USB_ENDPTCTRL0_TXE_MASK) |
TXE - TXE
#define USB_ENDPTCTRL0_TXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXS_SHIFT)) & USB_ENDPTCTRL0_TXS_MASK) |
TXS - TXS
#define USB_ENDPTCTRL0_TXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXS_SHIFT)) & USB_ENDPTCTRL0_TXS_MASK) |
TXS - TXS
#define USB_ENDPTCTRL0_TXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXT_SHIFT)) & USB_ENDPTCTRL0_TXT_MASK) |
TXT - TXT
#define USB_ENDPTCTRL0_TXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL0_TXT_SHIFT)) & USB_ENDPTCTRL0_TXT_MASK) |
TXT - TXT
#define USB_ENDPTCTRL_RXD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXD_SHIFT)) & USB_ENDPTCTRL_RXD_MASK) |
RXD - RXD
#define USB_ENDPTCTRL_RXD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXD_SHIFT)) & USB_ENDPTCTRL_RXD_MASK) |
RXD - RXD
#define USB_ENDPTCTRL_RXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXE_SHIFT)) & USB_ENDPTCTRL_RXE_MASK) |
RXE - RXE
#define USB_ENDPTCTRL_RXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXE_SHIFT)) & USB_ENDPTCTRL_RXE_MASK) |
RXE - RXE
#define USB_ENDPTCTRL_RXI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXI_SHIFT)) & USB_ENDPTCTRL_RXI_MASK) |
RXI - RXI
#define USB_ENDPTCTRL_RXI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXI_SHIFT)) & USB_ENDPTCTRL_RXI_MASK) |
RXI - RXI
#define USB_ENDPTCTRL_RXR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXR_SHIFT)) & USB_ENDPTCTRL_RXR_MASK) |
RXR - RXR
#define USB_ENDPTCTRL_RXR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXR_SHIFT)) & USB_ENDPTCTRL_RXR_MASK) |
RXR - RXR
#define USB_ENDPTCTRL_RXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXS_SHIFT)) & USB_ENDPTCTRL_RXS_MASK) |
RXS - RXS
#define USB_ENDPTCTRL_RXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXS_SHIFT)) & USB_ENDPTCTRL_RXS_MASK) |
RXS - RXS
#define USB_ENDPTCTRL_RXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXT_SHIFT)) & USB_ENDPTCTRL_RXT_MASK) |
RXT - RXT
#define USB_ENDPTCTRL_RXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_RXT_SHIFT)) & USB_ENDPTCTRL_RXT_MASK) |
RXT - RXT
#define USB_ENDPTCTRL_TXD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXD_SHIFT)) & USB_ENDPTCTRL_TXD_MASK) |
TXD - TXD
#define USB_ENDPTCTRL_TXD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXD_SHIFT)) & USB_ENDPTCTRL_TXD_MASK) |
TXD - TXD
#define USB_ENDPTCTRL_TXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXE_SHIFT)) & USB_ENDPTCTRL_TXE_MASK) |
TXE - TXE
#define USB_ENDPTCTRL_TXE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXE_SHIFT)) & USB_ENDPTCTRL_TXE_MASK) |
TXE - TXE
#define USB_ENDPTCTRL_TXI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXI_SHIFT)) & USB_ENDPTCTRL_TXI_MASK) |
TXI - TXI
#define USB_ENDPTCTRL_TXI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXI_SHIFT)) & USB_ENDPTCTRL_TXI_MASK) |
TXI - TXI
#define USB_ENDPTCTRL_TXR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXR_SHIFT)) & USB_ENDPTCTRL_TXR_MASK) |
TXR - TXR
#define USB_ENDPTCTRL_TXR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXR_SHIFT)) & USB_ENDPTCTRL_TXR_MASK) |
TXR - TXR
#define USB_ENDPTCTRL_TXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXS_SHIFT)) & USB_ENDPTCTRL_TXS_MASK) |
TXS - TXS
#define USB_ENDPTCTRL_TXS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXS_SHIFT)) & USB_ENDPTCTRL_TXS_MASK) |
TXS - TXS
#define USB_ENDPTCTRL_TXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXT_SHIFT)) & USB_ENDPTCTRL_TXT_MASK) |
TXT - TXT
#define USB_ENDPTCTRL_TXT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTCTRL_TXT_SHIFT)) & USB_ENDPTCTRL_TXT_MASK) |
TXT - TXT
#define USB_ENDPTFLUSH_FERB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FERB_SHIFT)) & USB_ENDPTFLUSH_FERB_MASK) |
FERB - FERB
#define USB_ENDPTFLUSH_FERB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FERB_SHIFT)) & USB_ENDPTFLUSH_FERB_MASK) |
FERB - FERB
#define USB_ENDPTFLUSH_FETB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FETB_SHIFT)) & USB_ENDPTFLUSH_FETB_MASK) |
FETB - FETB
#define USB_ENDPTFLUSH_FETB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTFLUSH_FETB_SHIFT)) & USB_ENDPTFLUSH_FETB_MASK) |
FETB - FETB
#define USB_ENDPTLISTADDR_EPBASE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTLISTADDR_EPBASE_SHIFT)) & USB_ENDPTLISTADDR_EPBASE_MASK) |
EPBASE - EPBASE
#define USB_ENDPTLISTADDR_EPBASE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTLISTADDR_EPBASE_SHIFT)) & USB_ENDPTLISTADDR_EPBASE_MASK) |
EPBASE - EPBASE
#define USB_ENDPTNAK_EPRN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPRN_SHIFT)) & USB_ENDPTNAK_EPRN_MASK) |
EPRN - EPRN
#define USB_ENDPTNAK_EPRN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPRN_SHIFT)) & USB_ENDPTNAK_EPRN_MASK) |
EPRN - EPRN
#define USB_ENDPTNAK_EPTN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPTN_SHIFT)) & USB_ENDPTNAK_EPTN_MASK) |
EPTN - EPTN
#define USB_ENDPTNAK_EPTN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAK_EPTN_SHIFT)) & USB_ENDPTNAK_EPTN_MASK) |
EPTN - EPTN
#define USB_ENDPTNAKEN_EPRNE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPRNE_SHIFT)) & USB_ENDPTNAKEN_EPRNE_MASK) |
EPRNE - EPRNE
#define USB_ENDPTNAKEN_EPRNE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPRNE_SHIFT)) & USB_ENDPTNAKEN_EPRNE_MASK) |
EPRNE - EPRNE
#define USB_ENDPTNAKEN_EPTNE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPTNE_SHIFT)) & USB_ENDPTNAKEN_EPTNE_MASK) |
EPTNE - EPTNE
#define USB_ENDPTNAKEN_EPTNE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTNAKEN_EPTNE_SHIFT)) & USB_ENDPTNAKEN_EPTNE_MASK) |
EPTNE - EPTNE
#define USB_ENDPTPRIME_PERB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PERB_SHIFT)) & USB_ENDPTPRIME_PERB_MASK) |
PERB - PERB
#define USB_ENDPTPRIME_PERB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PERB_SHIFT)) & USB_ENDPTPRIME_PERB_MASK) |
PERB - PERB
#define USB_ENDPTPRIME_PETB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PETB_SHIFT)) & USB_ENDPTPRIME_PETB_MASK) |
PETB - PETB
#define USB_ENDPTPRIME_PETB | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTPRIME_PETB_SHIFT)) & USB_ENDPTPRIME_PETB_MASK) |
PETB - PETB
#define USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT)) & USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_MASK) |
ENDPTSETUPSTAT - ENDPTSETUPSTAT
#define USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT)) & USB_ENDPTSETUPSTAT_ENDPTSETUPSTAT_MASK) |
ENDPTSETUPSTAT - ENDPTSETUPSTAT
#define USB_ENDPTSTAT_ERBR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ERBR_SHIFT)) & USB_ENDPTSTAT_ERBR_MASK) |
ERBR - ERBR
#define USB_ENDPTSTAT_ERBR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ERBR_SHIFT)) & USB_ENDPTSTAT_ERBR_MASK) |
ERBR - ERBR
#define USB_ENDPTSTAT_ETBR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ETBR_SHIFT)) & USB_ENDPTSTAT_ETBR_MASK) |
ETBR - ETBR
#define USB_ENDPTSTAT_ETBR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ENDPTSTAT_ETBR_SHIFT)) & USB_ENDPTSTAT_ETBR_MASK) |
ETBR - ETBR
#define USB_FRINDEX_FRINDEX | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_FRINDEX_FRINDEX_SHIFT)) & USB_FRINDEX_FRINDEX_MASK) |
FRINDEX 0b00000000000000..(1024) 12 0b00000000000001..(512) 11 0b00000000000010..(256) 10 0b00000000000011..(128) 9 0b00000000000100..(64) 8 0b00000000000101..(32) 7 0b00000000000110..(16) 6 0b00000000000111..(8) 5
#define USB_FRINDEX_FRINDEX | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_FRINDEX_FRINDEX_SHIFT)) & USB_FRINDEX_FRINDEX_MASK) |
FRINDEX - FRINDEX 0b00000000000000..(1024) 12 0b00000000000001..(512) 11 0b00000000000010..(256) 10 0b00000000000011..(128) 9 0b00000000000100..(64) 8 0b00000000000101..(32) 7 0b00000000000110..(16) 6 0b00000000000111..(8) 5
#define USB_FRINDEX_FRINDEX | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_FRINDEX_FRINDEX_SHIFT)) & USB_FRINDEX_FRINDEX_MASK) |
FRINDEX - FRINDEX 0b00000000000000..(1024) 12 0b00000000000001..(512) 11 0b00000000000010..(256) 10 0b00000000000011..(128) 9 0b00000000000100..(64) 8 0b00000000000101..(32) 7 0b00000000000110..(16) 6 0b00000000000111..(8) 5
#define USB_GPTIMER0CTRL_GPTCNT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTCNT_SHIFT)) & USB_GPTIMER0CTRL_GPTCNT_MASK) |
GPTCNT - GPTCNT
#define USB_GPTIMER0CTRL_GPTCNT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTCNT_SHIFT)) & USB_GPTIMER0CTRL_GPTCNT_MASK) |
GPTCNT - GPTCNT
#define USB_GPTIMER0CTRL_GPTMODE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTMODE_SHIFT)) & USB_GPTIMER0CTRL_GPTMODE_MASK) |
GPTMODE 0b0..One Shot Mode 0b1..Repeat Mode
#define USB_GPTIMER0CTRL_GPTMODE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTMODE_SHIFT)) & USB_GPTIMER0CTRL_GPTMODE_MASK) |
GPTMODE - GPTMODE 0b0..One Shot Mode 0b1..Repeat Mode
#define USB_GPTIMER0CTRL_GPTMODE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTMODE_SHIFT)) & USB_GPTIMER0CTRL_GPTMODE_MASK) |
GPTMODE - GPTMODE 0b0..One Shot Mode 0b1..Repeat Mode
#define USB_GPTIMER0CTRL_GPTRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRST_SHIFT)) & USB_GPTIMER0CTRL_GPTRST_MASK) |
GPTRST 0b0..No action 0b1..Load counter value from GPTLD bits in n_GPTIMER0LD
#define USB_GPTIMER0CTRL_GPTRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRST_SHIFT)) & USB_GPTIMER0CTRL_GPTRST_MASK) |
GPTRST - GPTRST 0b0..No action 0b1..Load counter value from GPTLD bits in n_GPTIMER0LD
#define USB_GPTIMER0CTRL_GPTRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRST_SHIFT)) & USB_GPTIMER0CTRL_GPTRST_MASK) |
GPTRST - GPTRST 0b0..No action 0b1..Load counter value from GPTLD bits in n_GPTIMER0LD
#define USB_GPTIMER0CTRL_GPTRUN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRUN_SHIFT)) & USB_GPTIMER0CTRL_GPTRUN_MASK) |
GPTRUN 0b0..Stop counting 0b1..Run
#define USB_GPTIMER0CTRL_GPTRUN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRUN_SHIFT)) & USB_GPTIMER0CTRL_GPTRUN_MASK) |
GPTRUN - GPTRUN 0b0..Stop counting 0b1..Run
#define USB_GPTIMER0CTRL_GPTRUN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0CTRL_GPTRUN_SHIFT)) & USB_GPTIMER0CTRL_GPTRUN_MASK) |
GPTRUN - GPTRUN 0b0..Stop counting 0b1..Run
#define USB_GPTIMER0LD_GPTLD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0LD_GPTLD_SHIFT)) & USB_GPTIMER0LD_GPTLD_MASK) |
GPTLD - GPTLD
#define USB_GPTIMER0LD_GPTLD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER0LD_GPTLD_SHIFT)) & USB_GPTIMER0LD_GPTLD_MASK) |
GPTLD - GPTLD
#define USB_GPTIMER1CTRL_GPTCNT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTCNT_SHIFT)) & USB_GPTIMER1CTRL_GPTCNT_MASK) |
GPTCNT - GPTCNT
#define USB_GPTIMER1CTRL_GPTCNT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTCNT_SHIFT)) & USB_GPTIMER1CTRL_GPTCNT_MASK) |
GPTCNT - GPTCNT
#define USB_GPTIMER1CTRL_GPTMODE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTMODE_SHIFT)) & USB_GPTIMER1CTRL_GPTMODE_MASK) |
GPTMODE 0b0..One Shot Mode 0b1..Repeat Mode
#define USB_GPTIMER1CTRL_GPTMODE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTMODE_SHIFT)) & USB_GPTIMER1CTRL_GPTMODE_MASK) |
GPTMODE - GPTMODE 0b0..One Shot Mode 0b1..Repeat Mode
#define USB_GPTIMER1CTRL_GPTMODE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTMODE_SHIFT)) & USB_GPTIMER1CTRL_GPTMODE_MASK) |
GPTMODE - GPTMODE 0b0..One Shot Mode 0b1..Repeat Mode
#define USB_GPTIMER1CTRL_GPTRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRST_SHIFT)) & USB_GPTIMER1CTRL_GPTRST_MASK) |
GPTRST 0b0..No action 0b1..Load counter value from GPTLD bits in USB_n_GPTIMER0LD
#define USB_GPTIMER1CTRL_GPTRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRST_SHIFT)) & USB_GPTIMER1CTRL_GPTRST_MASK) |
GPTRST - GPTRST 0b0..No action 0b1..Load counter value from GPTLD bits in USB_n_GPTIMER0LD
#define USB_GPTIMER1CTRL_GPTRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRST_SHIFT)) & USB_GPTIMER1CTRL_GPTRST_MASK) |
GPTRST - GPTRST 0b0..No action 0b1..Load counter value from GPTLD bits in USB_n_GPTIMER0LD
#define USB_GPTIMER1CTRL_GPTRUN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRUN_SHIFT)) & USB_GPTIMER1CTRL_GPTRUN_MASK) |
GPTRUN 0b0..Stop counting 0b1..Run
#define USB_GPTIMER1CTRL_GPTRUN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRUN_SHIFT)) & USB_GPTIMER1CTRL_GPTRUN_MASK) |
GPTRUN - GPTRUN 0b0..Stop counting 0b1..Run
#define USB_GPTIMER1CTRL_GPTRUN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1CTRL_GPTRUN_SHIFT)) & USB_GPTIMER1CTRL_GPTRUN_MASK) |
GPTRUN - GPTRUN 0b0..Stop counting 0b1..Run
#define USB_GPTIMER1LD_GPTLD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1LD_GPTLD_SHIFT)) & USB_GPTIMER1LD_GPTLD_MASK) |
GPTLD - GPTLD
#define USB_GPTIMER1LD_GPTLD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_GPTIMER1LD_GPTLD_SHIFT)) & USB_GPTIMER1LD_GPTLD_MASK) |
GPTLD - GPTLD
#define USB_HCCPARAMS_ADC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ADC_SHIFT)) & USB_HCCPARAMS_ADC_MASK) |
ADC - ADC
#define USB_HCCPARAMS_ADC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ADC_SHIFT)) & USB_HCCPARAMS_ADC_MASK) |
ADC - ADC
#define USB_HCCPARAMS_ASP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ASP_SHIFT)) & USB_HCCPARAMS_ASP_MASK) |
ASP - ASP
#define USB_HCCPARAMS_ASP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_ASP_SHIFT)) & USB_HCCPARAMS_ASP_MASK) |
ASP - ASP
#define USB_HCCPARAMS_EECP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_EECP_SHIFT)) & USB_HCCPARAMS_EECP_MASK) |
EECP - EECP
#define USB_HCCPARAMS_EECP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_EECP_SHIFT)) & USB_HCCPARAMS_EECP_MASK) |
EECP - EECP
#define USB_HCCPARAMS_IST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_IST_SHIFT)) & USB_HCCPARAMS_IST_MASK) |
IST - IST
#define USB_HCCPARAMS_IST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_IST_SHIFT)) & USB_HCCPARAMS_IST_MASK) |
IST - IST
#define USB_HCCPARAMS_PFL | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_PFL_SHIFT)) & USB_HCCPARAMS_PFL_MASK) |
PFL - PFL
#define USB_HCCPARAMS_PFL | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCCPARAMS_PFL_SHIFT)) & USB_HCCPARAMS_PFL_MASK) |
PFL - PFL
#define USB_HCIVERSION_HCIVERSION | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << USB_HCIVERSION_HCIVERSION_SHIFT)) & USB_HCIVERSION_HCIVERSION_MASK) |
HCIVERSION - HCIVERSION
#define USB_HCIVERSION_HCIVERSION | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << USB_HCIVERSION_HCIVERSION_SHIFT)) & USB_HCIVERSION_HCIVERSION_MASK) |
HCIVERSION - HCIVERSION
#define USB_HCSPARAMS_N_CC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_CC_SHIFT)) & USB_HCSPARAMS_N_CC_MASK) |
N_CC 0b0000..There is no internal Companion Controller and port-ownership hand-off is not supported. 0b0001..There are internal companion controller(s) and port-ownership hand-offs is supported.
#define USB_HCSPARAMS_N_CC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_CC_SHIFT)) & USB_HCSPARAMS_N_CC_MASK) |
N_CC - N_CC 0b0000..There is no internal Companion Controller and port-ownership hand-off is not supported. 0b0001..There are internal companion controller(s) and port-ownership hand-offs is supported.
#define USB_HCSPARAMS_N_CC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_CC_SHIFT)) & USB_HCSPARAMS_N_CC_MASK) |
N_CC - N_CC 0b0000..There is no internal Companion Controller and port-ownership hand-off is not supported. 0b0001..There are internal companion controller(s) and port-ownership hand-offs is supported.
#define USB_HCSPARAMS_N_PCC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PCC_SHIFT)) & USB_HCSPARAMS_N_PCC_MASK) |
N_PCC - N_PCC
#define USB_HCSPARAMS_N_PCC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PCC_SHIFT)) & USB_HCSPARAMS_N_PCC_MASK) |
N_PCC - N_PCC
#define USB_HCSPARAMS_N_PORTS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PORTS_SHIFT)) & USB_HCSPARAMS_N_PORTS_MASK) |
N_PORTS - N_PORTS
#define USB_HCSPARAMS_N_PORTS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PORTS_SHIFT)) & USB_HCSPARAMS_N_PORTS_MASK) |
N_PORTS - N_PORTS
#define USB_HCSPARAMS_N_PTT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PTT_SHIFT)) & USB_HCSPARAMS_N_PTT_MASK) |
N_PTT - N_PTT
#define USB_HCSPARAMS_N_PTT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_PTT_SHIFT)) & USB_HCSPARAMS_N_PTT_MASK) |
N_PTT - N_PTT
#define USB_HCSPARAMS_N_TT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_TT_SHIFT)) & USB_HCSPARAMS_N_TT_MASK) |
N_TT - N_TT
#define USB_HCSPARAMS_N_TT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_N_TT_SHIFT)) & USB_HCSPARAMS_N_TT_MASK) |
N_TT - N_TT
#define USB_HCSPARAMS_PI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PI_SHIFT)) & USB_HCSPARAMS_PI_MASK) |
PI - PI
#define USB_HCSPARAMS_PI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PI_SHIFT)) & USB_HCSPARAMS_PI_MASK) |
PI - PI
#define USB_HCSPARAMS_PPC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PPC_SHIFT)) & USB_HCSPARAMS_PPC_MASK) |
PPC - PPC
#define USB_HCSPARAMS_PPC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HCSPARAMS_PPC_SHIFT)) & USB_HCSPARAMS_PPC_MASK) |
PPC - PPC
#define USB_HWDEVICE_DC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DC_SHIFT)) & USB_HWDEVICE_DC_MASK) |
DC 0b1..Supported 0b0..Not supported
#define USB_HWDEVICE_DC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DC_SHIFT)) & USB_HWDEVICE_DC_MASK) |
DC - DC 0b1..Supported 0b0..Not supported
#define USB_HWDEVICE_DC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DC_SHIFT)) & USB_HWDEVICE_DC_MASK) |
DC - DC 0b1..Supported 0b0..Not supported
#define USB_HWDEVICE_DEVEP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DEVEP_SHIFT)) & USB_HWDEVICE_DEVEP_MASK) |
DEVEP - DEVEP
#define USB_HWDEVICE_DEVEP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWDEVICE_DEVEP_SHIFT)) & USB_HWDEVICE_DEVEP_MASK) |
DEVEP - DEVEP
#define USB_HWGENERAL_PHYM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYM_SHIFT)) & USB_HWGENERAL_PHYM_MASK) |
PHYM 0b000..UTMI/UMTI+ 0b001..ULPI DDR 0b010..ULPI 0b011..Serial Only 0b100..Software programmable - reset to UTMI/UTMI+ 0b101..Software programmable - reset to ULPI DDR 0b110..Software programmable - reset to ULPI 0b111..Software programmable - reset to Serial
#define USB_HWGENERAL_PHYM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYM_SHIFT)) & USB_HWGENERAL_PHYM_MASK) |
PHYM - PHYM 0b000..UTMI/UMTI+ 0b001..ULPI DDR 0b010..ULPI 0b011..Serial Only 0b100..Software programmable - reset to UTMI/UTMI+ 0b101..Software programmable - reset to ULPI DDR 0b110..Software programmable - reset to ULPI 0b111..Software programmable - reset to Serial
#define USB_HWGENERAL_PHYM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYM_SHIFT)) & USB_HWGENERAL_PHYM_MASK) |
PHYM - PHYM 0b000..UTMI/UMTI+ 0b001..ULPI DDR 0b010..ULPI 0b011..Serial Only 0b100..Software programmable - reset to UTMI/UTMI+ 0b101..Software programmable - reset to ULPI DDR 0b110..Software programmable - reset to ULPI 0b111..Software programmable - reset to Serial
#define USB_HWGENERAL_PHYW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYW_SHIFT)) & USB_HWGENERAL_PHYW_MASK) |
PHYW 0b00..8 bit wide data bus Software non-programmable 0b01..16 bit wide data bus Software non-programmable 0b10..Reset to 8 bit wide data bus Software programmable 0b11..Reset to 16 bit wide data bus Software programmable
#define USB_HWGENERAL_PHYW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYW_SHIFT)) & USB_HWGENERAL_PHYW_MASK) |
PHYW - PHYW 0b00..8 bit wide data bus (Software non-programmable) 0b01..16 bit wide data bus (Software non-programmable) 0b10..Reset to 8 bit wide data bus (Software programmable) 0b11..Reset to 16 bit wide data bus (Software programmable)
#define USB_HWGENERAL_PHYW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_PHYW_SHIFT)) & USB_HWGENERAL_PHYW_MASK) |
PHYW - PHYW 0b00..8 bit wide data bus (Software non-programmable) 0b01..16 bit wide data bus (Software non-programmable) 0b10..Reset to 8 bit wide data bus (Software programmable) 0b11..Reset to 16 bit wide data bus (Software programmable)
#define USB_HWGENERAL_SM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_SM_SHIFT)) & USB_HWGENERAL_SM_MASK) |
SM 0b00..No Serial Engine, always use parallel signalling. 0b01..Serial Engine present, always use serial signalling for FS/LS. 0b10..Software programmable - Reset to use parallel signalling for FS/LS 0b11..Software programmable - Reset to use serial signalling for FS/LS
#define USB_HWGENERAL_SM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_SM_SHIFT)) & USB_HWGENERAL_SM_MASK) |
SM - SM 0b00..No Serial Engine, always use parallel signalling. 0b01..Serial Engine present, always use serial signalling for FS/LS. 0b10..Software programmable - Reset to use parallel signalling for FS/LS 0b11..Software programmable - Reset to use serial signalling for FS/LS
#define USB_HWGENERAL_SM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWGENERAL_SM_SHIFT)) & USB_HWGENERAL_SM_MASK) |
SM - SM 0b00..No Serial Engine, always use parallel signalling. 0b01..Serial Engine present, always use serial signalling for FS/LS. 0b10..Software programmable - Reset to use parallel signalling for FS/LS 0b11..Software programmable - Reset to use serial signalling for FS/LS
#define USB_HWHOST_HC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_HC_SHIFT)) & USB_HWHOST_HC_MASK) |
HC 0b1..Supported 0b0..Not supported
#define USB_HWHOST_HC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_HC_SHIFT)) & USB_HWHOST_HC_MASK) |
HC - HC 0b1..Supported 0b0..Not supported
#define USB_HWHOST_HC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_HC_SHIFT)) & USB_HWHOST_HC_MASK) |
HC - HC 0b1..Supported 0b0..Not supported
#define USB_HWHOST_NPORT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_NPORT_SHIFT)) & USB_HWHOST_NPORT_MASK) |
NPORT - NPORT
#define USB_HWHOST_NPORT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWHOST_NPORT_SHIFT)) & USB_HWHOST_NPORT_MASK) |
NPORT - NPORT
#define USB_HWRXBUF_RXADD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXADD_SHIFT)) & USB_HWRXBUF_RXADD_MASK) |
RXADD - RXADD
#define USB_HWRXBUF_RXADD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXADD_SHIFT)) & USB_HWRXBUF_RXADD_MASK) |
RXADD - RXADD
#define USB_HWRXBUF_RXBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXBURST_SHIFT)) & USB_HWRXBUF_RXBURST_MASK) |
RXBURST - RXBURST
#define USB_HWRXBUF_RXBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWRXBUF_RXBURST_SHIFT)) & USB_HWRXBUF_RXBURST_MASK) |
RXBURST - RXBURST
#define USB_HWTXBUF_TXBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXBURST_SHIFT)) & USB_HWTXBUF_TXBURST_MASK) |
TXBURST - TXBURST
#define USB_HWTXBUF_TXBURST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXBURST_SHIFT)) & USB_HWTXBUF_TXBURST_MASK) |
TXBURST - TXBURST
#define USB_HWTXBUF_TXCHANADD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXCHANADD_SHIFT)) & USB_HWTXBUF_TXCHANADD_MASK) |
TXCHANADD - TXCHANADD
#define USB_HWTXBUF_TXCHANADD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_HWTXBUF_TXCHANADD_SHIFT)) & USB_HWTXBUF_TXCHANADD_MASK) |
TXCHANADD - TXCHANADD
#define USB_ID_ID | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ID_ID_SHIFT)) & USB_ID_ID_MASK) |
ID - ID
#define USB_ID_ID | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ID_ID_SHIFT)) & USB_ID_ID_MASK) |
ID - ID
#define USB_ID_NID | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ID_NID_SHIFT)) & USB_ID_NID_MASK) |
NID - NID
#define USB_ID_NID | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ID_NID_SHIFT)) & USB_ID_NID_MASK) |
NID - NID
#define USB_ID_REVISION | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ID_REVISION_SHIFT)) & USB_ID_REVISION_MASK) |
REVISION - REVISION
#define USB_ID_REVISION | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_ID_REVISION_SHIFT)) & USB_ID_REVISION_MASK) |
REVISION - REVISION
#define USB_OTGSC_ASV | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASV_SHIFT)) & USB_OTGSC_ASV_MASK) |
ASV - ASV
#define USB_OTGSC_ASV | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASV_SHIFT)) & USB_OTGSC_ASV_MASK) |
ASV - ASV
#define USB_OTGSC_ASVIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIE_SHIFT)) & USB_OTGSC_ASVIE_MASK) |
ASVIE - ASVIE
#define USB_OTGSC_ASVIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIE_SHIFT)) & USB_OTGSC_ASVIE_MASK) |
ASVIE - ASVIE
#define USB_OTGSC_ASVIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIS_SHIFT)) & USB_OTGSC_ASVIS_MASK) |
ASVIS - ASVIS
#define USB_OTGSC_ASVIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ASVIS_SHIFT)) & USB_OTGSC_ASVIS_MASK) |
ASVIS - ASVIS
#define USB_OTGSC_AVV | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVV_SHIFT)) & USB_OTGSC_AVV_MASK) |
AVV - AVV
#define USB_OTGSC_AVV | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVV_SHIFT)) & USB_OTGSC_AVV_MASK) |
AVV - AVV
#define USB_OTGSC_AVVIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIE_SHIFT)) & USB_OTGSC_AVVIE_MASK) |
AVVIE - AVVIE
#define USB_OTGSC_AVVIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIE_SHIFT)) & USB_OTGSC_AVVIE_MASK) |
AVVIE - AVVIE
#define USB_OTGSC_AVVIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIS_SHIFT)) & USB_OTGSC_AVVIS_MASK) |
AVVIS - AVVIS
#define USB_OTGSC_AVVIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_AVVIS_SHIFT)) & USB_OTGSC_AVVIS_MASK) |
AVVIS - AVVIS
#define USB_OTGSC_BSE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSE_SHIFT)) & USB_OTGSC_BSE_MASK) |
BSE - BSE
#define USB_OTGSC_BSE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSE_SHIFT)) & USB_OTGSC_BSE_MASK) |
BSE - BSE
#define USB_OTGSC_BSEIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIE_SHIFT)) & USB_OTGSC_BSEIE_MASK) |
BSEIE - BSEIE
#define USB_OTGSC_BSEIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIE_SHIFT)) & USB_OTGSC_BSEIE_MASK) |
BSEIE - BSEIE
#define USB_OTGSC_BSEIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIS_SHIFT)) & USB_OTGSC_BSEIS_MASK) |
BSEIS - BSEIS
#define USB_OTGSC_BSEIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSEIS_SHIFT)) & USB_OTGSC_BSEIS_MASK) |
BSEIS - BSEIS
#define USB_OTGSC_BSV | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSV_SHIFT)) & USB_OTGSC_BSV_MASK) |
BSV - BSV
#define USB_OTGSC_BSV | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSV_SHIFT)) & USB_OTGSC_BSV_MASK) |
BSV - BSV
#define USB_OTGSC_BSVIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIE_SHIFT)) & USB_OTGSC_BSVIE_MASK) |
BSVIE - BSVIE
#define USB_OTGSC_BSVIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIE_SHIFT)) & USB_OTGSC_BSVIE_MASK) |
BSVIE - BSVIE
#define USB_OTGSC_BSVIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIS_SHIFT)) & USB_OTGSC_BSVIS_MASK) |
BSVIS - BSVIS
#define USB_OTGSC_BSVIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_BSVIS_SHIFT)) & USB_OTGSC_BSVIS_MASK) |
BSVIS - BSVIS
#define USB_OTGSC_DP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DP_SHIFT)) & USB_OTGSC_DP_MASK) |
DP - DP
#define USB_OTGSC_DP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DP_SHIFT)) & USB_OTGSC_DP_MASK) |
DP - DP
#define USB_OTGSC_DPIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIE_SHIFT)) & USB_OTGSC_DPIE_MASK) |
DPIE - DPIE
#define USB_OTGSC_DPIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIE_SHIFT)) & USB_OTGSC_DPIE_MASK) |
DPIE - DPIE
#define USB_OTGSC_DPIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIS_SHIFT)) & USB_OTGSC_DPIS_MASK) |
DPIS - DPIS
#define USB_OTGSC_DPIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPIS_SHIFT)) & USB_OTGSC_DPIS_MASK) |
DPIS - DPIS
#define USB_OTGSC_DPS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPS_SHIFT)) & USB_OTGSC_DPS_MASK) |
DPS - DPS
#define USB_OTGSC_DPS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_DPS_SHIFT)) & USB_OTGSC_DPS_MASK) |
DPS - DPS
#define USB_OTGSC_EN_1MS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_EN_1MS_SHIFT)) & USB_OTGSC_EN_1MS_MASK) |
EN_1MS - EN_1MS
#define USB_OTGSC_EN_1MS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_EN_1MS_SHIFT)) & USB_OTGSC_EN_1MS_MASK) |
EN_1MS - EN_1MS
#define USB_OTGSC_ID | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ID_SHIFT)) & USB_OTGSC_ID_MASK) |
ID - ID
#define USB_OTGSC_ID | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_ID_SHIFT)) & USB_OTGSC_ID_MASK) |
ID - ID
#define USB_OTGSC_IDIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIE_SHIFT)) & USB_OTGSC_IDIE_MASK) |
IDIE - IDIE
#define USB_OTGSC_IDIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIE_SHIFT)) & USB_OTGSC_IDIE_MASK) |
IDIE - IDIE
#define USB_OTGSC_IDIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIS_SHIFT)) & USB_OTGSC_IDIS_MASK) |
IDIS - IDIS
#define USB_OTGSC_IDIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDIS_SHIFT)) & USB_OTGSC_IDIS_MASK) |
IDIS - IDIS
#define USB_OTGSC_IDPU | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDPU_SHIFT)) & USB_OTGSC_IDPU_MASK) |
IDPU - IDPU
#define USB_OTGSC_IDPU | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_IDPU_SHIFT)) & USB_OTGSC_IDPU_MASK) |
IDPU - IDPU
#define USB_OTGSC_OT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_OT_SHIFT)) & USB_OTGSC_OT_MASK) |
OT - OT
#define USB_OTGSC_OT | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_OT_SHIFT)) & USB_OTGSC_OT_MASK) |
OT - OT
#define USB_OTGSC_STATUS_1MS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_STATUS_1MS_SHIFT)) & USB_OTGSC_STATUS_1MS_MASK) |
STATUS_1MS - STATUS_1MS
#define USB_OTGSC_STATUS_1MS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_STATUS_1MS_SHIFT)) & USB_OTGSC_STATUS_1MS_MASK) |
STATUS_1MS - STATUS_1MS
#define USB_OTGSC_TOG_1MS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_TOG_1MS_SHIFT)) & USB_OTGSC_TOG_1MS_MASK) |
TOG_1MS - TOG_1MS
#define USB_OTGSC_TOG_1MS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_TOG_1MS_SHIFT)) & USB_OTGSC_TOG_1MS_MASK) |
TOG_1MS - TOG_1MS
#define USB_OTGSC_VC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VC_SHIFT)) & USB_OTGSC_VC_MASK) |
VC - VC
#define USB_OTGSC_VC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VC_SHIFT)) & USB_OTGSC_VC_MASK) |
VC - VC
#define USB_OTGSC_VD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VD_SHIFT)) & USB_OTGSC_VD_MASK) |
VD - VD
#define USB_OTGSC_VD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_OTGSC_VD_SHIFT)) & USB_OTGSC_VD_MASK) |
VD - VD
#define USB_PERIODICLISTBASE_BASEADR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PERIODICLISTBASE_BASEADR_SHIFT)) & USB_PERIODICLISTBASE_BASEADR_MASK) |
BASEADR - BASEADR
#define USB_PERIODICLISTBASE_BASEADR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PERIODICLISTBASE_BASEADR_SHIFT)) & USB_PERIODICLISTBASE_BASEADR_MASK) |
BASEADR - BASEADR
#define USB_PORTSC1_CCS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CCS_SHIFT)) & USB_PORTSC1_CCS_MASK) |
CCS - CCS
#define USB_PORTSC1_CCS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CCS_SHIFT)) & USB_PORTSC1_CCS_MASK) |
CCS - CCS
#define USB_PORTSC1_CSC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CSC_SHIFT)) & USB_PORTSC1_CSC_MASK) |
CSC - CSC
#define USB_PORTSC1_CSC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_CSC_SHIFT)) & USB_PORTSC1_CSC_MASK) |
CSC - CSC
#define USB_PORTSC1_FPR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_FPR_SHIFT)) & USB_PORTSC1_FPR_MASK) |
FPR - FPR
#define USB_PORTSC1_FPR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_FPR_SHIFT)) & USB_PORTSC1_FPR_MASK) |
FPR - FPR
#define USB_PORTSC1_HSP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_HSP_SHIFT)) & USB_PORTSC1_HSP_MASK) |
HSP - HSP
#define USB_PORTSC1_HSP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_HSP_SHIFT)) & USB_PORTSC1_HSP_MASK) |
HSP - HSP
#define USB_PORTSC1_LS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_LS_SHIFT)) & USB_PORTSC1_LS_MASK) |
LS 0b00..SE0 0b10..J-state 0b01..K-state 0b11..Undefined
#define USB_PORTSC1_LS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_LS_SHIFT)) & USB_PORTSC1_LS_MASK) |
LS - LS 0b00..SE0 0b10..J-state 0b01..K-state 0b11..Undefined
#define USB_PORTSC1_LS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_LS_SHIFT)) & USB_PORTSC1_LS_MASK) |
LS - LS 0b00..SE0 0b10..J-state 0b01..K-state 0b11..Undefined
#define USB_PORTSC1_OCA | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCA_SHIFT)) & USB_PORTSC1_OCA_MASK) |
OCA 0b1..This port currently has an over-current condition 0b0..This port does not have an over-current condition.
#define USB_PORTSC1_OCA | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCA_SHIFT)) & USB_PORTSC1_OCA_MASK) |
OCA - OCA 0b1..This port currently has an over-current condition 0b0..This port does not have an over-current condition.
#define USB_PORTSC1_OCA | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCA_SHIFT)) & USB_PORTSC1_OCA_MASK) |
OCA - OCA 0b1..This port currently has an over-current condition 0b0..This port does not have an over-current condition.
#define USB_PORTSC1_OCC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCC_SHIFT)) & USB_PORTSC1_OCC_MASK) |
OCC - OCC
#define USB_PORTSC1_OCC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_OCC_SHIFT)) & USB_PORTSC1_OCC_MASK) |
OCC - OCC
#define USB_PORTSC1_PE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PE_SHIFT)) & USB_PORTSC1_PE_MASK) |
PE - PE
#define USB_PORTSC1_PE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PE_SHIFT)) & USB_PORTSC1_PE_MASK) |
PE - PE
#define USB_PORTSC1_PEC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PEC_SHIFT)) & USB_PORTSC1_PEC_MASK) |
PEC - PEC
#define USB_PORTSC1_PEC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PEC_SHIFT)) & USB_PORTSC1_PEC_MASK) |
PEC - PEC
#define USB_PORTSC1_PFSC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PFSC_SHIFT)) & USB_PORTSC1_PFSC_MASK) |
PFSC 0b1..Forced to full speed 0b0..Normal operation
#define USB_PORTSC1_PFSC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PFSC_SHIFT)) & USB_PORTSC1_PFSC_MASK) |
PFSC - PFSC 0b1..Forced to full speed 0b0..Normal operation
#define USB_PORTSC1_PFSC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PFSC_SHIFT)) & USB_PORTSC1_PFSC_MASK) |
PFSC - PFSC 0b1..Forced to full speed 0b0..Normal operation
#define USB_PORTSC1_PHCD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PHCD_SHIFT)) & USB_PORTSC1_PHCD_MASK) |
PHCD 0b1..Disable PHY clock 0b0..Enable PHY clock
#define USB_PORTSC1_PHCD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PHCD_SHIFT)) & USB_PORTSC1_PHCD_MASK) |
PHCD - PHCD 0b1..Disable PHY clock 0b0..Enable PHY clock
#define USB_PORTSC1_PHCD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PHCD_SHIFT)) & USB_PORTSC1_PHCD_MASK) |
PHCD - PHCD 0b1..Disable PHY clock 0b0..Enable PHY clock
#define USB_PORTSC1_PIC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PIC_SHIFT)) & USB_PORTSC1_PIC_MASK) |
PIC 0b00..Port indicators are off 0b01..Amber 0b10..Green 0b11..Undefined
#define USB_PORTSC1_PIC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PIC_SHIFT)) & USB_PORTSC1_PIC_MASK) |
PIC - PIC 0b00..Port indicators are off 0b01..Amber 0b10..Green 0b11..Undefined
#define USB_PORTSC1_PIC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PIC_SHIFT)) & USB_PORTSC1_PIC_MASK) |
PIC - PIC 0b00..Port indicators are off 0b01..Amber 0b10..Green 0b11..Undefined
#define USB_PORTSC1_PO | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PO_SHIFT)) & USB_PORTSC1_PO_MASK) |
PO - PO
#define USB_PORTSC1_PO | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PO_SHIFT)) & USB_PORTSC1_PO_MASK) |
PO - PO
#define USB_PORTSC1_PP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PP_SHIFT)) & USB_PORTSC1_PP_MASK) |
PP - PP
#define USB_PORTSC1_PP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PP_SHIFT)) & USB_PORTSC1_PP_MASK) |
PP - PP
#define USB_PORTSC1_PR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PR_SHIFT)) & USB_PORTSC1_PR_MASK) |
PR - PR
#define USB_PORTSC1_PR | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PR_SHIFT)) & USB_PORTSC1_PR_MASK) |
PR - PR
#define USB_PORTSC1_PSPD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PSPD_SHIFT)) & USB_PORTSC1_PSPD_MASK) |
PSPD 0b00..Full Speed 0b01..Low Speed 0b10..High Speed 0b11..Undefined
#define USB_PORTSC1_PSPD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PSPD_SHIFT)) & USB_PORTSC1_PSPD_MASK) |
PSPD - PSPD 0b00..Full Speed 0b01..Low Speed 0b10..High Speed 0b11..Undefined
#define USB_PORTSC1_PSPD | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PSPD_SHIFT)) & USB_PORTSC1_PSPD_MASK) |
PSPD - PSPD 0b00..Full Speed 0b01..Low Speed 0b10..High Speed 0b11..Undefined
#define USB_PORTSC1_PTC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTC_SHIFT)) & USB_PORTSC1_PTC_MASK) |
PTC 0b0000..TEST_MODE_DISABLE 0b0001..J_STATE 0b0010..K_STATE 0b0011..SE0 (host) / NAK (device) 0b0100..Packet 0b0101..FORCE_ENABLE_HS 0b0110..FORCE_ENABLE_FS 0b0111..FORCE_ENABLE_LS 0b1000-0b1111..Reserved
#define USB_PORTSC1_PTC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTC_SHIFT)) & USB_PORTSC1_PTC_MASK) |
PTC - PTC 0b0000..TEST_MODE_DISABLE 0b0001..J_STATE 0b0010..K_STATE 0b0011..SE0 (host) / NAK (device) 0b0100..Packet 0b0101..FORCE_ENABLE_HS 0b0110..FORCE_ENABLE_FS 0b0111..FORCE_ENABLE_LS 0b1000-0b1111..Reserved
#define USB_PORTSC1_PTC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTC_SHIFT)) & USB_PORTSC1_PTC_MASK) |
PTC - PTC 0b0000..TEST_MODE_DISABLE 0b0001..J_STATE 0b0010..K_STATE 0b0011..SE0 (host) / NAK (device) 0b0100..Packet 0b0101..FORCE_ENABLE_HS 0b0110..FORCE_ENABLE_FS 0b0111..FORCE_ENABLE_LS 0b1000-0b1111..Reserved
#define USB_PORTSC1_PTS_1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_1_SHIFT)) & USB_PORTSC1_PTS_1_MASK) |
PTS_1 - PTS_1
#define USB_PORTSC1_PTS_1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_1_SHIFT)) & USB_PORTSC1_PTS_1_MASK) |
PTS_1 - PTS_1
#define USB_PORTSC1_PTS_2 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_2_SHIFT)) & USB_PORTSC1_PTS_2_MASK) |
PTS_2 - PTS_2
#define USB_PORTSC1_PTS_2 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTS_2_SHIFT)) & USB_PORTSC1_PTS_2_MASK) |
PTS_2 - PTS_2
#define USB_PORTSC1_PTW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTW_SHIFT)) & USB_PORTSC1_PTW_MASK) |
PTW 0b0..Select the 8-bit UTMI interface [60MHz] 0b1..Select the 16-bit UTMI interface [30MHz]
#define USB_PORTSC1_PTW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTW_SHIFT)) & USB_PORTSC1_PTW_MASK) |
PTW - PTW 0b0..Select the 8-bit UTMI interface [60MHz] 0b1..Select the 16-bit UTMI interface [30MHz]
#define USB_PORTSC1_PTW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_PTW_SHIFT)) & USB_PORTSC1_PTW_MASK) |
PTW - PTW 0b0..Select the 8-bit UTMI interface [60MHz] 0b1..Select the 16-bit UTMI interface [30MHz]
#define USB_PORTSC1_STS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_STS_SHIFT)) & USB_PORTSC1_STS_MASK) |
STS - STS
#define USB_PORTSC1_STS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_STS_SHIFT)) & USB_PORTSC1_STS_MASK) |
STS - STS
#define USB_PORTSC1_SUSP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_SUSP_SHIFT)) & USB_PORTSC1_SUSP_MASK) |
SUSP - SUSP
#define USB_PORTSC1_SUSP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_SUSP_SHIFT)) & USB_PORTSC1_SUSP_MASK) |
SUSP - SUSP
#define USB_PORTSC1_WKCN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKCN_SHIFT)) & USB_PORTSC1_WKCN_MASK) |
WKCN - WKCN
#define USB_PORTSC1_WKCN | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKCN_SHIFT)) & USB_PORTSC1_WKCN_MASK) |
WKCN - WKCN
#define USB_PORTSC1_WKDC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKDC_SHIFT)) & USB_PORTSC1_WKDC_MASK) |
WKDC - WKDC
#define USB_PORTSC1_WKDC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKDC_SHIFT)) & USB_PORTSC1_WKDC_MASK) |
WKDC - WKDC
#define USB_PORTSC1_WKOC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKOC_SHIFT)) & USB_PORTSC1_WKOC_MASK) |
WKOC - WKOC
#define USB_PORTSC1_WKOC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_PORTSC1_WKOC_SHIFT)) & USB_PORTSC1_WKOC_MASK) |
WKOC - WKOC
#define USB_SBUSCFG_AHBBRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_SBUSCFG_AHBBRST_SHIFT)) & USB_SBUSCFG_AHBBRST_MASK) |
AHBBRST 0b000..Incremental burst of unspecified length only 0b001..INCR4 burst, then single transfer 0b010..INCR8 burst, INCR4 burst, then single transfer 0b011..INCR16 burst, INCR8 burst, INCR4 burst, then single transfer 0b100..Reserved, don't use 0b101..INCR4 burst, then incremental burst of unspecified length 0b110..INCR8 burst, INCR4 burst, then incremental burst of unspecified length 0b111..INCR16 burst, INCR8 burst, INCR4 burst, then incremental burst of unspecified length
#define USB_SBUSCFG_AHBBRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_SBUSCFG_AHBBRST_SHIFT)) & USB_SBUSCFG_AHBBRST_MASK) |
AHBBRST - AHBBRST 0b000..Incremental burst of unspecified length only 0b001..INCR4 burst, then single transfer 0b010..INCR8 burst, INCR4 burst, then single transfer 0b011..INCR16 burst, INCR8 burst, INCR4 burst, then single transfer 0b100..Reserved, don't use 0b101..INCR4 burst, then incremental burst of unspecified length 0b110..INCR8 burst, INCR4 burst, then incremental burst of unspecified length 0b111..INCR16 burst, INCR8 burst, INCR4 burst, then incremental burst of unspecified length
#define USB_SBUSCFG_AHBBRST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_SBUSCFG_AHBBRST_SHIFT)) & USB_SBUSCFG_AHBBRST_MASK) |
AHBBRST - AHBBRST 0b000..Incremental burst of unspecified length only 0b001..INCR4 burst, then single transfer 0b010..INCR8 burst, INCR4 burst, then single transfer 0b011..INCR16 burst, INCR8 burst, INCR4 burst, then single transfer 0b100..Reserved, don't use 0b101..INCR4 burst, then incremental burst of unspecified length 0b110..INCR8 burst, INCR4 burst, then incremental burst of unspecified length 0b111..INCR16 burst, INCR8 burst, INCR4 burst, then incremental burst of unspecified length
#define USB_TXFILLTUNING_TXFIFOTHRES | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXFIFOTHRES_SHIFT)) & USB_TXFILLTUNING_TXFIFOTHRES_MASK) |
TXFIFOTHRES - TXFIFOTHRES
#define USB_TXFILLTUNING_TXFIFOTHRES | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXFIFOTHRES_SHIFT)) & USB_TXFILLTUNING_TXFIFOTHRES_MASK) |
TXFIFOTHRES - TXFIFOTHRES
#define USB_TXFILLTUNING_TXSCHHEALTH | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHHEALTH_SHIFT)) & USB_TXFILLTUNING_TXSCHHEALTH_MASK) |
TXSCHHEALTH - TXSCHHEALTH
#define USB_TXFILLTUNING_TXSCHHEALTH | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHHEALTH_SHIFT)) & USB_TXFILLTUNING_TXSCHHEALTH_MASK) |
TXSCHHEALTH - TXSCHHEALTH
#define USB_TXFILLTUNING_TXSCHOH | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHOH_SHIFT)) & USB_TXFILLTUNING_TXSCHOH_MASK) |
TXSCHOH - TXSCHOH
#define USB_TXFILLTUNING_TXSCHOH | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_TXFILLTUNING_TXSCHOH_SHIFT)) & USB_TXFILLTUNING_TXSCHOH_MASK) |
TXSCHOH - TXSCHOH
#define USB_USBCMD_ASE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASE_SHIFT)) & USB_USBCMD_ASE_MASK) |
ASE 0b0..Do not process the Asynchronous Schedule. 0b1..Use the ASYNCLISTADDR register to access the Asynchronous Schedule.
#define USB_USBCMD_ASE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASE_SHIFT)) & USB_USBCMD_ASE_MASK) |
ASE - ASE 0b0..Do not process the Asynchronous Schedule. 0b1..Use the ASYNCLISTADDR register to access the Asynchronous Schedule.
#define USB_USBCMD_ASE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASE_SHIFT)) & USB_USBCMD_ASE_MASK) |
ASE - ASE 0b0..Do not process the Asynchronous Schedule. 0b1..Use the ASYNCLISTADDR register to access the Asynchronous Schedule.
#define USB_USBCMD_ASP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASP_SHIFT)) & USB_USBCMD_ASP_MASK) |
ASP - ASP
#define USB_USBCMD_ASP | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASP_SHIFT)) & USB_USBCMD_ASP_MASK) |
ASP - ASP
#define USB_USBCMD_ASPE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASPE_SHIFT)) & USB_USBCMD_ASPE_MASK) |
ASPE - ASPE
#define USB_USBCMD_ASPE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ASPE_SHIFT)) & USB_USBCMD_ASPE_MASK) |
ASPE - ASPE
#define USB_USBCMD_ATDTW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ATDTW_SHIFT)) & USB_USBCMD_ATDTW_MASK) |
ATDTW - ATDTW
#define USB_USBCMD_ATDTW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ATDTW_SHIFT)) & USB_USBCMD_ATDTW_MASK) |
ATDTW - ATDTW
#define USB_USBCMD_FS_1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_1_SHIFT)) & USB_USBCMD_FS_1_MASK) |
FS_1 - FS_1
#define USB_USBCMD_FS_1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_1_SHIFT)) & USB_USBCMD_FS_1_MASK) |
FS_1 - FS_1
#define USB_USBCMD_FS_2 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_2_SHIFT)) & USB_USBCMD_FS_2_MASK) |
FS_2 0b0..1024 elements (4096 bytes) Default value 0b1..512 elements (2048 bytes)
#define USB_USBCMD_FS_2 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_2_SHIFT)) & USB_USBCMD_FS_2_MASK) |
FS_2 - FS_2
#define USB_USBCMD_FS_2 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_FS_2_SHIFT)) & USB_USBCMD_FS_2_MASK) |
FS_2 - FS_2
#define USB_USBCMD_IAA | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_IAA_SHIFT)) & USB_USBCMD_IAA_MASK) |
IAA - IAA
#define USB_USBCMD_IAA | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_IAA_SHIFT)) & USB_USBCMD_IAA_MASK) |
IAA - IAA
#define USB_USBCMD_ITC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ITC_SHIFT)) & USB_USBCMD_ITC_MASK) |
ITC 0b00000000..Immediate (no threshold) 0b00000001..1 micro-frame 0b00000010..2 micro-frames 0b00000100..4 micro-frames 0b00001000..8 micro-frames 0b00010000..16 micro-frames 0b00100000..32 micro-frames 0b01000000..64 micro-frames
#define USB_USBCMD_ITC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ITC_SHIFT)) & USB_USBCMD_ITC_MASK) |
ITC - ITC 0b00000000..Immediate (no threshold) 0b00000001..1 micro-frame 0b00000010..2 micro-frames 0b00000100..4 micro-frames 0b00001000..8 micro-frames 0b00010000..16 micro-frames 0b00100000..32 micro-frames 0b01000000..64 micro-frames
#define USB_USBCMD_ITC | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_ITC_SHIFT)) & USB_USBCMD_ITC_MASK) |
ITC - ITC 0b00000000..Immediate (no threshold) 0b00000001..1 micro-frame 0b00000010..2 micro-frames 0b00000100..4 micro-frames 0b00001000..8 micro-frames 0b00010000..16 micro-frames 0b00100000..32 micro-frames 0b01000000..64 micro-frames
#define USB_USBCMD_PSE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_PSE_SHIFT)) & USB_USBCMD_PSE_MASK) |
PSE 0b0..Do not process the Periodic Schedule 0b1..Use the PERIODICLISTBASE register to access the Periodic Schedule.
#define USB_USBCMD_PSE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_PSE_SHIFT)) & USB_USBCMD_PSE_MASK) |
PSE - PSE 0b0..Do not process the Periodic Schedule 0b1..Use the PERIODICLISTBASE register to access the Periodic Schedule.
#define USB_USBCMD_PSE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_PSE_SHIFT)) & USB_USBCMD_PSE_MASK) |
PSE - PSE 0b0..Do not process the Periodic Schedule 0b1..Use the PERIODICLISTBASE register to access the Periodic Schedule.
#define USB_USBCMD_RS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RS_SHIFT)) & USB_USBCMD_RS_MASK) |
RS - RS
#define USB_USBCMD_RS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RS_SHIFT)) & USB_USBCMD_RS_MASK) |
RS - RS
#define USB_USBCMD_RST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RST_SHIFT)) & USB_USBCMD_RST_MASK) |
RST - RST
#define USB_USBCMD_RST | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_RST_SHIFT)) & USB_USBCMD_RST_MASK) |
RST - RST
#define USB_USBCMD_SUTW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_SUTW_SHIFT)) & USB_USBCMD_SUTW_MASK) |
SUTW - SUTW
#define USB_USBCMD_SUTW | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBCMD_SUTW_SHIFT)) & USB_USBCMD_SUTW_MASK) |
SUTW - SUTW
#define USB_USBINTR_AAE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_AAE_SHIFT)) & USB_USBINTR_AAE_MASK) |
AAE - AAE
#define USB_USBINTR_AAE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_AAE_SHIFT)) & USB_USBINTR_AAE_MASK) |
AAE - AAE
#define USB_USBINTR_FRE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_FRE_SHIFT)) & USB_USBINTR_FRE_MASK) |
FRE - FRE
#define USB_USBINTR_FRE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_FRE_SHIFT)) & USB_USBINTR_FRE_MASK) |
FRE - FRE
#define USB_USBINTR_NAKE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_NAKE_SHIFT)) & USB_USBINTR_NAKE_MASK) |
NAKE - NAKE
#define USB_USBINTR_NAKE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_NAKE_SHIFT)) & USB_USBINTR_NAKE_MASK) |
NAKE - NAKE
#define USB_USBINTR_PCE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_PCE_SHIFT)) & USB_USBINTR_PCE_MASK) |
PCE - PCE
#define USB_USBINTR_PCE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_PCE_SHIFT)) & USB_USBINTR_PCE_MASK) |
PCE - PCE
#define USB_USBINTR_SEE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SEE_SHIFT)) & USB_USBINTR_SEE_MASK) |
SEE - SEE
#define USB_USBINTR_SEE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SEE_SHIFT)) & USB_USBINTR_SEE_MASK) |
SEE - SEE
#define USB_USBINTR_SLE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SLE_SHIFT)) & USB_USBINTR_SLE_MASK) |
SLE - SLE
#define USB_USBINTR_SLE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SLE_SHIFT)) & USB_USBINTR_SLE_MASK) |
SLE - SLE
#define USB_USBINTR_SRE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SRE_SHIFT)) & USB_USBINTR_SRE_MASK) |
SRE - SRE
#define USB_USBINTR_SRE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_SRE_SHIFT)) & USB_USBINTR_SRE_MASK) |
SRE - SRE
#define USB_USBINTR_TIE0 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE0_SHIFT)) & USB_USBINTR_TIE0_MASK) |
TIE0 - TIE0
#define USB_USBINTR_TIE0 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE0_SHIFT)) & USB_USBINTR_TIE0_MASK) |
TIE0 - TIE0
#define USB_USBINTR_TIE1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE1_SHIFT)) & USB_USBINTR_TIE1_MASK) |
TIE1 - TIE1
#define USB_USBINTR_TIE1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_TIE1_SHIFT)) & USB_USBINTR_TIE1_MASK) |
TIE1 - TIE1
#define USB_USBINTR_UAIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UAIE_SHIFT)) & USB_USBINTR_UAIE_MASK) |
UAIE - UAIE
#define USB_USBINTR_UAIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UAIE_SHIFT)) & USB_USBINTR_UAIE_MASK) |
UAIE - UAIE
#define USB_USBINTR_UE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UE_SHIFT)) & USB_USBINTR_UE_MASK) |
UE - UE
#define USB_USBINTR_UE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UE_SHIFT)) & USB_USBINTR_UE_MASK) |
UE - UE
#define USB_USBINTR_UEE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UEE_SHIFT)) & USB_USBINTR_UEE_MASK) |
UEE - UEE
#define USB_USBINTR_UEE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UEE_SHIFT)) & USB_USBINTR_UEE_MASK) |
UEE - UEE
#define USB_USBINTR_ULPIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_ULPIE_SHIFT)) & USB_USBINTR_ULPIE_MASK) |
ULPIE - ULPIE
#define USB_USBINTR_ULPIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_ULPIE_SHIFT)) & USB_USBINTR_ULPIE_MASK) |
ULPIE - ULPIE
#define USB_USBINTR_UPIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UPIE_SHIFT)) & USB_USBINTR_UPIE_MASK) |
UPIE - UPIE
#define USB_USBINTR_UPIE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_UPIE_SHIFT)) & USB_USBINTR_UPIE_MASK) |
UPIE - UPIE
#define USB_USBINTR_URE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_URE_SHIFT)) & USB_USBINTR_URE_MASK) |
URE - URE
#define USB_USBINTR_URE | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBINTR_URE_SHIFT)) & USB_USBINTR_URE_MASK) |
URE - URE
#define USB_USBMODE_CM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_CM_SHIFT)) & USB_USBMODE_CM_MASK) |
CM 0b00..Idle [Default for combination host/device] 0b01..Reserved 0b10..Device Controller [Default for device only controller] 0b11..Host Controller [Default for host only controller]
#define USB_USBMODE_CM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_CM_SHIFT)) & USB_USBMODE_CM_MASK) |
CM - CM 0b00..Idle [Default for combination host/device] 0b01..Reserved 0b10..Device Controller [Default for device only controller] 0b11..Host Controller [Default for host only controller]
#define USB_USBMODE_CM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_CM_SHIFT)) & USB_USBMODE_CM_MASK) |
CM - CM 0b00..Idle [Default for combination host/device] 0b01..Reserved 0b10..Device Controller [Default for device only controller] 0b11..Host Controller [Default for host only controller]
#define USB_USBMODE_ES | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_ES_SHIFT)) & USB_USBMODE_ES_MASK) |
ES 0b0..Little Endian [Default] 0b1..Big Endian
#define USB_USBMODE_ES | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_ES_SHIFT)) & USB_USBMODE_ES_MASK) |
ES - ES 0b0..Little Endian [Default] 0b1..Big Endian
#define USB_USBMODE_ES | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_ES_SHIFT)) & USB_USBMODE_ES_MASK) |
ES - ES 0b0..Little Endian [Default] 0b1..Big Endian
#define USB_USBMODE_SDIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SDIS_SHIFT)) & USB_USBMODE_SDIS_MASK) |
SDIS - SDIS
#define USB_USBMODE_SDIS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SDIS_SHIFT)) & USB_USBMODE_SDIS_MASK) |
SDIS - SDIS
#define USB_USBMODE_SLOM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SLOM_SHIFT)) & USB_USBMODE_SLOM_MASK) |
SLOM 0b0..Setup Lockouts On (default); 0b1..Setup Lockouts Off (DCD requires use of Setup Data Buffer Tripwire in USBCMDUSB Command Register .
#define USB_USBMODE_SLOM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SLOM_SHIFT)) & USB_USBMODE_SLOM_MASK) |
SLOM - SLOM 0b0..Setup Lockouts On (default); 0b1..Setup Lockouts Off
#define USB_USBMODE_SLOM | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBMODE_SLOM_SHIFT)) & USB_USBMODE_SLOM_MASK) |
SLOM - SLOM 0b0..Setup Lockouts On (default); 0b1..Setup Lockouts Off
#define USB_USBSTS_AAI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AAI_SHIFT)) & USB_USBSTS_AAI_MASK) |
AAI - AAI
#define USB_USBSTS_AAI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AAI_SHIFT)) & USB_USBSTS_AAI_MASK) |
AAI - AAI
#define USB_USBSTS_AS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AS_SHIFT)) & USB_USBSTS_AS_MASK) |
AS - AS
#define USB_USBSTS_AS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_AS_SHIFT)) & USB_USBSTS_AS_MASK) |
AS - AS
#define USB_USBSTS_FRI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_FRI_SHIFT)) & USB_USBSTS_FRI_MASK) |
FRI - FRI
#define USB_USBSTS_FRI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_FRI_SHIFT)) & USB_USBSTS_FRI_MASK) |
FRI - FRI
#define USB_USBSTS_HCH | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_HCH_SHIFT)) & USB_USBSTS_HCH_MASK) |
HCH - HCH
#define USB_USBSTS_HCH | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_HCH_SHIFT)) & USB_USBSTS_HCH_MASK) |
HCH - HCH
#define USB_USBSTS_NAKI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_NAKI_SHIFT)) & USB_USBSTS_NAKI_MASK) |
NAKI - NAKI
#define USB_USBSTS_NAKI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_NAKI_SHIFT)) & USB_USBSTS_NAKI_MASK) |
NAKI - NAKI
#define USB_USBSTS_PCI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PCI_SHIFT)) & USB_USBSTS_PCI_MASK) |
PCI - PCI
#define USB_USBSTS_PCI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PCI_SHIFT)) & USB_USBSTS_PCI_MASK) |
PCI - PCI
#define USB_USBSTS_PS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PS_SHIFT)) & USB_USBSTS_PS_MASK) |
PS - PS
#define USB_USBSTS_PS | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_PS_SHIFT)) & USB_USBSTS_PS_MASK) |
PS - PS
#define USB_USBSTS_RCL | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_RCL_SHIFT)) & USB_USBSTS_RCL_MASK) |
RCL - RCL
#define USB_USBSTS_RCL | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_RCL_SHIFT)) & USB_USBSTS_RCL_MASK) |
RCL - RCL
#define USB_USBSTS_SEI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SEI_SHIFT)) & USB_USBSTS_SEI_MASK) |
SEI - SEI
#define USB_USBSTS_SEI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SEI_SHIFT)) & USB_USBSTS_SEI_MASK) |
SEI - SEI
#define USB_USBSTS_SLI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SLI_SHIFT)) & USB_USBSTS_SLI_MASK) |
SLI - SLI
#define USB_USBSTS_SLI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SLI_SHIFT)) & USB_USBSTS_SLI_MASK) |
SLI - SLI
#define USB_USBSTS_SRI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SRI_SHIFT)) & USB_USBSTS_SRI_MASK) |
SRI - SRI
#define USB_USBSTS_SRI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_SRI_SHIFT)) & USB_USBSTS_SRI_MASK) |
SRI - SRI
#define USB_USBSTS_TI0 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI0_SHIFT)) & USB_USBSTS_TI0_MASK) |
TI0 - TI0
#define USB_USBSTS_TI0 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI0_SHIFT)) & USB_USBSTS_TI0_MASK) |
TI0 - TI0
#define USB_USBSTS_TI1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI1_SHIFT)) & USB_USBSTS_TI1_MASK) |
TI1 - TI1
#define USB_USBSTS_TI1 | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_TI1_SHIFT)) & USB_USBSTS_TI1_MASK) |
TI1 - TI1
#define USB_USBSTS_UEI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UEI_SHIFT)) & USB_USBSTS_UEI_MASK) |
UEI - UEI
#define USB_USBSTS_UEI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UEI_SHIFT)) & USB_USBSTS_UEI_MASK) |
UEI - UEI
#define USB_USBSTS_UI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UI_SHIFT)) & USB_USBSTS_UI_MASK) |
UI - UI
#define USB_USBSTS_UI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_UI_SHIFT)) & USB_USBSTS_UI_MASK) |
UI - UI
#define USB_USBSTS_ULPII | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_ULPII_SHIFT)) & USB_USBSTS_ULPII_MASK) |
ULPII - ULPII
#define USB_USBSTS_ULPII | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_ULPII_SHIFT)) & USB_USBSTS_ULPII_MASK) |
ULPII - ULPII
#define USB_USBSTS_URI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_URI_SHIFT)) & USB_USBSTS_URI_MASK) |
URI - URI
#define USB_USBSTS_URI | ( | x | ) | (((uint32_t)(((uint32_t)(x)) << USB_USBSTS_URI_SHIFT)) & USB_USBSTS_URI_MASK) |
URI - URI