mikroSDK Reference Manual

Macros

#define USBDCD_BASE   (0x40035000u)
 
#define USBDCD   ((USBDCD_Type *)USBDCD_BASE)
 
#define USBDCD_BASE_ADDRS   { USBDCD_BASE }
 
#define USBDCD_BASE_PTRS   { USBDCD }
 
#define USBDCD_IRQS   { USBDCD_IRQn }
 
#define USBDCD_TIMER2_CHECK_DM_MASK   0xFu
 
#define USBDCD_TIMER2_CHECK_DM_SHIFT   0
 
#define USBDCD_TIMER2_CHECK_DM(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER2_CHECK_DM_SHIFT))&USBDCD_TIMER2_CHECK_DM_MASK)
 
#define USBDCD_TIMER2_TVDPSRC_CON_MASK   0x3FF0000u
 
#define USBDCD_TIMER2_TVDPSRC_CON_SHIFT   16
 
#define USBDCD_TIMER2_TVDPSRC_CON(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER2_TVDPSRC_CON_SHIFT))&USBDCD_TIMER2_TVDPSRC_CON_MASK)
 

CONTROL - Control register

#define USBDCD_CONTROL_IACK_MASK   (0x1U)
 
#define USBDCD_CONTROL_IACK_SHIFT   (0U)
 
#define USBDCD_CONTROL_IACK(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)
 
#define USBDCD_CONTROL_IF_MASK   (0x100U)
 
#define USBDCD_CONTROL_IF_SHIFT   (8U)
 
#define USBDCD_CONTROL_IF(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)
 
#define USBDCD_CONTROL_IE_MASK   (0x10000U)
 
#define USBDCD_CONTROL_IE_SHIFT   (16U)
 
#define USBDCD_CONTROL_IE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)
 
#define USBDCD_CONTROL_START_MASK   (0x1000000U)
 
#define USBDCD_CONTROL_START_SHIFT   (24U)
 
#define USBDCD_CONTROL_START(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)
 
#define USBDCD_CONTROL_SR_MASK   (0x2000000U)
 
#define USBDCD_CONTROL_SR_SHIFT   (25U)
 
#define USBDCD_CONTROL_SR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)
 
#define USBDCD_CONTROL_IACK_MASK   0x1u
 
#define USBDCD_CONTROL_IACK_SHIFT   0
 
#define USBDCD_CONTROL_IF_MASK   0x100u
 
#define USBDCD_CONTROL_IF_SHIFT   8
 
#define USBDCD_CONTROL_IE_MASK   0x10000u
 
#define USBDCD_CONTROL_IE_SHIFT   16
 
#define USBDCD_CONTROL_START_MASK   0x1000000u
 
#define USBDCD_CONTROL_START_SHIFT   24
 
#define USBDCD_CONTROL_SR_MASK   0x2000000u
 
#define USBDCD_CONTROL_SR_SHIFT   25
 
#define USBDCD_CONTROL_IACK_MASK   (0x1U)
 
#define USBDCD_CONTROL_IACK_SHIFT   (0U)
 
#define USBDCD_CONTROL_IACK(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)
 
#define USBDCD_CONTROL_IF_MASK   (0x100U)
 
#define USBDCD_CONTROL_IF_SHIFT   (8U)
 
#define USBDCD_CONTROL_IF(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)
 
#define USBDCD_CONTROL_IE_MASK   (0x10000U)
 
#define USBDCD_CONTROL_IE_SHIFT   (16U)
 
#define USBDCD_CONTROL_IE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)
 
#define USBDCD_CONTROL_BC12_MASK   (0x20000U)
 
#define USBDCD_CONTROL_BC12_SHIFT   (17U)
 
#define USBDCD_CONTROL_BC12(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_BC12_SHIFT)) & USBDCD_CONTROL_BC12_MASK)
 
#define USBDCD_CONTROL_START_MASK   (0x1000000U)
 
#define USBDCD_CONTROL_START_SHIFT   (24U)
 
#define USBDCD_CONTROL_START(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)
 
#define USBDCD_CONTROL_SR_MASK   (0x2000000U)
 
#define USBDCD_CONTROL_SR_SHIFT   (25U)
 
#define USBDCD_CONTROL_SR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)
 
#define USBDCD_CONTROL_IACK_MASK   (0x1U)
 
#define USBDCD_CONTROL_IACK_SHIFT   (0U)
 
#define USBDCD_CONTROL_IACK(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)
 
#define USBDCD_CONTROL_IF_MASK   (0x100U)
 
#define USBDCD_CONTROL_IF_SHIFT   (8U)
 
#define USBDCD_CONTROL_IF(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)
 
#define USBDCD_CONTROL_IE_MASK   (0x10000U)
 
#define USBDCD_CONTROL_IE_SHIFT   (16U)
 
#define USBDCD_CONTROL_IE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)
 
#define USBDCD_CONTROL_BC12_MASK   (0x20000U)
 
#define USBDCD_CONTROL_BC12_SHIFT   (17U)
 
#define USBDCD_CONTROL_BC12(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_BC12_SHIFT)) & USBDCD_CONTROL_BC12_MASK)
 
#define USBDCD_CONTROL_START_MASK   (0x1000000U)
 
#define USBDCD_CONTROL_START_SHIFT   (24U)
 
#define USBDCD_CONTROL_START(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)
 
#define USBDCD_CONTROL_SR_MASK   (0x2000000U)
 
#define USBDCD_CONTROL_SR_SHIFT   (25U)
 
#define USBDCD_CONTROL_SR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)
 
#define USBDCD_CONTROL_IACK_MASK   (0x1U)
 
#define USBDCD_CONTROL_IACK_SHIFT   (0U)
 
#define USBDCD_CONTROL_IACK(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)
 
#define USBDCD_CONTROL_IF_MASK   (0x100U)
 
#define USBDCD_CONTROL_IF_SHIFT   (8U)
 
#define USBDCD_CONTROL_IF(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)
 
#define USBDCD_CONTROL_IE_MASK   (0x10000U)
 
#define USBDCD_CONTROL_IE_SHIFT   (16U)
 
#define USBDCD_CONTROL_IE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)
 
#define USBDCD_CONTROL_BC12_MASK   (0x20000U)
 
#define USBDCD_CONTROL_BC12_SHIFT   (17U)
 
#define USBDCD_CONTROL_BC12(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_BC12_SHIFT)) & USBDCD_CONTROL_BC12_MASK)
 
#define USBDCD_CONTROL_START_MASK   (0x1000000U)
 
#define USBDCD_CONTROL_START_SHIFT   (24U)
 
#define USBDCD_CONTROL_START(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)
 
#define USBDCD_CONTROL_SR_MASK   (0x2000000U)
 
#define USBDCD_CONTROL_SR_SHIFT   (25U)
 
#define USBDCD_CONTROL_SR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)
 
#define USBHSDCD_CONTROL_IACK_MASK   (0x1U)
 
#define USBHSDCD_CONTROL_IACK_SHIFT   (0U)
 
#define USBHSDCD_CONTROL_IACK(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IACK_SHIFT)) & USBHSDCD_CONTROL_IACK_MASK)
 
#define USBHSDCD_CONTROL_IF_MASK   (0x100U)
 
#define USBHSDCD_CONTROL_IF_SHIFT   (8U)
 
#define USBHSDCD_CONTROL_IF(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IF_SHIFT)) & USBHSDCD_CONTROL_IF_MASK)
 
#define USBHSDCD_CONTROL_IE_MASK   (0x10000U)
 
#define USBHSDCD_CONTROL_IE_SHIFT   (16U)
 
#define USBHSDCD_CONTROL_IE(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IE_SHIFT)) & USBHSDCD_CONTROL_IE_MASK)
 
#define USBHSDCD_CONTROL_BC12_MASK   (0x20000U)
 
#define USBHSDCD_CONTROL_BC12_SHIFT   (17U)
 
#define USBHSDCD_CONTROL_BC12(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_BC12_SHIFT)) & USBHSDCD_CONTROL_BC12_MASK)
 
#define USBHSDCD_CONTROL_START_MASK   (0x1000000U)
 
#define USBHSDCD_CONTROL_START_SHIFT   (24U)
 
#define USBHSDCD_CONTROL_START(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_START_SHIFT)) & USBHSDCD_CONTROL_START_MASK)
 
#define USBHSDCD_CONTROL_SR_MASK   (0x2000000U)
 
#define USBHSDCD_CONTROL_SR_SHIFT   (25U)
 
#define USBHSDCD_CONTROL_SR(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_SR_SHIFT)) & USBHSDCD_CONTROL_SR_MASK)
 
#define USBHSDCD_CONTROL_IACK_MASK   (0x1U)
 
#define USBHSDCD_CONTROL_IACK_SHIFT   (0U)
 
#define USBHSDCD_CONTROL_IACK(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IACK_SHIFT)) & USBHSDCD_CONTROL_IACK_MASK)
 
#define USBHSDCD_CONTROL_IF_MASK   (0x100U)
 
#define USBHSDCD_CONTROL_IF_SHIFT   (8U)
 
#define USBHSDCD_CONTROL_IF(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IF_SHIFT)) & USBHSDCD_CONTROL_IF_MASK)
 
#define USBHSDCD_CONTROL_IE_MASK   (0x10000U)
 
#define USBHSDCD_CONTROL_IE_SHIFT   (16U)
 
#define USBHSDCD_CONTROL_IE(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IE_SHIFT)) & USBHSDCD_CONTROL_IE_MASK)
 
#define USBHSDCD_CONTROL_BC12_MASK   (0x20000U)
 
#define USBHSDCD_CONTROL_BC12_SHIFT   (17U)
 
#define USBHSDCD_CONTROL_BC12(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_BC12_SHIFT)) & USBHSDCD_CONTROL_BC12_MASK)
 
#define USBHSDCD_CONTROL_START_MASK   (0x1000000U)
 
#define USBHSDCD_CONTROL_START_SHIFT   (24U)
 
#define USBHSDCD_CONTROL_START(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_START_SHIFT)) & USBHSDCD_CONTROL_START_MASK)
 
#define USBHSDCD_CONTROL_SR_MASK   (0x2000000U)
 
#define USBHSDCD_CONTROL_SR_SHIFT   (25U)
 
#define USBHSDCD_CONTROL_SR(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_SR_SHIFT)) & USBHSDCD_CONTROL_SR_MASK)
 

CLOCK - Clock register

#define USBDCD_CLOCK_CLOCK_UNIT_MASK   (0x1U)
 
#define USBDCD_CLOCK_CLOCK_UNIT_SHIFT   (0U)
 
#define USBDCD_CLOCK_CLOCK_UNIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)
 
#define USBDCD_CLOCK_CLOCK_SPEED_MASK   (0xFFCU)
 
#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT   (2U)
 
#define USBDCD_CLOCK_CLOCK_SPEED(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBDCD_CLOCK_CLOCK_SPEED_MASK)
 
#define USBDCD_CLOCK_CLOCK_UNIT_MASK   0x1u
 
#define USBDCD_CLOCK_CLOCK_UNIT_SHIFT   0
 
#define USBDCD_CLOCK_CLOCK_SPEED_MASK   0xFFCu
 
#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT   2
 
#define USBDCD_CLOCK_CLOCK_SPEED(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_CLOCK_CLOCK_SPEED_SHIFT))&USBDCD_CLOCK_CLOCK_SPEED_MASK)
 
#define USBDCD_CLOCK_CLOCK_UNIT_MASK   (0x1U)
 
#define USBDCD_CLOCK_CLOCK_UNIT_SHIFT   (0U)
 
#define USBDCD_CLOCK_CLOCK_UNIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)
 
#define USBDCD_CLOCK_CLOCK_SPEED_MASK   (0xFFCU)
 
#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT   (2U)
 
#define USBDCD_CLOCK_CLOCK_SPEED(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBDCD_CLOCK_CLOCK_SPEED_MASK)
 
#define USBDCD_CLOCK_CLOCK_UNIT_MASK   (0x1U)
 
#define USBDCD_CLOCK_CLOCK_UNIT_SHIFT   (0U)
 
#define USBDCD_CLOCK_CLOCK_UNIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)
 
#define USBDCD_CLOCK_CLOCK_SPEED_MASK   (0xFFCU)
 
#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT   (2U)
 
#define USBDCD_CLOCK_CLOCK_SPEED(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBDCD_CLOCK_CLOCK_SPEED_MASK)
 
#define USBDCD_CLOCK_CLOCK_UNIT_MASK   (0x1U)
 
#define USBDCD_CLOCK_CLOCK_UNIT_SHIFT   (0U)
 
#define USBDCD_CLOCK_CLOCK_UNIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)
 
#define USBDCD_CLOCK_CLOCK_SPEED_MASK   (0xFFCU)
 
#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT   (2U)
 
#define USBDCD_CLOCK_CLOCK_SPEED(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBDCD_CLOCK_CLOCK_SPEED_MASK)
 
#define USBHSDCD_CLOCK_CLOCK_UNIT_MASK   (0x1U)
 
#define USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT   (0U)
 
#define USBHSDCD_CLOCK_CLOCK_UNIT(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBHSDCD_CLOCK_CLOCK_UNIT_MASK)
 
#define USBHSDCD_CLOCK_CLOCK_SPEED_MASK   (0xFFCU)
 
#define USBHSDCD_CLOCK_CLOCK_SPEED_SHIFT   (2U)
 
#define USBHSDCD_CLOCK_CLOCK_SPEED(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBHSDCD_CLOCK_CLOCK_SPEED_MASK)
 
#define USBHSDCD_CLOCK_CLOCK_UNIT_MASK   (0x1U)
 
#define USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT   (0U)
 
#define USBHSDCD_CLOCK_CLOCK_UNIT(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBHSDCD_CLOCK_CLOCK_UNIT_MASK)
 
#define USBHSDCD_CLOCK_CLOCK_SPEED_MASK   (0xFFCU)
 
#define USBHSDCD_CLOCK_CLOCK_SPEED_SHIFT   (2U)
 
#define USBHSDCD_CLOCK_CLOCK_SPEED(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBHSDCD_CLOCK_CLOCK_SPEED_MASK)
 

STATUS - Status register

#define USBDCD_STATUS_SEQ_RES_MASK   (0x30000U)
 
#define USBDCD_STATUS_SEQ_RES_SHIFT   (16U)
 
#define USBDCD_STATUS_SEQ_RES(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)
 
#define USBDCD_STATUS_SEQ_STAT_MASK   (0xC0000U)
 
#define USBDCD_STATUS_SEQ_STAT_SHIFT   (18U)
 
#define USBDCD_STATUS_SEQ_STAT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)
 
#define USBDCD_STATUS_ERR_MASK   (0x100000U)
 
#define USBDCD_STATUS_ERR_SHIFT   (20U)
 
#define USBDCD_STATUS_ERR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)
 
#define USBDCD_STATUS_TO_MASK   (0x200000U)
 
#define USBDCD_STATUS_TO_SHIFT   (21U)
 
#define USBDCD_STATUS_TO(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)
 
#define USBDCD_STATUS_ACTIVE_MASK   (0x400000U)
 
#define USBDCD_STATUS_ACTIVE_SHIFT   (22U)
 
#define USBDCD_STATUS_ACTIVE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)
 
#define USBDCD_STATUS_SEQ_RES_MASK   0x30000u
 
#define USBDCD_STATUS_SEQ_RES_SHIFT   16
 
#define USBDCD_STATUS_SEQ_RES(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_STATUS_SEQ_RES_SHIFT))&USBDCD_STATUS_SEQ_RES_MASK)
 
#define USBDCD_STATUS_SEQ_STAT_MASK   0xC0000u
 
#define USBDCD_STATUS_SEQ_STAT_SHIFT   18
 
#define USBDCD_STATUS_SEQ_STAT(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_STATUS_SEQ_STAT_SHIFT))&USBDCD_STATUS_SEQ_STAT_MASK)
 
#define USBDCD_STATUS_ERR_MASK   0x100000u
 
#define USBDCD_STATUS_ERR_SHIFT   20
 
#define USBDCD_STATUS_TO_MASK   0x200000u
 
#define USBDCD_STATUS_TO_SHIFT   21
 
#define USBDCD_STATUS_ACTIVE_MASK   0x400000u
 
#define USBDCD_STATUS_ACTIVE_SHIFT   22
 
#define USBDCD_STATUS_SEQ_RES_MASK   (0x30000U)
 
#define USBDCD_STATUS_SEQ_RES_SHIFT   (16U)
 
#define USBDCD_STATUS_SEQ_RES(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)
 
#define USBDCD_STATUS_SEQ_STAT_MASK   (0xC0000U)
 
#define USBDCD_STATUS_SEQ_STAT_SHIFT   (18U)
 
#define USBDCD_STATUS_SEQ_STAT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)
 
#define USBDCD_STATUS_ERR_MASK   (0x100000U)
 
#define USBDCD_STATUS_ERR_SHIFT   (20U)
 
#define USBDCD_STATUS_ERR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)
 
#define USBDCD_STATUS_TO_MASK   (0x200000U)
 
#define USBDCD_STATUS_TO_SHIFT   (21U)
 
#define USBDCD_STATUS_TO(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)
 
#define USBDCD_STATUS_ACTIVE_MASK   (0x400000U)
 
#define USBDCD_STATUS_ACTIVE_SHIFT   (22U)
 
#define USBDCD_STATUS_ACTIVE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)
 
#define USBDCD_STATUS_SEQ_RES_MASK   (0x30000U)
 
#define USBDCD_STATUS_SEQ_RES_SHIFT   (16U)
 
#define USBDCD_STATUS_SEQ_RES(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)
 
#define USBDCD_STATUS_SEQ_STAT_MASK   (0xC0000U)
 
#define USBDCD_STATUS_SEQ_STAT_SHIFT   (18U)
 
#define USBDCD_STATUS_SEQ_STAT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)
 
#define USBDCD_STATUS_ERR_MASK   (0x100000U)
 
#define USBDCD_STATUS_ERR_SHIFT   (20U)
 
#define USBDCD_STATUS_ERR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)
 
#define USBDCD_STATUS_TO_MASK   (0x200000U)
 
#define USBDCD_STATUS_TO_SHIFT   (21U)
 
#define USBDCD_STATUS_TO(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)
 
#define USBDCD_STATUS_ACTIVE_MASK   (0x400000U)
 
#define USBDCD_STATUS_ACTIVE_SHIFT   (22U)
 
#define USBDCD_STATUS_ACTIVE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)
 
#define USBDCD_STATUS_SEQ_RES_MASK   (0x30000U)
 
#define USBDCD_STATUS_SEQ_RES_SHIFT   (16U)
 
#define USBDCD_STATUS_SEQ_RES(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)
 
#define USBDCD_STATUS_SEQ_STAT_MASK   (0xC0000U)
 
#define USBDCD_STATUS_SEQ_STAT_SHIFT   (18U)
 
#define USBDCD_STATUS_SEQ_STAT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)
 
#define USBDCD_STATUS_ERR_MASK   (0x100000U)
 
#define USBDCD_STATUS_ERR_SHIFT   (20U)
 
#define USBDCD_STATUS_ERR(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)
 
#define USBDCD_STATUS_TO_MASK   (0x200000U)
 
#define USBDCD_STATUS_TO_SHIFT   (21U)
 
#define USBDCD_STATUS_TO(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)
 
#define USBDCD_STATUS_ACTIVE_MASK   (0x400000U)
 
#define USBDCD_STATUS_ACTIVE_SHIFT   (22U)
 
#define USBDCD_STATUS_ACTIVE(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)
 
#define USBHSDCD_STATUS_SEQ_RES_MASK   (0x30000U)
 
#define USBHSDCD_STATUS_SEQ_RES_SHIFT   (16U)
 
#define USBHSDCD_STATUS_SEQ_RES(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_RES_SHIFT)) & USBHSDCD_STATUS_SEQ_RES_MASK)
 
#define USBHSDCD_STATUS_SEQ_STAT_MASK   (0xC0000U)
 
#define USBHSDCD_STATUS_SEQ_STAT_SHIFT   (18U)
 
#define USBHSDCD_STATUS_SEQ_STAT(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_STAT_SHIFT)) & USBHSDCD_STATUS_SEQ_STAT_MASK)
 
#define USBHSDCD_STATUS_ERR_MASK   (0x100000U)
 
#define USBHSDCD_STATUS_ERR_SHIFT   (20U)
 
#define USBHSDCD_STATUS_ERR(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ERR_SHIFT)) & USBHSDCD_STATUS_ERR_MASK)
 
#define USBHSDCD_STATUS_TO_MASK   (0x200000U)
 
#define USBHSDCD_STATUS_TO_SHIFT   (21U)
 
#define USBHSDCD_STATUS_TO(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_TO_SHIFT)) & USBHSDCD_STATUS_TO_MASK)
 
#define USBHSDCD_STATUS_ACTIVE_MASK   (0x400000U)
 
#define USBHSDCD_STATUS_ACTIVE_SHIFT   (22U)
 
#define USBHSDCD_STATUS_ACTIVE(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ACTIVE_SHIFT)) & USBHSDCD_STATUS_ACTIVE_MASK)
 
#define USBHSDCD_STATUS_SEQ_RES_MASK   (0x30000U)
 
#define USBHSDCD_STATUS_SEQ_RES_SHIFT   (16U)
 
#define USBHSDCD_STATUS_SEQ_RES(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_RES_SHIFT)) & USBHSDCD_STATUS_SEQ_RES_MASK)
 
#define USBHSDCD_STATUS_SEQ_STAT_MASK   (0xC0000U)
 
#define USBHSDCD_STATUS_SEQ_STAT_SHIFT   (18U)
 
#define USBHSDCD_STATUS_SEQ_STAT(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_STAT_SHIFT)) & USBHSDCD_STATUS_SEQ_STAT_MASK)
 
#define USBHSDCD_STATUS_ERR_MASK   (0x100000U)
 
#define USBHSDCD_STATUS_ERR_SHIFT   (20U)
 
#define USBHSDCD_STATUS_ERR(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ERR_SHIFT)) & USBHSDCD_STATUS_ERR_MASK)
 
#define USBHSDCD_STATUS_TO_MASK   (0x200000U)
 
#define USBHSDCD_STATUS_TO_SHIFT   (21U)
 
#define USBHSDCD_STATUS_TO(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_TO_SHIFT)) & USBHSDCD_STATUS_TO_MASK)
 
#define USBHSDCD_STATUS_ACTIVE_MASK   (0x400000U)
 
#define USBHSDCD_STATUS_ACTIVE_SHIFT   (22U)
 
#define USBHSDCD_STATUS_ACTIVE(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ACTIVE_SHIFT)) & USBHSDCD_STATUS_ACTIVE_MASK)
 

TIMER0 - TIMER0 register

#define USBDCD_TIMER0_TUNITCON_MASK   (0xFFFU)
 
#define USBDCD_TIMER0_TUNITCON_SHIFT   (0U)
 
#define USBDCD_TIMER0_TUNITCON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TUNITCON_SHIFT)) & USBDCD_TIMER0_TUNITCON_MASK)
 
#define USBDCD_TIMER0_TSEQ_INIT_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER0_TSEQ_INIT_SHIFT   (16U)
 
#define USBDCD_TIMER0_TSEQ_INIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBDCD_TIMER0_TSEQ_INIT_MASK)
 
#define USBDCD_TIMER0_TUNITCON_MASK   0xFFFu
 
#define USBDCD_TIMER0_TUNITCON_SHIFT   0
 
#define USBDCD_TIMER0_TUNITCON(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER0_TUNITCON_SHIFT))&USBDCD_TIMER0_TUNITCON_MASK)
 
#define USBDCD_TIMER0_TSEQ_INIT_MASK   0x3FF0000u
 
#define USBDCD_TIMER0_TSEQ_INIT_SHIFT   16
 
#define USBDCD_TIMER0_TSEQ_INIT(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER0_TSEQ_INIT_SHIFT))&USBDCD_TIMER0_TSEQ_INIT_MASK)
 
#define USBDCD_TIMER0_TUNITCON_MASK   (0xFFFU)
 
#define USBDCD_TIMER0_TUNITCON_SHIFT   (0U)
 
#define USBDCD_TIMER0_TUNITCON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TUNITCON_SHIFT)) & USBDCD_TIMER0_TUNITCON_MASK)
 
#define USBDCD_TIMER0_TSEQ_INIT_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER0_TSEQ_INIT_SHIFT   (16U)
 
#define USBDCD_TIMER0_TSEQ_INIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBDCD_TIMER0_TSEQ_INIT_MASK)
 
#define USBDCD_TIMER0_TUNITCON_MASK   (0xFFFU)
 
#define USBDCD_TIMER0_TUNITCON_SHIFT   (0U)
 
#define USBDCD_TIMER0_TUNITCON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TUNITCON_SHIFT)) & USBDCD_TIMER0_TUNITCON_MASK)
 
#define USBDCD_TIMER0_TSEQ_INIT_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER0_TSEQ_INIT_SHIFT   (16U)
 
#define USBDCD_TIMER0_TSEQ_INIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBDCD_TIMER0_TSEQ_INIT_MASK)
 
#define USBDCD_TIMER0_TUNITCON_MASK   (0xFFFU)
 
#define USBDCD_TIMER0_TUNITCON_SHIFT   (0U)
 
#define USBDCD_TIMER0_TUNITCON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TUNITCON_SHIFT)) & USBDCD_TIMER0_TUNITCON_MASK)
 
#define USBDCD_TIMER0_TSEQ_INIT_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER0_TSEQ_INIT_SHIFT   (16U)
 
#define USBDCD_TIMER0_TSEQ_INIT(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBDCD_TIMER0_TSEQ_INIT_MASK)
 
#define USBHSDCD_TIMER0_TUNITCON_MASK   (0xFFFU)
 
#define USBHSDCD_TIMER0_TUNITCON_SHIFT   (0U)
 
#define USBHSDCD_TIMER0_TUNITCON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER0_TUNITCON_SHIFT)) & USBHSDCD_TIMER0_TUNITCON_MASK)
 
#define USBHSDCD_TIMER0_TSEQ_INIT_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER0_TSEQ_INIT_SHIFT   (16U)
 
#define USBHSDCD_TIMER0_TSEQ_INIT(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBHSDCD_TIMER0_TSEQ_INIT_MASK)
 
#define USBHSDCD_TIMER0_TUNITCON_MASK   (0xFFFU)
 
#define USBHSDCD_TIMER0_TUNITCON_SHIFT   (0U)
 
#define USBHSDCD_TIMER0_TUNITCON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER0_TUNITCON_SHIFT)) & USBHSDCD_TIMER0_TUNITCON_MASK)
 
#define USBHSDCD_TIMER0_TSEQ_INIT_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER0_TSEQ_INIT_SHIFT   (16U)
 
#define USBHSDCD_TIMER0_TSEQ_INIT(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBHSDCD_TIMER0_TSEQ_INIT_MASK)
 

TIMER1 - TIMER1 register

#define USBDCD_TIMER1_TVDPSRC_ON_MASK   (0x3FFU)
 
#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT   (0U)
 
#define USBDCD_TIMER1_TVDPSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBDCD_TIMER1_TVDPSRC_ON_MASK)
 
#define USBDCD_TIMER1_TDCD_DBNC_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER1_TDCD_DBNC_SHIFT   (16U)
 
#define USBDCD_TIMER1_TDCD_DBNC(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBDCD_TIMER1_TDCD_DBNC_MASK)
 
#define USBDCD_TIMER1_TVDPSRC_ON_MASK   0x3FFu
 
#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT   0
 
#define USBDCD_TIMER1_TVDPSRC_ON(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER1_TVDPSRC_ON_SHIFT))&USBDCD_TIMER1_TVDPSRC_ON_MASK)
 
#define USBDCD_TIMER1_TDCD_DBNC_MASK   0x3FF0000u
 
#define USBDCD_TIMER1_TDCD_DBNC_SHIFT   16
 
#define USBDCD_TIMER1_TDCD_DBNC(x)   (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER1_TDCD_DBNC_SHIFT))&USBDCD_TIMER1_TDCD_DBNC_MASK)
 
#define USBDCD_TIMER1_TVDPSRC_ON_MASK   (0x3FFU)
 
#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT   (0U)
 
#define USBDCD_TIMER1_TVDPSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBDCD_TIMER1_TVDPSRC_ON_MASK)
 
#define USBDCD_TIMER1_TDCD_DBNC_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER1_TDCD_DBNC_SHIFT   (16U)
 
#define USBDCD_TIMER1_TDCD_DBNC(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBDCD_TIMER1_TDCD_DBNC_MASK)
 
#define USBDCD_TIMER1_TVDPSRC_ON_MASK   (0x3FFU)
 
#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT   (0U)
 
#define USBDCD_TIMER1_TVDPSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBDCD_TIMER1_TVDPSRC_ON_MASK)
 
#define USBDCD_TIMER1_TDCD_DBNC_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER1_TDCD_DBNC_SHIFT   (16U)
 
#define USBDCD_TIMER1_TDCD_DBNC(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBDCD_TIMER1_TDCD_DBNC_MASK)
 
#define USBDCD_TIMER1_TVDPSRC_ON_MASK   (0x3FFU)
 
#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT   (0U)
 
#define USBDCD_TIMER1_TVDPSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBDCD_TIMER1_TVDPSRC_ON_MASK)
 
#define USBDCD_TIMER1_TDCD_DBNC_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER1_TDCD_DBNC_SHIFT   (16U)
 
#define USBDCD_TIMER1_TDCD_DBNC(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBDCD_TIMER1_TDCD_DBNC_MASK)
 
#define USBHSDCD_TIMER1_TVDPSRC_ON_MASK   (0x3FFU)
 
#define USBHSDCD_TIMER1_TVDPSRC_ON_SHIFT   (0U)
 
#define USBHSDCD_TIMER1_TVDPSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBHSDCD_TIMER1_TVDPSRC_ON_MASK)
 
#define USBHSDCD_TIMER1_TDCD_DBNC_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER1_TDCD_DBNC_SHIFT   (16U)
 
#define USBHSDCD_TIMER1_TDCD_DBNC(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBHSDCD_TIMER1_TDCD_DBNC_MASK)
 
#define USBHSDCD_TIMER1_TVDPSRC_ON_MASK   (0x3FFU)
 
#define USBHSDCD_TIMER1_TVDPSRC_ON_SHIFT   (0U)
 
#define USBHSDCD_TIMER1_TVDPSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBHSDCD_TIMER1_TVDPSRC_ON_MASK)
 
#define USBHSDCD_TIMER1_TDCD_DBNC_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER1_TDCD_DBNC_SHIFT   (16U)
 
#define USBHSDCD_TIMER1_TDCD_DBNC(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBHSDCD_TIMER1_TDCD_DBNC_MASK)
 

TIMER2 - TIMER2 register

#define USBDCD_TIMER2_CHECK_DM_MASK   (0xFU)
 
#define USBDCD_TIMER2_CHECK_DM_SHIFT   (0U)
 
#define USBDCD_TIMER2_CHECK_DM(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_CHECK_DM_SHIFT)) & USBDCD_TIMER2_CHECK_DM_MASK)
 
#define USBDCD_TIMER2_TVDPSRC_CON_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER2_TVDPSRC_CON_SHIFT   (16U)
 
#define USBDCD_TIMER2_TVDPSRC_CON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_TVDPSRC_CON_SHIFT)) & USBDCD_TIMER2_TVDPSRC_CON_MASK)
 

TIMER2_BC11 - TIMER2_BC11 register

#define USBDCD_TIMER2_BC11_CHECK_DM_MASK   (0xFU)
 
#define USBDCD_TIMER2_BC11_CHECK_DM_SHIFT   (0U)
 
#define USBDCD_TIMER2_BC11_CHECK_DM(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBDCD_TIMER2_BC11_CHECK_DM_MASK)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT   (16U)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
 
#define USBDCD_TIMER2_BC11_CHECK_DM_MASK   (0xFU)
 
#define USBDCD_TIMER2_BC11_CHECK_DM_SHIFT   (0U)
 
#define USBDCD_TIMER2_BC11_CHECK_DM(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBDCD_TIMER2_BC11_CHECK_DM_MASK)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT   (16U)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
 
#define USBDCD_TIMER2_BC11_CHECK_DM_MASK   (0xFU)
 
#define USBDCD_TIMER2_BC11_CHECK_DM_SHIFT   (0U)
 
#define USBDCD_TIMER2_BC11_CHECK_DM(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBDCD_TIMER2_BC11_CHECK_DM_MASK)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT   (16U)
 
#define USBDCD_TIMER2_BC11_TVDPSRC_CON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
 
#define USBHSDCD_TIMER2_BC11_CHECK_DM_MASK   (0xFU)
 
#define USBHSDCD_TIMER2_BC11_CHECK_DM_SHIFT   (0U)
 
#define USBHSDCD_TIMER2_BC11_CHECK_DM(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBHSDCD_TIMER2_BC11_CHECK_DM_MASK)
 
#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT   (16U)
 
#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBHSDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
 
#define USBHSDCD_TIMER2_BC11_CHECK_DM_MASK   (0xFU)
 
#define USBHSDCD_TIMER2_BC11_CHECK_DM_SHIFT   (0U)
 
#define USBHSDCD_TIMER2_BC11_CHECK_DM(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBHSDCD_TIMER2_BC11_CHECK_DM_MASK)
 
#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT   (16U)
 
#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBHSDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
 

TIMER2_BC12 - TIMER2_BC12 register

#define USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK   (0x3FFU)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT   (0U)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT   (16U)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK   (0x3FFU)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT   (0U)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT   (16U)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK   (0x3FFU)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT   (0U)
 
#define USBDCD_TIMER2_BC12_TVDMSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK   (0x3FF0000U)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT   (16U)
 
#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
 
#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON_MASK   (0x3FFU)
 
#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT   (0U)
 
#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBHSDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
 
#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT   (16U)
 
#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
 
#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON_MASK   (0x3FFU)
 
#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT   (0U)
 
#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBHSDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
 
#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK   (0x3FF0000U)
 
#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT   (16U)
 
#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
 

SIGNAL_OVERRIDE - Signal Override Register

#define USBDCD_SIGNAL_OVERRIDE_PS_MASK   (0x3U)
 
#define USBDCD_SIGNAL_OVERRIDE_PS_SHIFT   (0U)
 
#define USBDCD_SIGNAL_OVERRIDE_PS(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBDCD_SIGNAL_OVERRIDE_PS_MASK)
 
#define USBDCD_SIGNAL_OVERRIDE_PS_MASK   (0x3U)
 
#define USBDCD_SIGNAL_OVERRIDE_PS_SHIFT   (0U)
 
#define USBDCD_SIGNAL_OVERRIDE_PS(x)   (((uint32_t)(((uint32_t)(x)) << USBDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBDCD_SIGNAL_OVERRIDE_PS_MASK)
 
#define USBHSDCD_SIGNAL_OVERRIDE_PS_MASK   (0x3U)
 
#define USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT   (0U)
 
#define USBHSDCD_SIGNAL_OVERRIDE_PS(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBHSDCD_SIGNAL_OVERRIDE_PS_MASK)
 
#define USBHSDCD_SIGNAL_OVERRIDE_PS_MASK   (0x3U)
 
#define USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT   (0U)
 
#define USBHSDCD_SIGNAL_OVERRIDE_PS(x)   (((uint32_t)(((uint32_t)(x)) << USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBHSDCD_SIGNAL_OVERRIDE_PS_MASK)
 

Macro Definition Documentation

◆ USBDCD

#define USBDCD   ((USBDCD_Type *)USBDCD_BASE)

Peripheral USBDCD base pointer

◆ USBDCD_BASE

#define USBDCD_BASE   (0x40035000u)

Peripheral USBDCD base address

◆ USBDCD_BASE_ADDRS

#define USBDCD_BASE_ADDRS   { USBDCD_BASE }

Array initializer of USBDCD peripheral base addresses

◆ USBDCD_BASE_PTRS

#define USBDCD_BASE_PTRS   { USBDCD }

Array initializer of USBDCD peripheral base pointers

◆ USBDCD_CLOCK_CLOCK_UNIT [1/4]

#define USBDCD_CLOCK_CLOCK_UNIT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)

CLOCK_UNIT - Unit of Measurement Encoding for Clock Speed 0b0..kHz Speed (between 1 kHz and 1023 kHz) 0b1..MHz Speed (between 1 MHz and 1023 MHz)

◆ USBDCD_CLOCK_CLOCK_UNIT [2/4]

#define USBDCD_CLOCK_CLOCK_UNIT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)

CLOCK_UNIT - Unit of Measurement Encoding for Clock Speed 0b0..kHz Speed (between 1 kHz and 1023 kHz) 0b1..MHz Speed (between 1 MHz and 1023 MHz)

◆ USBDCD_CLOCK_CLOCK_UNIT [3/4]

#define USBDCD_CLOCK_CLOCK_UNIT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)

CLOCK_UNIT - Unit of Measurement Encoding for Clock Speed 0b0..kHz Speed (between 1 kHz and 1023 kHz) 0b1..MHz Speed (between 1 MHz and 1023 MHz)

◆ USBDCD_CLOCK_CLOCK_UNIT [4/4]

#define USBDCD_CLOCK_CLOCK_UNIT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)

CLOCK_UNIT - Unit of Measurement Encoding for Clock Speed 0b0..kHz Speed (between 1 kHz and 1023 kHz) 0b1..MHz Speed (between 1 MHz and 1023 MHz)

◆ USBDCD_CONTROL_BC12 [1/3]

#define USBDCD_CONTROL_BC12 ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_BC12_SHIFT)) & USBDCD_CONTROL_BC12_MASK)

BC12 0b0..Compatible with BC1.1 (default) 0b1..Compatible with BC1.2

◆ USBDCD_CONTROL_BC12 [2/3]

#define USBDCD_CONTROL_BC12 ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_BC12_SHIFT)) & USBDCD_CONTROL_BC12_MASK)

BC12 0b0..Compatible with BC1.1 (default) 0b1..Compatible with BC1.2

◆ USBDCD_CONTROL_BC12 [3/3]

#define USBDCD_CONTROL_BC12 ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_BC12_SHIFT)) & USBDCD_CONTROL_BC12_MASK)

BC12 0b0..Compatible with BC1.1 (default) 0b1..Compatible with BC1.2

◆ USBDCD_CONTROL_IACK [1/4]

#define USBDCD_CONTROL_IACK ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)

IACK - Interrupt Acknowledge 0b0..Do not clear the interrupt. 0b1..Clear the IF bit (interrupt flag).

◆ USBDCD_CONTROL_IACK [2/4]

#define USBDCD_CONTROL_IACK ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)

IACK - Interrupt Acknowledge 0b0..Do not clear the interrupt. 0b1..Clear the IF bit (interrupt flag).

◆ USBDCD_CONTROL_IACK [3/4]

#define USBDCD_CONTROL_IACK ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)

IACK - Interrupt Acknowledge 0b0..Do not clear the interrupt. 0b1..Clear the IF bit (interrupt flag).

◆ USBDCD_CONTROL_IACK [4/4]

#define USBDCD_CONTROL_IACK ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)

IACK - Interrupt Acknowledge 0b0..Do not clear the interrupt. 0b1..Clear the IF bit (interrupt flag).

◆ USBDCD_CONTROL_IE [1/4]

#define USBDCD_CONTROL_IE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)

IE - Interrupt Enable 0b0..Disable interrupts to the system. 0b1..Enable interrupts to the system.

◆ USBDCD_CONTROL_IE [2/4]

#define USBDCD_CONTROL_IE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)

IE - Interrupt Enable 0b0..Disable interrupts to the system. 0b1..Enable interrupts to the system.

◆ USBDCD_CONTROL_IE [3/4]

#define USBDCD_CONTROL_IE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)

IE - Interrupt Enable 0b0..Disable interrupts to the system. 0b1..Enable interrupts to the system.

◆ USBDCD_CONTROL_IE [4/4]

#define USBDCD_CONTROL_IE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)

IE - Interrupt Enable 0b0..Disable interrupts to the system. 0b1..Enable interrupts to the system.

◆ USBDCD_CONTROL_IF [1/4]

#define USBDCD_CONTROL_IF ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)

IF - Interrupt Flag 0b0..No interrupt is pending. 0b1..An interrupt is pending.

◆ USBDCD_CONTROL_IF [2/4]

#define USBDCD_CONTROL_IF ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)

IF - Interrupt Flag 0b0..No interrupt is pending. 0b1..An interrupt is pending.

◆ USBDCD_CONTROL_IF [3/4]

#define USBDCD_CONTROL_IF ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)

IF - Interrupt Flag 0b0..No interrupt is pending. 0b1..An interrupt is pending.

◆ USBDCD_CONTROL_IF [4/4]

#define USBDCD_CONTROL_IF ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)

IF - Interrupt Flag 0b0..No interrupt is pending. 0b1..An interrupt is pending.

◆ USBDCD_CONTROL_SR [1/4]

#define USBDCD_CONTROL_SR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)

SR - Software Reset 0b0..Do not perform a software reset. 0b1..Perform a software reset.

◆ USBDCD_CONTROL_SR [2/4]

#define USBDCD_CONTROL_SR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)

SR - Software Reset 0b0..Do not perform a software reset. 0b1..Perform a software reset.

◆ USBDCD_CONTROL_SR [3/4]

#define USBDCD_CONTROL_SR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)

SR - Software Reset 0b0..Do not perform a software reset. 0b1..Perform a software reset.

◆ USBDCD_CONTROL_SR [4/4]

#define USBDCD_CONTROL_SR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)

SR - Software Reset 0b0..Do not perform a software reset. 0b1..Perform a software reset.

◆ USBDCD_CONTROL_START [1/4]

#define USBDCD_CONTROL_START ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)

START - Start Change Detection Sequence 0b0..Do not start the sequence. Writes of this value have no effect. 0b1..Initiate the charger detection sequence. If the sequence is already running, writes of this value have no effect.

◆ USBDCD_CONTROL_START [2/4]

#define USBDCD_CONTROL_START ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)

START - Start Change Detection Sequence 0b0..Do not start the sequence. Writes of this value have no effect. 0b1..Initiate the charger detection sequence. If the sequence is already running, writes of this value have no effect.

◆ USBDCD_CONTROL_START [3/4]

#define USBDCD_CONTROL_START ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)

START - Start Change Detection Sequence 0b0..Do not start the sequence. Writes of this value have no effect. 0b1..Initiate the charger detection sequence. If the sequence is already running, writes of this value have no effect.

◆ USBDCD_CONTROL_START [4/4]

#define USBDCD_CONTROL_START ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)

START - Start Change Detection Sequence 0b0..Do not start the sequence. Writes of this value have no effect. 0b1..Initiate the charger detection sequence. If the sequence is already running, writes of this value have no effect.

◆ USBDCD_IRQS

#define USBDCD_IRQS   { USBDCD_IRQn }

Interrupt vectors for the USBDCD peripheral type

◆ USBDCD_SIGNAL_OVERRIDE_PS [1/2]

#define USBDCD_SIGNAL_OVERRIDE_PS ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBDCD_SIGNAL_OVERRIDE_PS_MASK)

PS - Phase Selection 0b00..No overrides. Bit field must remain at this value during normal USB data communication to prevent unexpected conditions on USB_DP and USB_DM pins. (Default) 0b01..Reserved, not for customer use. 0b10..Enables VDP_SRC voltage source for the USB_DP pin and IDM_SINK current source for the USB_DM pin. 0b11..Reserved, not for customer use.

◆ USBDCD_SIGNAL_OVERRIDE_PS [2/2]

#define USBDCD_SIGNAL_OVERRIDE_PS ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBDCD_SIGNAL_OVERRIDE_PS_MASK)

PS - Phase Selection 0b00..No overrides. Bit field must remain at this value during normal USB data communication to prevent unexpected conditions on USB_DP and USB_DM pins. (Default) 0b01..Reserved, not for customer use. 0b10..Enables VDP_SRC voltage source for the USB_DP pin and IDM_SINK current source for the USB_DM pin. 0b11..Reserved, not for customer use.

◆ USBDCD_STATUS_ACTIVE [1/4]

#define USBDCD_STATUS_ACTIVE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)

ACTIVE - Active Status Indicator 0b0..The sequence is not running. 0b1..The sequence is running.

◆ USBDCD_STATUS_ACTIVE [2/4]

#define USBDCD_STATUS_ACTIVE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)

ACTIVE - Active Status Indicator 0b0..The sequence is not running. 0b1..The sequence is running.

◆ USBDCD_STATUS_ACTIVE [3/4]

#define USBDCD_STATUS_ACTIVE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)

ACTIVE - Active Status Indicator 0b0..The sequence is not running. 0b1..The sequence is running.

◆ USBDCD_STATUS_ACTIVE [4/4]

#define USBDCD_STATUS_ACTIVE ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)

ACTIVE - Active Status Indicator 0b0..The sequence is not running. 0b1..The sequence is running.

◆ USBDCD_STATUS_ERR [1/4]

#define USBDCD_STATUS_ERR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)

ERR - Error Flag 0b0..No sequence errors. 0b1..Error in the detection sequence. See the SEQ_STAT field to determine the phase in which the error occurred.

◆ USBDCD_STATUS_ERR [2/4]

#define USBDCD_STATUS_ERR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)

ERR - Error Flag 0b0..No sequence errors. 0b1..Error in the detection sequence. See the SEQ_STAT field to determine the phase in which the error occurred.

◆ USBDCD_STATUS_ERR [3/4]

#define USBDCD_STATUS_ERR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)

ERR - Error Flag 0b0..No sequence errors. 0b1..Error in the detection sequence. See the SEQ_STAT field to determine the phase in which the error occurred.

◆ USBDCD_STATUS_ERR [4/4]

#define USBDCD_STATUS_ERR ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)

ERR - Error Flag 0b0..No sequence errors. 0b1..Error in the detection sequence. See the SEQ_STAT field to determine the phase in which the error occurred.

◆ USBDCD_STATUS_SEQ_RES [1/5]

#define USBDCD_STATUS_SEQ_RES ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to a standard host. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a charging host or a dedicated charger. The charger type detection has not completed. 1: Attached to a charging host. The charger type detection has completed. 0b11..Attached to a dedicated charger.

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to an SDP. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a CDP or a DCP. The charger type detection has not completed. 1: Attached to a CDP. The charger type detection has completed. 0b11..Attached to a DCP.

◆ USBDCD_STATUS_SEQ_RES [2/5]

#define USBDCD_STATUS_SEQ_RES ( x)    (((uint32_t)(((uint32_t)(x))<<USBDCD_STATUS_SEQ_RES_SHIFT))&USBDCD_STATUS_SEQ_RES_MASK)

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to a standard host. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a charging host or a dedicated charger. The charger type detection has not completed. 1: Attached to a charging host. The charger type detection has completed. 0b11..Attached to a dedicated charger.

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to an SDP. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a CDP or a DCP. The charger type detection has not completed. 1: Attached to a CDP. The charger type detection has completed. 0b11..Attached to a DCP.

◆ USBDCD_STATUS_SEQ_RES [3/5]

#define USBDCD_STATUS_SEQ_RES ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to a standard host. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a charging host or a dedicated charger. The charger type detection has not completed. 1: Attached to a charging host. The charger type detection has completed. 0b11..Attached to a dedicated charger.

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to an SDP. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a CDP or a DCP. The charger type detection has not completed. 1: Attached to a CDP. The charger type detection has completed. 0b11..Attached to a DCP.

◆ USBDCD_STATUS_SEQ_RES [4/5]

#define USBDCD_STATUS_SEQ_RES ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to an SDP. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a CDP or a DCP. The charger type detection has not completed. 1: Attached to a CDP. The charger type detection has completed. 0b11..Attached to a DCP.

◆ USBDCD_STATUS_SEQ_RES [5/5]

#define USBDCD_STATUS_SEQ_RES ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to an SDP. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a CDP or a DCP. The charger type detection has not completed. 1: Attached to a CDP. The charger type detection has completed. 0b11..Attached to a DCP.

◆ USBDCD_STATUS_SEQ_STAT [1/5]

#define USBDCD_STATUS_SEQ_STAT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)

SEQ_STAT - Charger Detection Sequence Status 0b00..The module is either not enabled, or the module is enabled but the data pins have not yet been detected. 0b01..Data pin contact detection is complete. 0b10..Charging port detection is complete. 0b11..Charger type detection is complete.

◆ USBDCD_STATUS_SEQ_STAT [2/5]

#define USBDCD_STATUS_SEQ_STAT ( x)    (((uint32_t)(((uint32_t)(x))<<USBDCD_STATUS_SEQ_STAT_SHIFT))&USBDCD_STATUS_SEQ_STAT_MASK)

SEQ_STAT - Charger Detection Sequence Status 0b00..The module is either not enabled, or the module is enabled but the data pins have not yet been detected. 0b01..Data pin contact detection is complete. 0b10..Charging port detection is complete. 0b11..Charger type detection is complete.

◆ USBDCD_STATUS_SEQ_STAT [3/5]

#define USBDCD_STATUS_SEQ_STAT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)

SEQ_STAT - Charger Detection Sequence Status 0b00..The module is either not enabled, or the module is enabled but the data pins have not yet been detected. 0b01..Data pin contact detection is complete. 0b10..Charging port detection is complete. 0b11..Charger type detection is complete.

◆ USBDCD_STATUS_SEQ_STAT [4/5]

#define USBDCD_STATUS_SEQ_STAT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)

SEQ_STAT - Charger Detection Sequence Status 0b00..The module is either not enabled, or the module is enabled but the data pins have not yet been detected. 0b01..Data pin contact detection is complete. 0b10..Charging port detection is complete. 0b11..Charger type detection is complete.

◆ USBDCD_STATUS_SEQ_STAT [5/5]

#define USBDCD_STATUS_SEQ_STAT ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)

SEQ_STAT - Charger Detection Sequence Status 0b00..The module is either not enabled, or the module is enabled but the data pins have not yet been detected. 0b01..Data pin contact detection is complete. 0b10..Charging port detection is complete. 0b11..Charger type detection is complete.

◆ USBDCD_STATUS_TO [1/4]

#define USBDCD_STATUS_TO ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)

TO - Timeout Flag 0b0..The detection sequence has not been running for over 1 s. 0b1..It has been over 1 s since the data pin contact was detected and debounced.

◆ USBDCD_STATUS_TO [2/4]

#define USBDCD_STATUS_TO ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)

TO - Timeout Flag 0b0..The detection sequence has not been running for over 1 s. 0b1..It has been over 1 s since the data pin contact was detected and debounced.

◆ USBDCD_STATUS_TO [3/4]

#define USBDCD_STATUS_TO ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)

TO - Timeout Flag 0b0..The detection sequence has not been running for over 1 s. 0b1..It has been over 1 s since the data pin contact was detected and debounced.

◆ USBDCD_STATUS_TO [4/4]

#define USBDCD_STATUS_TO ( x)    (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)

TO - Timeout Flag 0b0..The detection sequence has not been running for over 1 s. 0b1..It has been over 1 s since the data pin contact was detected and debounced.

◆ USBHSDCD_CLOCK_CLOCK_UNIT [1/2]

#define USBHSDCD_CLOCK_CLOCK_UNIT ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBHSDCD_CLOCK_CLOCK_UNIT_MASK)

CLOCK_UNIT - Unit of Measurement Encoding for Clock Speed 0b0..kHz Speed (between 1 kHz and 1023 kHz) 0b1..MHz Speed (between 1 MHz and 1023 MHz)

◆ USBHSDCD_CLOCK_CLOCK_UNIT [2/2]

#define USBHSDCD_CLOCK_CLOCK_UNIT ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBHSDCD_CLOCK_CLOCK_UNIT_MASK)

CLOCK_UNIT - Unit of Measurement Encoding for Clock Speed 0b0..kHz Speed (between 1 kHz and 1023 kHz) 0b1..MHz Speed (between 1 MHz and 1023 MHz)

◆ USBHSDCD_CONTROL_BC12 [1/2]

#define USBHSDCD_CONTROL_BC12 ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_BC12_SHIFT)) & USBHSDCD_CONTROL_BC12_MASK)

BC12 0b0..Compatible with BC1.1 (default) 0b1..Compatible with BC1.2

◆ USBHSDCD_CONTROL_BC12 [2/2]

#define USBHSDCD_CONTROL_BC12 ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_BC12_SHIFT)) & USBHSDCD_CONTROL_BC12_MASK)

BC12 0b0..Compatible with BC1.1 (default) 0b1..Compatible with BC1.2

◆ USBHSDCD_CONTROL_IACK [1/2]

#define USBHSDCD_CONTROL_IACK ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IACK_SHIFT)) & USBHSDCD_CONTROL_IACK_MASK)

IACK - Interrupt Acknowledge 0b0..Do not clear the interrupt. 0b1..Clear the IF bit (interrupt flag).

◆ USBHSDCD_CONTROL_IACK [2/2]

#define USBHSDCD_CONTROL_IACK ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IACK_SHIFT)) & USBHSDCD_CONTROL_IACK_MASK)

IACK - Interrupt Acknowledge 0b0..Do not clear the interrupt. 0b1..Clear the IF bit (interrupt flag).

◆ USBHSDCD_CONTROL_IE [1/2]

#define USBHSDCD_CONTROL_IE ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IE_SHIFT)) & USBHSDCD_CONTROL_IE_MASK)

IE - Interrupt Enable 0b0..Disable interrupts to the system. 0b1..Enable interrupts to the system.

◆ USBHSDCD_CONTROL_IE [2/2]

#define USBHSDCD_CONTROL_IE ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IE_SHIFT)) & USBHSDCD_CONTROL_IE_MASK)

IE - Interrupt Enable 0b0..Disable interrupts to the system. 0b1..Enable interrupts to the system.

◆ USBHSDCD_CONTROL_IF [1/2]

#define USBHSDCD_CONTROL_IF ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IF_SHIFT)) & USBHSDCD_CONTROL_IF_MASK)

IF - Interrupt Flag 0b0..No interrupt is pending. 0b1..An interrupt is pending.

◆ USBHSDCD_CONTROL_IF [2/2]

#define USBHSDCD_CONTROL_IF ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IF_SHIFT)) & USBHSDCD_CONTROL_IF_MASK)

IF - Interrupt Flag 0b0..No interrupt is pending. 0b1..An interrupt is pending.

◆ USBHSDCD_CONTROL_SR [1/2]

#define USBHSDCD_CONTROL_SR ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_SR_SHIFT)) & USBHSDCD_CONTROL_SR_MASK)

SR - Software Reset 0b0..Do not perform a software reset. 0b1..Perform a software reset.

◆ USBHSDCD_CONTROL_SR [2/2]

#define USBHSDCD_CONTROL_SR ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_SR_SHIFT)) & USBHSDCD_CONTROL_SR_MASK)

SR - Software Reset 0b0..Do not perform a software reset. 0b1..Perform a software reset.

◆ USBHSDCD_CONTROL_START [1/2]

#define USBHSDCD_CONTROL_START ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_START_SHIFT)) & USBHSDCD_CONTROL_START_MASK)

START - Start Change Detection Sequence 0b0..Do not start the sequence. Writes of this value have no effect. 0b1..Initiate the charger detection sequence. If the sequence is already running, writes of this value have no effect.

◆ USBHSDCD_CONTROL_START [2/2]

#define USBHSDCD_CONTROL_START ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_START_SHIFT)) & USBHSDCD_CONTROL_START_MASK)

START - Start Change Detection Sequence 0b0..Do not start the sequence. Writes of this value have no effect. 0b1..Initiate the charger detection sequence. If the sequence is already running, writes of this value have no effect.

◆ USBHSDCD_SIGNAL_OVERRIDE_PS [1/2]

#define USBHSDCD_SIGNAL_OVERRIDE_PS ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBHSDCD_SIGNAL_OVERRIDE_PS_MASK)

PS - Phase Selection 0b00..No overrides. Bit field must remain at this value during normal USB data communication to prevent unexpected conditions on USB_DP and USB_DM pins. (Default) 0b01..Reserved, not for customer use. 0b10..Enables VDP_SRC voltage source for the USB_DP pin and IDM_SINK current source for the USB_DM pin. 0b11..Reserved, not for customer use.

◆ USBHSDCD_SIGNAL_OVERRIDE_PS [2/2]

#define USBHSDCD_SIGNAL_OVERRIDE_PS ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBHSDCD_SIGNAL_OVERRIDE_PS_MASK)

PS - Phase Selection 0b00..No overrides. Bit field must remain at this value during normal USB data communication to prevent unexpected conditions on USB_DP and USB_DM pins. (Default) 0b01..Reserved, not for customer use. 0b10..Enables VDP_SRC voltage source for the USB_DP pin and IDM_SINK current source for the USB_DM pin. 0b11..Reserved, not for customer use.

◆ USBHSDCD_STATUS_ACTIVE [1/2]

#define USBHSDCD_STATUS_ACTIVE ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ACTIVE_SHIFT)) & USBHSDCD_STATUS_ACTIVE_MASK)

ACTIVE - Active Status Indicator 0b0..The sequence is not running. 0b1..The sequence is running.

◆ USBHSDCD_STATUS_ACTIVE [2/2]

#define USBHSDCD_STATUS_ACTIVE ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ACTIVE_SHIFT)) & USBHSDCD_STATUS_ACTIVE_MASK)

ACTIVE - Active Status Indicator 0b0..The sequence is not running. 0b1..The sequence is running.

◆ USBHSDCD_STATUS_ERR [1/2]

#define USBHSDCD_STATUS_ERR ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ERR_SHIFT)) & USBHSDCD_STATUS_ERR_MASK)

ERR - Error Flag 0b0..No sequence errors. 0b1..Error in the detection sequence. See the SEQ_STAT field to determine the phase in which the error occurred.

◆ USBHSDCD_STATUS_ERR [2/2]

#define USBHSDCD_STATUS_ERR ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ERR_SHIFT)) & USBHSDCD_STATUS_ERR_MASK)

ERR - Error Flag 0b0..No sequence errors. 0b1..Error in the detection sequence. See the SEQ_STAT field to determine the phase in which the error occurred.

◆ USBHSDCD_STATUS_SEQ_RES [1/2]

#define USBHSDCD_STATUS_SEQ_RES ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_RES_SHIFT)) & USBHSDCD_STATUS_SEQ_RES_MASK)

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to an SDP. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a CDP or a DCP. The charger type detection has not completed. 1: Attached to a CDP. The charger type detection has completed. 0b11..Attached to a DCP.

◆ USBHSDCD_STATUS_SEQ_RES [2/2]

#define USBHSDCD_STATUS_SEQ_RES ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_RES_SHIFT)) & USBHSDCD_STATUS_SEQ_RES_MASK)

SEQ_RES - Charger Detection Sequence Results 0b00..No results to report. 0b01..Attached to an SDP. Must comply with USB 2.0 by drawing only 2.5 mA (max) until connected. 0b10..Attached to a charging port. The exact meaning depends on bit 18: 0: Attached to either a CDP or a DCP. The charger type detection has not completed. 1: Attached to a CDP. The charger type detection has completed. 0b11..Attached to a DCP.

◆ USBHSDCD_STATUS_SEQ_STAT [1/2]

#define USBHSDCD_STATUS_SEQ_STAT ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_STAT_SHIFT)) & USBHSDCD_STATUS_SEQ_STAT_MASK)

SEQ_STAT - Charger Detection Sequence Status 0b00..The module is either not enabled, or the module is enabled but the data pins have not yet been detected. 0b01..Data pin contact detection is complete. 0b10..Charging port detection is complete. 0b11..Charger type detection is complete.

◆ USBHSDCD_STATUS_SEQ_STAT [2/2]

#define USBHSDCD_STATUS_SEQ_STAT ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_STAT_SHIFT)) & USBHSDCD_STATUS_SEQ_STAT_MASK)

SEQ_STAT - Charger Detection Sequence Status 0b00..The module is either not enabled, or the module is enabled but the data pins have not yet been detected. 0b01..Data pin contact detection is complete. 0b10..Charging port detection is complete. 0b11..Charger type detection is complete.

◆ USBHSDCD_STATUS_TO [1/2]

#define USBHSDCD_STATUS_TO ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_TO_SHIFT)) & USBHSDCD_STATUS_TO_MASK)

TO - Timeout Flag 0b0..The detection sequence has not been running for over 1 s. 0b1..It has been over 1 s since the data pin contact was detected and debounced.

◆ USBHSDCD_STATUS_TO [2/2]

#define USBHSDCD_STATUS_TO ( x)    (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_TO_SHIFT)) & USBHSDCD_STATUS_TO_MASK)

TO - Timeout Flag 0b0..The detection sequence has not been running for over 1 s. 0b1..It has been over 1 s since the data pin contact was detected and debounced.