UniTAP.dev.ports.modules.pdc.pdo

class Pdo:

Class Pdo describes power delivery object in PDC module. Contains information about side of PDO PdoSide and main PDO data. May have one of the available type PdoType: FixedPdoSink, FixedPdoSource, BatteryPdo, VariablePdo.

Returns current PDO type.

Returns:

object of PdoTypeEnum type

Returns current PDO side.

Returns:

object of PdoSide type

pdo_object: ~PdoType

Returns current PDO object.

Returns:

object of PdoType type

def disable_pdo(self):

Disable PDO. Will be filled with zeros.

def get_pdo_as_selected_type(self, pdo: Type[~PdoType]) -> ~PdoType:

Returns PDO object as selected new PDO type.

Arguments:
  • pdo (PdoType) - type of PDO
Returns:

object of PdoType type

def interpret_pdo_as_selected_type(self, pdo: Type[~PdoType]):

Convert (interpret) from one PDO type to another.

Arguments:
  • pdo (PdoType) - type of PDO