UniTAP.dev.ports.modules.pdc.pdc_contract_control

class PowerContractControlBase:

Class PowerContractControlBase allows setting and getting field related with power contract.

PowerContractControlBase(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
give_back_flag: bool

Returns state of Give back flag.

Returns:

object of bool type

no_usb_suspend: bool

Returns state of No USB suspend flag.

Returns:

object of bool type

def fw_swap_required_current( self, fr_swap_current: UniTAP.dev.ports.modules.pdc.pdc_types.FrSwapCurrent):

Set FW Swap required current.

Arguments:
  • fr_swap_current (FrSwapCurrent)

Returns current PDO Type priority.

Returns:

object of ContractTypePriority type

max_operation_current: int

Returns current value of maximum operation current.

Returns:

object of int type

def established(self) -> bool:

Returns state of power contract (established or not).

Returns:

object of bool type

class PowerContractControl340(PowerContractControlBase):

Class PowerContractControl340 inherited from class PowerContractControlBase. Class PowerContractControl340 allows setting and getting internal and external resistance, index of power contract. Also has all the PowerContractControlBase functionality.

PowerContractControl340(pdc_io: UniTAP.dev.ports.modules.pdc.pdc_io.PDCPortIO)
selecting_by_index: bool

Returns state of Selecting by index flag.

Returns:

object of bool type

index_of_power_contract: int

Returns index of current power contract.

Returns:

object of int type

Returns internal resistance.

Returns:

object of int or InternalResistance type

Returns external resistance.

Returns:

object of int or ExternalResistance type