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.
- property direction
The direction of the pin.
- Type
- get_direction(self: hal_py.GateBasePin) hal_py.PinDirection
Get the direction of the pin.
- Returns
The direction of the pin.
- Return type
- 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
- 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
- get_name(self: hal_py.GateBasePin) str
Get the name of the pin.
- Returns
The name of the pin.
- Return type
- get_type(self: hal_py.GateBasePin) hal_py.PinType
Get the type of the pin.
- Returns
The type of the pin.
- Return type
- property group
A tuple comprising the group of the pin as well as the index of the pin within the group.
- Type
- property type
The type of the pin.
- Type