UniTAP.dev.ports.modules.pdc.pdo_types
class
PdoTypeEnum(enum.IntEnum):
Class PdoTypeEnum contains all possible variants of PDO types.
Fixed =
<PdoTypeEnum.Fixed: 0>
Battery =
<PdoTypeEnum.Battery: 1>
Variable =
<PdoTypeEnum.Variable: 2>
Disabled =
<PdoTypeEnum.Disabled: 3>
Mandatory =
<PdoTypeEnum.Mandatory: 4>
Inherited Members
- enum.Enum
- name
- value
- builtins.int
- conjugate
- bit_length
- bit_count
- to_bytes
- from_bytes
- as_integer_ratio
- real
- imag
- numerator
- denominator
class
PdoSide(enum.IntEnum):
Class PdoTypeEnum contains all possible variants of PDO side.
Sink =
<PdoSide.Sink: 0>
Source =
<PdoSide.Source: 1>
Inherited Members
- enum.Enum
- name
- value
- builtins.int
- conjugate
- bit_length
- bit_count
- to_bytes
- from_bytes
- as_integer_ratio
- real
- imag
- numerator
- denominator
class
PeakCurrent(enum.IntEnum):
Class PdoTypeEnum contains all possible variants of peak current for PDO.
Percent_100 =
<PeakCurrent.Percent_100: 0>
Percent_110 =
<PeakCurrent.Percent_110: 1>
Percent_125 =
<PeakCurrent.Percent_125: 2>
Percent_150 =
<PeakCurrent.Percent_150: 3>
Inherited Members
- enum.Enum
- name
- value
- builtins.int
- conjugate
- bit_length
- bit_count
- to_bytes
- from_bytes
- as_integer_ratio
- real
- imag
- numerator
- denominator
class
FixedPdoSource:
Class FixedPdoSource contains information about Fixed PDO on Source side.
- Set and get maximum current
max_current, typeint. - Set and get voltage
voltage, typeint. - Set and get peak_current
peak_current, typePeakCurrent. - Set and get dual data role flag
dual_data_role, typebool. - Set and get usb communication flag
usb_communication, typebool. - Set and get unconstrained power flag
unconstrained_power, typebool. - Set and get higher capability flag
higher_capability, typebool. - Set and get dual power role flag
dual_power_role, typebool. - Get PDO type
pdo_type, typePdoTypeEnum.
class
VariablePdo:
Class VariablePdo contains information about Fixed PDO on Sink and Source side.
- Set and get maximum current
max_current, typeint. - Set and get minimum voltage
min_voltage, typeint. - Set and get maximum voltage
max_voltage, typebool. - Get PDO type
pdo_type, typePdoTypeEnum.
class
BatteryPdo:
Class BatteryPdo contains information about Fixed PDO on Sink and Source side.
- Set and get maximum power
max_power, typeint. - Set and get minimum voltage
min_voltage, typeint. - Set and get maximum voltage
max_voltage, typebool. - Get PDO type
pdo_type, typePdoTypeEnum.
class
FixedPdoSink:
Class FixedPdoSink contains information about Fixed PDO on Sink side.
- Set and get maximum current
max_current, typeint. - Set and get voltage
voltage, typeint. - Set and get dual data role flag
dual_data_role, typebool. - Set and get usb communication flag
usb_communication, typebool. - Set and get unconstrained power flag
unconstrained_power, typebool. - Set and get higher capability flag
higher_capability, typebool. - Set and get dual power role flag
dual_power_role, typebool. - Get PDO type
pdo_type, typePdoTypeEnum.