UniTAP.dev.ports.modules.pdc.pdc_capabilities

class PcdCapsStatus:

Class PcdCapsStatus contains information about PDC capabilities.

  • Get initial device role initial_role, type PdcDeviceRole.
  • Get data device role data_role, type PdcDeviceRole.
  • Get power device role power_role, type PowerRole.
  • Get Cable Control Pull Up cc_pull_up, type CCPullUp.
  • Get current behavior, DRP try mode behavior, type DRPTryMode.
  • Get state of PR Swap pr_swap, type bool.
  • Get state of DR Swap dr_swap, type bool.
  • Get state of FR Swap fr_swap, type bool.
  • Get state of VCONN Swap vconn_swap, type bool.
  • Get state of Debug accessory debug_accessory, type bool.
  • Get state of Audio accessory audio_accessory, type bool.
PcdCapsStatus(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)

Returns current initial role.

Returns:

object of PdcDeviceRole type

Returns current data role.

Returns:

object of PdcDeviceRole type

Returns current power role.

Returns:

object of PowerRole type

Returns current cable control pull up.

Returns:

object of CCPullUp type

Returns current behavior of DPR mode.

Returns:

object of DRPTryMode type

def pr_swap(self) -> bool:

Returns current state of PR Swap.

Returns:

object of bool type

def dr_swap(self) -> bool:

Returns current state of DR Swap.

Returns:

object of bool type

def fr_swap(self) -> bool:

Returns current state of FR Swap.

Returns:

object of bool type

def vconn_swap(self) -> bool:

Returns current state of VCONN Swap.

Returns:

object of bool type

def debug_accessory(self) -> bool:

Returns current state of Debug accessory.

Returns:

object of bool type

def audio_accessory(self) -> bool:

Returns current state of Audio accessory.

Returns:

object of bool type

class PcdCapsStatus340(PcdCapsStatus):

Class PcdCapsStatus340 inherited of classPcdCapsStatus allows working with PDC. Class PcdCapsStatus340 has all the PcdCapsStatus functionality.

  • Get state of USB 2.0 mode usb20_mode, type bool.
  • Get state of UCd 3.0 mode usb30_mode, type USB3Mode.
PcdCapsStatus340(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
def usb20_mode(self) -> bool:

Returns current state of USB 2.0 mode.

Returns:

object of bool type

Returns current state of USB 3.0 mode.

Returns:

object of USB3Mode type

class PdcCapabilities:

Class PdcCapabilities allows controlling PDC capabilities.

PdcCapabilities(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
status: PcdCapsStatus

Returns current PDC Capabilities status.

Returns:

object of PcdCapsStatus type

def set_initial_role(self, role: UniTAP.dev.ports.modules.pdc.pdc_types.PdcDeviceRole):

Set device initial role.

Arguments:
  • role (PdcDeviceRole)
def enable_pr_swap(self, enable: bool):

Enable/Disable PR Swap.

Arguments:
  • enable (bool)
def enable_dr_swap(self, enable: bool):

Enable/Disable DR Swap.

Arguments:
  • enable (bool)
def enable_fr_swap(self, enable: bool):

Enable/Disable FR Swap.

Arguments:
  • enable (bool)
def enable_vconn_swap(self, enable: bool):

Enable/Disable VCONN Swap.

Arguments:
  • enable (bool)
def cc_pull_up(self, cc_pull_up: UniTAP.dev.ports.modules.pdc.pdc_types.CCPullUp):

Set Cable Control Pull Up.

Arguments:
  • cc_pull_up (CCPullUp)
def try_behavior(self, behavior: UniTAP.dev.ports.modules.pdc.pdc_types.DRPTryMode):

Set DRP try mode behavior.

Arguments:
  • behavior (DRPTryMode)
def enable_debug_accessory(self, enable: bool):

Enable/Disable Debug Accessory.

Arguments:
  • enable (bool)
def enable_audio_accessory(self, enable: bool):

Enable/Disable Audio Accessory.

Arguments:
  • enable (bool)
class PdcCapabilities340(PdcCapabilities):

Class PdcCapabilities340 inherited of classPdcCapabilities allows working with PDC. Class PdcCapabilities340 has all the PdcCapabilities functionality.

PdcCapabilities340(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
def usb_2_bypass_function(self, enable: bool):

Enable/Disable USB 2.0 bypass.

Arguments:
  • enable (bool)
def usb_3_bypass_function(self, enable: bool):

Enable/Disable USB 3.0 bypass.

Arguments:
  • enable (bool)