UniTAP.dev.ports.modules.pdc.pdc_capabilities
class
PcdCapsStatus:
Class PcdCapsStatus contains information about PDC capabilities.
- Get initial device role
initial_role, typePdcDeviceRole. - Get data device role
data_role, typePdcDeviceRole. - Get power device role
power_role, typePowerRole. - Get Cable Control Pull Up
cc_pull_up, typeCCPullUp. - Get current behavior, DRP try mode
behavior, typeDRPTryMode. - Get state of PR Swap
pr_swap, typebool. - Get state of DR Swap
dr_swap, typebool. - Get state of FR Swap
fr_swap, typebool. - Get state of VCONN Swap
vconn_swap, typebool. - Get state of Debug accessory
debug_accessory, typebool. - Get state of Audio accessory
audio_accessory, typebool.
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, typebool. - Get state of UCd 3.0 mode
usb30_mode, typeUSB3Mode.
class
PdcCapabilities:
Class PdcCapabilities allows controlling PDC capabilities.
- Set device initial role
set_initial_role. - Enable/Disable PR Swap
enable_pr_swap. - Enable/Disable DR Swap
enable_dr_swap. - Enable/Disable FR Swap
enable_fr_swap. - Enable/Disable VCONN Swap
enable_vconn_swap. - Set CC Pull Up
cc_pull_up. - Set DPR try mode behavior
try_behavior. - Enable/Disable Debug accessory
enable_debug_accessory. - Enable/Disable Audio accessory
enable_audio_accessory.
status: PcdCapsStatus
Class PdcCapabilities340 inherited of classPdcCapabilities allows working with PDC.
Class PdcCapabilities340 has all the PdcCapabilities functionality.
- Enable/Disable USB 2.0 bypass
usb_2_bypass_function. - Enable/Disable USB 3.0 bypass
usb_3_bypass_function.
def
usb_2_bypass_function(self, enable: bool):
Enable/Disable USB 2.0 bypass.
Arguments:
- enable (
bool)