Gate Pin¶
-
class
hal_py.
GatePin
¶ Bases:
hal_py.GateBasePin
The pin of a gate type. Each pin has a name, a direction, and a type.
-
direction
¶ The direction of the pin.
Type: hal_py.PinDirection
-
get_direction
(self: hal_py.GateBasePin) → hal_py.PinDirection¶ Get the direction of the pin.
Returns: The direction of the pin. Return type: hal_py.PinDirection
-
get_group
(self: hal_py.GateBasePin) → Tuple[hal::PinGroup<hal::GatePin>, int]¶ Get the group of the pin as well as the index of the pin within the group.
Returns: The group and the index of the pin. Return type: tuple(hal_py.GatePinGroup,int)
-
get_id
(self: hal_py.GateBasePin) → int¶ Get the ID of the gate pin. The ID is unique within a gate type.
Returns: The ID of the pin. Return type: int
-
get_name
(self: hal_py.GateBasePin) → str¶ Get the name of the pin.
Returns: The name of the pin. Return type: str
-
get_type
(self: hal_py.GateBasePin) → hal_py.PinType¶ Get the type of the pin.
Returns: The type of the pin. Return type: hal_py.PinType
-
group
¶ A tuple comprising the group of the pin as well as the index of the pin within the group.
Type: tuple(hal_py.GatePinGroup,int)
-
type
¶ The type of the pin.
Type: hal_py.PinType
-