UniTAP.dev.ports.modules.pdc.pdc_controls

class PdcControlsBase:

Class PdcControlsBase allows controlling some PDC commands:

PdcControlsBase(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
def send_pr_swap(self):

Send Power Role swap. It will be necessary to manually check that the changes have been made.

def send_dr_swap(self):

Send Dual Role swap. It will be necessary to manually check that the changes have been made.

def send_fr_swap(self):

Send Fast Role swap. It will be necessary to manually check that the changes have been made.

def send_vconn_swap(self):

Send VCONN Role swap. It will be necessary to manually check that the changes have been made.

Change cable control orientation.

Arguments:
  • orientation (CableControlOrientation)
def enable_auto_negotiate_power_contract(self, enable: bool):

Enable/Disable auto negotiate power contract.

Arguments:
  • enable (bool)
def communication_capable_as_pd_sink(self, capable: bool):

Enable/Disable communication capable as PD Sink.

Arguments:
  • capable (bool)
def communication_capable_as_pd_source(self, capable: bool):

Enable/Disable communication capable as PD Source.

Arguments:
  • capable (bool)
class PdcControls340(PdcControlsBase):

Class PdcControls340 inherited from class PdcControlsBase. Class PdcControls340 allows controlling additional commands. Also has all the PdcControlsBase functionality.

PdcControls340(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
def reset(self):

Reset device.

def attach(self, attach: bool):

Attach/DeAttach device.

def reconnect(self):

Reconnect device.

Returns:

result of reconnection, type bool.

def et_cable_diff_pairs( self, differential_pair: UniTAP.dev.ports.modules.pdc.pdc_types.DifferentialPair):

Set ET cable different pairs.

Arguments:
  • differential_pair (DifferentialPair)
class PdcControls424(PdcControlsBase):

Class PdcControls424 inherited from class PdcControlsBase. Class PdcControls424 allows controlling additional commands. Also has all the PdcControlsBase functionality.

PdcControls424(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
def reset(self):

Reset device.

def reconnect(self) -> bool:

Reconnect device.

Returns:

result of reconnection, type bool.

class PdcControls500(PdcControlsBase):

Class PdcControls500 inherited from class PdcControlsBase. Class PdcControls500 allows controlling additional commands. Also has all the PdcControlsBase functionality.

PdcControls500(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
def reconnect(self) -> bool:

Reconnect device.

Returns:

result of reconnection, type bool.

def attach(self, attach: bool):

Attach/DeAttach device.

def enable_internal_load_10_ohm(self, enable: bool):

Enable/Disable internal resistance 10 Ohm.

Arguments:
  • enable (bool)