tdl-xoa-driver 1.0.0b1__py3-none-any.whl → 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/METADATA +5 -126
- {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/RECORD +56 -56
- {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/WHEEL +1 -1
- xoa_driver/__init__.py +2 -2
- xoa_driver/functions/anlt.py +0 -30
- xoa_driver/functions/headers.py +312 -11
- xoa_driver/functions/mgmt.py +32 -86
- xoa_driver/functions/tools.py +13 -1
- xoa_driver/internals/commands/c_commands.py +26 -0
- xoa_driver/internals/commands/enums.py +8 -29
- xoa_driver/internals/commands/m_commands.py +0 -4
- xoa_driver/internals/commands/p_commands.py +30 -3
- xoa_driver/internals/commands/pl1_commands.py +96 -71
- xoa_driver/internals/commands/pr_commands.py +0 -8
- xoa_driver/internals/commands/ps_commands.py +0 -2
- xoa_driver/internals/commands/pt_commands.py +0 -6
- xoa_driver/internals/core/transporter/_stream.py +1 -1
- xoa_driver/internals/core/transporter/protocol/payload/base_struct.py +1 -1
- xoa_driver/internals/core/transporter/protocol/payload/descriptor.py +1 -1
- xoa_driver/internals/hli_v1/modules/base_module.py +1 -1
- xoa_driver/internals/hli_v1/modules/module_chimera.py +1 -1
- xoa_driver/internals/hli_v1/modules/module_l23ve.py +1 -1
- xoa_driver/internals/hli_v1/modules/module_l47.py +1 -1
- xoa_driver/internals/hli_v1/modules/modules_l23/module_l23_base.py +1 -1
- xoa_driver/internals/hli_v1/ports/base_port.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23.py +7 -0
- xoa_driver/internals/hli_v1/ports/port_l23/family_g.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/family_h.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/family_i.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/family_j.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/family_k.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/family_l.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/family_l1.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l23/freya_l1.py +14 -0
- xoa_driver/internals/hli_v1/ports/port_l23/pcs_pma_ghijkl.py +1 -1
- xoa_driver/internals/hli_v1/ports/port_l47/main.py +1 -1
- xoa_driver/internals/hli_v1/testers/_base_tester.py +7 -0
- xoa_driver/internals/hli_v1/testers/l47_tester.py +1 -1
- xoa_driver/internals/hli_v2/modules/base_module.py +1 -1
- xoa_driver/internals/hli_v2/modules/module_chimera.py +1 -1
- xoa_driver/internals/hli_v2/modules/module_l23ve.py +1 -1
- xoa_driver/internals/hli_v2/modules/module_l47.py +1 -1
- xoa_driver/internals/hli_v2/modules/modules_l23/module_l23_base.py +1 -1
- xoa_driver/internals/hli_v2/ports/base_port.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/family_g.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/family_h.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/family_i.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/family_j.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/family_k.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/family_l.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/family_l1.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ghijkl.py +1 -1
- xoa_driver/internals/hli_v2/ports/port_l47/main.py +1 -1
- xoa_driver/internals/hli_v2/testers/l47_tester.py +1 -1
- {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info/licenses}/LICENSE +0 -0
- {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -51,6 +51,7 @@ from xoa_driver.internals.commands import (
|
|
|
51
51
|
P_TXBURSTPERIOD,
|
|
52
52
|
P_CAPABILITIES_EXT,
|
|
53
53
|
P_IGMPV3_GROUP_RECORD_BUNDLE,
|
|
54
|
+
P_USED_TPLDID,
|
|
54
55
|
)
|
|
55
56
|
if typing.TYPE_CHECKING:
|
|
56
57
|
from xoa_driver.internals.core import interfaces as itf
|
|
@@ -520,6 +521,12 @@ class BasePortL23(base_port.BasePort[ports_state.PortL23LocalState]):
|
|
|
520
521
|
:type: MatchTermIndices
|
|
521
522
|
"""
|
|
522
523
|
|
|
524
|
+
self.used_tpld_ids = P_USED_TPLDID(conn, module_id, port_id)
|
|
525
|
+
"""TG port's used TPLD IDs.
|
|
526
|
+
|
|
527
|
+
:type: P_USED_TPLDID
|
|
528
|
+
"""
|
|
529
|
+
|
|
523
530
|
on_speed_change = functools.partialmethod(utils.on_event, P_SPEED)
|
|
524
531
|
"""Register a callback to the event that the port's speed changes."""
|
|
525
532
|
|
|
@@ -41,6 +41,8 @@ from xoa_driver.internals.commands import (
|
|
|
41
41
|
PL1_PRESET_CONFIG_LEVEL,
|
|
42
42
|
PL1_PRESET_RESET,
|
|
43
43
|
PP_PRBSTYPE,
|
|
44
|
+
PL1_PNSWAP_RX,
|
|
45
|
+
PL1_PNSWAP_TX,
|
|
44
46
|
)
|
|
45
47
|
from .pcs_pma_ghijkl import (
|
|
46
48
|
Prbs,
|
|
@@ -63,6 +65,18 @@ class FreyaPMA:
|
|
|
63
65
|
:type: PP_GRAYCODING
|
|
64
66
|
"""
|
|
65
67
|
|
|
68
|
+
self.pn_swap_rx = PL1_PNSWAP_RX(conn, module_id, port_id, serdes_xindex)
|
|
69
|
+
"""GET/SET PN-Swap RX Configurations. (only for Freya)
|
|
70
|
+
|
|
71
|
+
:type: PL1_PNSWAP_RX
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
self.pn_swap_tx = PL1_PNSWAP_TX(conn, module_id, port_id, serdes_xindex)
|
|
75
|
+
"""GET/SET PN-Swap TX Configurations. (only for Freya)
|
|
76
|
+
|
|
77
|
+
:type: PL1_PNSWAP_TX
|
|
78
|
+
"""
|
|
79
|
+
|
|
66
80
|
class FreyaSIV:
|
|
67
81
|
"""Freya Signal Integrity View"""
|
|
68
82
|
|
|
@@ -29,6 +29,7 @@ from xoa_driver.internals.commands import (
|
|
|
29
29
|
C_FLASH,
|
|
30
30
|
C_MODEL_NAME,
|
|
31
31
|
C_MODEL_NUMBER,
|
|
32
|
+
C_USED_TPLDID,
|
|
32
33
|
)
|
|
33
34
|
from xoa_driver.internals.core.funcs import establish_connection
|
|
34
35
|
from xoa_driver.internals.core.transporter.handler import TransportationHandler
|
|
@@ -173,6 +174,12 @@ class BaseTester(ABC, Generic[TesterStateStorage]):
|
|
|
173
174
|
:type: C_FLASH
|
|
174
175
|
"""
|
|
175
176
|
|
|
177
|
+
self.used_tpld_ids = C_USED_TPLDID(self._conn)
|
|
178
|
+
"""Tester's used TPLD IDs.
|
|
179
|
+
|
|
180
|
+
:type: C_USED_TPLDID
|
|
181
|
+
"""
|
|
182
|
+
|
|
176
183
|
async def __aenter__(self: Awaitable[T]) -> T:
|
|
177
184
|
return await self
|
|
178
185
|
|
|
File without changes
|
|
File without changes
|