DEPCMD
Device Physical Endpoint-n Command Register
This register enables software to issue physical endpoint-specific commands. This register contains command, control, and status fields relevant to the current generic command, while the DEPCMDPAR[2:0]n registers provide command parameters and return status information.
Several fields (including Command Type) are write-only, so their read values are undefined. After power-on, prior to issuing the first endpoint command, the read value of this register is undefined. In particular, the CmdAct bit may be set after power-on. In this case, it is safe to issue an endpoint command.
Module Instance | Base Address | Register Address |
---|---|---|
i_usb31_0__ahb_slave__11000000__DWC_usb31_block_dev__SEG_L4_AHB_USB1_0x0_0x100000
|
0x1100C700
|
0x1100C70C
|
Size: 32
Offset: 0xC
Access: RW
Bit Fields | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|
|||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|
|
|
|
|
|
|
DEPCMD Fields
Bit | Name | Description | Access | Reset |
---|---|---|---|---|
31:16 |
COMMANDPARAM
|
Command Parameters or Event Parameters Command Parameters (CommandParam), when this register is written: - For Start Transfer command - [31:16]: StreamID. The USB StreamID assigned to this transfer - For Start Transfer command applied to an isochronous endpoint - [31:16]: StartMicroFramNum: Indicates the (micro)frame number to which the first TRB applies. - For Update Transfer, End Transfer, and Start New Configuration commands - [22:16]: Transfer Resource Index (XferRscIdx). The hardware-assigned transfer resource index for the transfer, which was returned in response to the Start Transfer command. The application software-assigned transfer resource index for a Start New Configuration command. Event Parameters (EventParam), when this register is read: Refer to bits 31:16 in the <link:ext>08_Descriptors.fm:DEPEVT_desc,"Device Endpoint-n Events: DEPEVT"</link> table. |
RW
|
0x0
|
15:12 |
CMDSTATUS
|
Command Completion Status (CmdStatus) Additional information about the completion of this command is available in this field. The information is in the same format as bits 15:12 of the Endpoint Command Complete event, see Table 6-52 on page 521. |
RW
|
0x0
|
11 |
HIPRI_FORCERM
|
ForceRM - ForceRM: Only valid for End Transfer command - ClearPendIN: Software sets this bit to clear any pending IN transaction (on that endpoint) stuck at the lower layers when a Clear Stall command is issued. -- Only valid for Clear Stall command -- Only applicable for SS and ESS mode of operation |
RW
|
0x0
|
10 |
CMDACT
|
Command Active (CmdAct) Software sets this bit to 1 to enable the device endpoint controller to execute the generic command. The device controller sets this bit to 0 when the CmdStatus field is valid and the endpoint is ready to accept another command. This does not imply that all the effects of the previously-issued command have taken place. |
RW
|
0x0
|
9 |
reserved_9
|
Reserved |
RW
|
0x0
|
8 |
CMDIOC
|
CMDIOC Command Interrupt on Complete (CmdIOC) When this bit is set, the device controller issues a generic Endpoint Command Complete event after executing the command. Note that this interrupt is mapped to DEPCFG.IntrNum. When the DEPCFG command is executed, the command interrupt on completion goes to the interrupt pointed by the DEPCFG.IntrNum in the current command. Note: This field must not set to 1 if the DCTL.RunStop field is 0. |
RW
|
0x0
|
7:4 |
reserved_7_4
|
Reserved_7_4 |
RW
|
0x0
|
3:0 |
CMDTYP
|
Command Type Specifies the type of command the software driver is requesting the controller to perform. - 00h: Reserved - 01h: Set Endpoint Configuration - -64 or 96-bit Parameter - 02h: Set Endpoint Transfer Resource Configuration - 32-bit Parameter - 03h: Get Endpoint State - No Parameter Needed - 04h: Set Stall - No Parameter Needed - 05h: Clear Stall (see Set Stall) - No Parameter Needed - 06h: Start Transfer - 64-bit Parameter - 07h: Update Transfer - No Parameter Needed - 08h: End Transfer - No Parameter Needed - 09h: Start New Configuration - No Parameter Needed |
RW
|
0x0
|