UCSI_USB_OPERATION_ROLE enumeration (ucmucsispec.h)

Used in the SET_UOR command. The SET_UOR command is used to set the USB operation role dictated by the OS Policy Manager (OPM), for the current connection.

Syntax

typedef enum _UCSI_USB_OPERATION_ROLE {
  UcsiUsbOperationRoleDfp = 0x1,
  UcsiUsbOperationRoleUfp = 0x2,
  UcsiUsbOperationRoleAcceptSwap = 0x4,
  UcsiUsbOperationRoleDfpAcceptSwap = 0x5,
  UcsiUsbOperationRoleUfpAcceptSwap = 0x6
} UCSI_USB_OPERATION_ROLE;

Constants

 
UcsiUsbOperationRoleDfp
Value: 0x1
The connector initiates swap to downstream-facing port (DFP), if not already operating in DFP mode.
UcsiUsbOperationRoleUfp
Value: 0x2
The connector initiates swap to upstream-facing port (UFP), if not already operating in UFP mode.
UcsiUsbOperationRoleAcceptSwap
Value: 0x4
The connector accepts USB operation role swap requests from the port partner. If this bit is cleared, connector rejects role swap requests from the port partner.
UcsiUsbOperationRoleDfpAcceptSwap
Value: 0x5
This field combines the UcsiUsbOperationRoleDfp and UcsiUsbOperationRoleAcceptSwap values.
UcsiUsbOperationRoleUfpAcceptSwap
Value: 0x6
This field combines the UcsiUsbOperationRoleUfp and UcsiUsbOperationRoleAcceptSwap values.

Remarks

For more information, see section 4.5.9 in the UCSI spec version 1.2.

Requirements

Requirement Value
Minimum KMDF version 1.27
Minimum UMDF version N/A
Header ucmucsispec.h (include UcmUcsiCx.h)

See also