UniTAP.dev.ports.modules.pdc.pdc_contract_control
class
PowerContractControlBase:
Class PowerContractControlBase allows setting and getting field related with power contract.
- Set and get Give Back flag
give_back_flag, typebool. - Set and get No USB suspend
no_usb_suspend, typebool. - Set and get PDO type priority
pdo_type_priority, typeContractTypePriority. - Set and get Maximum operation current
max_operation_current, typeint. - Set FW Swap required current
fw_swap_required_current, typeFrSwapCurrent.
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)
pdo_type_priority: UniTAP.dev.ports.modules.pdc.pdc_types.ContractTypePriority
Returns current PDO Type priority.
Returns:
object of
ContractTypePrioritytype
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.
- Set and get flag Selecting power contract by index
selecting_by_index, typebool. - Set and get index of power contract
index_of_power_contract, typeint. - Set and get internal resistance
internal_resistance, typeintorInternalResistance. - Set and get external resistance
external_resistance, typeintorExternalResistance.
internal_resistance: Union[UniTAP.dev.ports.modules.pdc.pdc_types.InternalResistance, int]
Returns internal resistance.
Returns:
object of
intorInternalResistancetype
external_resistance: Union[UniTAP.dev.ports.modules.pdc.pdc_types.ExternalResistance, int]
Returns external resistance.
Returns:
object of
intorExternalResistancetype