tdl-xoa-driver 1.5.1__py3-none-any.whl → 1.6.1__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.
Files changed (110) hide show
  1. {tdl_xoa_driver-1.5.1.dist-info → tdl_xoa_driver-1.6.1.dist-info}/METADATA +1 -1
  2. {tdl_xoa_driver-1.5.1.dist-info → tdl_xoa_driver-1.6.1.dist-info}/RECORD +87 -88
  3. {tdl_xoa_driver-1.5.1.dist-info → tdl_xoa_driver-1.6.1.dist-info}/licenses/LICENSE +1 -1
  4. xoa_driver/__init__.py +2 -2
  5. xoa_driver/enums.py +10 -10
  6. xoa_driver/functions/anlt.py +60 -78
  7. xoa_driver/functions/cli/testbed_config.py +1 -1
  8. xoa_driver/functions/cmis/_replies.py +4 -4
  9. xoa_driver/functions/mgmt.py +206 -250
  10. xoa_driver/functions/tools.py +11 -6
  11. xoa_driver/internals/commands/c_commands.py +59 -0
  12. xoa_driver/internals/commands/enums.py +101 -90
  13. xoa_driver/internals/commands/m4_commands.py +25 -0
  14. xoa_driver/internals/commands/m4e_commands.py +6 -0
  15. xoa_driver/internals/commands/m_commands.py +51 -1
  16. xoa_driver/internals/commands/p4_commands.py +63 -1
  17. xoa_driver/internals/commands/p4e_commands.py +9 -0
  18. xoa_driver/internals/commands/p4g_commands.py +139 -0
  19. xoa_driver/internals/commands/p_commands.py +455 -61
  20. xoa_driver/internals/commands/pc_commands.py +9 -0
  21. xoa_driver/internals/commands/pd_commands.py +11 -0
  22. xoa_driver/internals/commands/pe_commands.py +27 -0
  23. xoa_driver/internals/commands/pec_commands.py +9 -0
  24. xoa_driver/internals/commands/ped_commands.py +23 -0
  25. xoa_driver/internals/commands/pef_commands.py +43 -0
  26. xoa_driver/internals/commands/pf_commands.py +11 -0
  27. xoa_driver/internals/commands/pl1_commands.py +315 -48
  28. xoa_driver/internals/commands/pl_commands.py +8 -0
  29. xoa_driver/internals/commands/pm_commands.py +11 -0
  30. xoa_driver/internals/commands/pp_commands.py +84 -27
  31. xoa_driver/internals/commands/pr_commands.py +25 -0
  32. xoa_driver/internals/commands/ps_commands.py +47 -1
  33. xoa_driver/internals/commands/pt_commands.py +15 -0
  34. xoa_driver/internals/commands/px_commands.py +180 -136
  35. xoa_driver/internals/commands/subtypes.py +4 -3
  36. xoa_driver/internals/core/transporter/protocol/payload/base_struct.py +1 -1
  37. xoa_driver/internals/hli/indices/macsecscs/base_macsecsc.py +41 -3
  38. xoa_driver/internals/hli/modules/modules_l23/family_combi.py +0 -64
  39. xoa_driver/internals/hli/modules/modules_l23/family_edun.py +0 -2
  40. xoa_driver/internals/hli/modules/modules_l23/{family_g.py → family_loki.py} +29 -1
  41. xoa_driver/internals/hli/modules/modules_l23/family_odin.py +412 -0
  42. xoa_driver/internals/hli/modules/modules_l23/{family_l.py → family_thor.py} +44 -0
  43. xoa_driver/internals/hli/ports/port_l23/chimera/port_chimera.py +3 -3
  44. xoa_driver/internals/hli/ports/port_l23/family_edun.py +8 -43
  45. xoa_driver/internals/hli/ports/port_l23/{family_l1.py → family_freya.py} +9 -44
  46. xoa_driver/internals/hli/ports/port_l23/{family_g.py → family_loki.py} +32 -31
  47. xoa_driver/internals/hli/ports/port_l23/family_odin.py +225 -0
  48. xoa_driver/internals/hli/ports/port_l23/family_thor.py +67 -0
  49. xoa_driver/internals/hli/ports/port_l23/layer1/anlt.py +512 -0
  50. xoa_driver/internals/hli/ports/port_l23/layer1/brr.py +26 -0
  51. xoa_driver/internals/hli/ports/port_l23/layer1/eye_diagram.py +71 -0
  52. xoa_driver/internals/hli/ports/port_l23/{pcs_pma_ijkl_chimera.py → layer1/impair.py} +7 -7
  53. xoa_driver/internals/hli/ports/port_l23/layer1/laser_power.py +28 -0
  54. xoa_driver/internals/hli/ports/port_l23/{family_e.py → layer1/lower_power.py} +1 -51
  55. xoa_driver/internals/hli/ports/port_l23/{freya_l1.py → layer1/medium.py} +38 -358
  56. xoa_driver/internals/hli/ports/port_l23/layer1/pcs_fec.py +219 -0
  57. xoa_driver/internals/hli/ports/port_l23/layer1/pma.py +43 -0
  58. xoa_driver/internals/hli/ports/port_l23/layer1/prbs.py +39 -0
  59. xoa_driver/internals/hli/ports/port_l23/layer1/preamble.py +25 -0
  60. xoa_driver/internals/hli/ports/port_l23/{fault_jkl.py → layer1/rs_fault.py} +2 -2
  61. xoa_driver/internals/hli/ports/port_l23/layer1/siv.py +69 -0
  62. xoa_driver/internals/hli/ports/port_l23/layer1_edun.py +103 -0
  63. xoa_driver/internals/hli/ports/port_l23/layer1_freya.py +103 -0
  64. xoa_driver/internals/hli/ports/port_l23/layer1_loki.py +74 -0
  65. xoa_driver/internals/hli/ports/port_l23/layer1_thor.py +70 -0
  66. xoa_driver/internals/hli/ports/port_l23/sec/__init__.py +0 -0
  67. xoa_driver/internals/hli/ports/port_l23/sec/macsec.py +108 -0
  68. xoa_driver/internals/hli/ports/port_l23/tcvr/__init__.py +0 -0
  69. xoa_driver/internals/hli/ports/port_l23/{bases/port_transceiver.py → tcvr/cmis.py} +4 -118
  70. xoa_driver/internals/hli/ports/port_l23/tcvr/transceiver.py +124 -0
  71. xoa_driver/internals/hli/ports/port_l23/trafficgen/__init__.py +0 -0
  72. xoa_driver/internals/hli/ports/port_l23/trafficgen/runt.py +32 -0
  73. xoa_driver/internals/hli/ports/port_l23/{bases/port_reception_statistics.py → trafficgen/rx_stats.py} +0 -21
  74. xoa_driver/internals/hli/ports/port_l23/{bases/port_l23.py → trafficgen/tgen.py} +31 -213
  75. xoa_driver/internals/hli/ports/port_l23/{bases/port_transmission_statistics.py → trafficgen/tx_stats.py} +2 -22
  76. xoa_driver/internals/hli/testers/l23_tester.py +1 -3
  77. xoa_driver/internals/utils/indices/_interfaces.py +18 -6
  78. xoa_driver/internals/utils/indices/index_manager.py +8 -2
  79. xoa_driver/internals/utils/managers/ports_manager.py +5 -2
  80. xoa_driver/misc.py +6 -6
  81. xoa_driver/modules.py +31 -47
  82. xoa_driver/ports.py +10 -29
  83. xoa_driver/internals/hli/modules/modules_l23/family_d.py +0 -75
  84. xoa_driver/internals/hli/modules/modules_l23/family_e.py +0 -85
  85. xoa_driver/internals/hli/modules/modules_l23/family_f.py +0 -145
  86. xoa_driver/internals/hli/modules/modules_l23/family_h.py +0 -40
  87. xoa_driver/internals/hli/modules/modules_l23/family_i.py +0 -25
  88. xoa_driver/internals/hli/modules/modules_l23/family_j.py +0 -25
  89. xoa_driver/internals/hli/modules/modules_l23/family_k.py +0 -39
  90. xoa_driver/internals/hli/modules/modules_l23/family_m.py +0 -25
  91. xoa_driver/internals/hli/modules/modules_l23/family_n.py +0 -40
  92. xoa_driver/internals/hli/ports/port_l23/bases/port_l23_genuine.py +0 -229
  93. xoa_driver/internals/hli/ports/port_l23/edun_l1.py +0 -181
  94. xoa_driver/internals/hli/ports/port_l23/family_combi.py +0 -37
  95. xoa_driver/internals/hli/ports/port_l23/family_d.py +0 -51
  96. xoa_driver/internals/hli/ports/port_l23/family_f.py +0 -151
  97. xoa_driver/internals/hli/ports/port_l23/family_h.py +0 -67
  98. xoa_driver/internals/hli/ports/port_l23/family_i.py +0 -84
  99. xoa_driver/internals/hli/ports/port_l23/family_j.py +0 -68
  100. xoa_driver/internals/hli/ports/port_l23/family_k.py +0 -73
  101. xoa_driver/internals/hli/ports/port_l23/family_l.py +0 -82
  102. xoa_driver/internals/hli/ports/port_l23/family_m.py +0 -29
  103. xoa_driver/internals/hli/ports/port_l23/pcs_pma_ghijkl.py +0 -369
  104. xoa_driver/internals/hli/ports/port_l23/pcs_pma_l.py +0 -78
  105. xoa_driver/internals/hli/ports/port_l23/port_l23ve.py +0 -101
  106. {tdl_xoa_driver-1.5.1.dist-info → tdl_xoa_driver-1.6.1.dist-info}/WHEEL +0 -0
  107. {tdl_xoa_driver-1.5.1.dist-info → tdl_xoa_driver-1.6.1.dist-info}/top_level.txt +0 -0
  108. /xoa_driver/internals/hli/modules/modules_l23/{family_l1.py → family_freya.py} +0 -0
  109. /xoa_driver/internals/hli/ports/port_l23/{bases → layer1}/__init__.py +0 -0
  110. /xoa_driver/internals/hli/ports/port_l23/{bases/port_capture.py → trafficgen/capture.py} +0 -0
@@ -1,3 +1,4 @@
1
+ """Port Transceiver Commands"""
1
2
  from __future__ import annotations
2
3
  from dataclasses import dataclass
3
4
  import typing
@@ -325,7 +326,7 @@ class PX_CDB_SUPPORT:
325
326
  .. code-block:: json
326
327
 
327
328
  {
328
- "cdb_instances_supported": 2
329
+ "cdb_instances_supported": 2
329
330
  }
330
331
 
331
332
  * ``cdb_instances_supported``: CDP instnaces supported
@@ -365,7 +366,7 @@ class PX_CDB_ABORT_PROCESSING:
365
366
  .. code-block:: json
366
367
 
367
368
  {
368
- "cdb_status": 0
369
+ "cdb_status": 0
369
370
  }
370
371
 
371
372
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -413,7 +414,7 @@ class PX_CDB_CHANGE_PASSWORD:
413
414
  .. code-block:: json
414
415
 
415
416
  {
416
- "cdb_status": 0
417
+ "cdb_status": 0
417
418
  }
418
419
 
419
420
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -443,7 +444,7 @@ class PX_CDB_CHANGE_PASSWORD:
443
444
  .. code-block:: json
444
445
 
445
446
  {
446
- "new_password": [54,55,56,57]
447
+ "new_password": [54,55,56,57]
447
448
  }
448
449
 
449
450
  * ``new_password``: array of four integers, new password to be entered.
@@ -473,7 +474,7 @@ class PX_CDB_ENTER_PASSWORD:
473
474
  .. code-block:: json
474
475
 
475
476
  {
476
- "cdb_status": 0
477
+ "cdb_status": 0
477
478
  }
478
479
 
479
480
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -512,7 +513,7 @@ class PX_CDB_ENTER_PASSWORD:
512
513
  .. code-block:: json
513
514
 
514
515
  {
515
- "password": [54,55,56,57]
516
+ "password": [54,55,56,57]
516
517
  }
517
518
 
518
519
  * ``password``: array of four integers, password to be entered.
@@ -542,8 +543,8 @@ class PX_CDB_QUERY_STATUS:
542
543
  .. code-block:: json
543
544
 
544
545
  {
545
- "cdb_status": 0,
546
- "status": 0
546
+ "cdb_status": 0,
547
+ "status": 0
547
548
  }
548
549
 
549
550
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -562,7 +563,7 @@ class PX_CDB_QUERY_STATUS:
562
563
  .. code-block:: json
563
564
 
564
565
  {
565
- "response_delay": 0
566
+ "response_delay": 0
566
567
  }
567
568
 
568
569
  * ``response_delay``: Programmable delay in ms for module responding to this command. A value of 0 asks for module response as fast as possible.
@@ -581,13 +582,14 @@ class PX_CDB_QUERY_STATUS:
581
582
  def set(self, cmd_data: dict) -> Token[None]:
582
583
  """
583
584
  Set CMD Data
585
+
584
586
  :param cmd_data: CMD DATA
585
587
  :type cmd_data: dict
586
588
 
587
589
  .. code-block:: json
588
590
 
589
591
  {
590
- "response_delay": 0
592
+ "response_delay": 0
591
593
  }
592
594
 
593
595
  * ``response_delay``: Programmable delay in ms for module responding to this command. A value of 0 asks for module response as fast as possible.
@@ -618,8 +620,8 @@ class PX_CDB_EXTERNAL_FEATURES:
618
620
  .. code-block:: json
619
621
 
620
622
  {
621
- "cdb_status": 0,
622
- "supplement_support": "0x00"
623
+ "cdb_status": 0,
624
+ "supplement_support": "0x00"
623
625
  }
624
626
 
625
627
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -669,19 +671,19 @@ class PX_CDB_FW_MGMT_FEATURES:
669
671
  .. code-block:: json
670
672
 
671
673
  {
672
- "cdb_status": 0,
673
- "feature_support_mask": "0x00",
674
- "start_cmd_payload_size": 2,
675
- "erased_byte": "0x00",
676
- "read_write_length_ext": 2,
677
- "write_mechanism": "0x00",
678
- "read_mechanism": "0x00",
679
- "hitless_restart": 0,
680
- "max_duration_start": 123,
681
- "max_duration_abort": 123,
682
- "max_duration_write": 123,
683
- "max_duration_complete": 123,
684
- "max_duration_copy": 123
674
+ "cdb_status": 0,
675
+ "feature_support_mask": "0x00",
676
+ "start_cmd_payload_size": 2,
677
+ "erased_byte": "0x00",
678
+ "read_write_length_ext": 2,
679
+ "write_mechanism": "0x00",
680
+ "read_mechanism": "0x00",
681
+ "hitless_restart": 0,
682
+ "max_duration_start": 123,
683
+ "max_duration_abort": 123,
684
+ "max_duration_write": 123,
685
+ "max_duration_complete": 123,
686
+ "max_duration_copy": 123
685
687
  }
686
688
 
687
689
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -742,17 +744,17 @@ class PX_CDB_GET_APP_ATTRIBUTES:
742
744
  .. code-block:: json
743
745
 
744
746
  {
745
- "cdb_status": 0,
746
- "application_number": 123,
747
- "max_module_power": 123,
748
- "prog_output_power_min": 123,
749
- "prog_output_power_max": 123,
750
- "pre_fec_ber_threshold": 123.123,
751
- "rx_los_optical_power_threshold": 123,
752
- "rx_power_high_alarm_threshold": 123,
753
- "rx_power_low_alarm_threshold": 123,
754
- "rx_power_high_warning_threshold": 123,
755
- "rx_power_low_warning_threshold": 123
747
+ "cdb_status": 0,
748
+ "application_number": 123,
749
+ "max_module_power": 123,
750
+ "prog_output_power_min": 123,
751
+ "prog_output_power_max": 123,
752
+ "pre_fec_ber_threshold": 123.123,
753
+ "rx_los_optical_power_threshold": 123,
754
+ "rx_power_high_alarm_threshold": 123,
755
+ "rx_power_low_alarm_threshold": 123,
756
+ "rx_power_high_warning_threshold": 123,
757
+ "rx_power_low_warning_threshold": 123
756
758
  }
757
759
 
758
760
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -794,13 +796,14 @@ class PX_CDB_GET_APP_ATTRIBUTES:
794
796
  def set(self, cmd_data: dict) -> Token[None]:
795
797
  """
796
798
  Set CMD Data
799
+
797
800
  :param cmd_data: CMD DATA
798
801
  :type cmd_data: dict
799
802
 
800
803
  .. code-block:: json
801
804
 
802
805
  {
803
- "application_number": 1
806
+ "application_number": 1
804
807
  }
805
808
 
806
809
  * ``application_number``: integer, U16 Application number. 15-8: reserved (0). 7-4: NADBlockIndex (0-15) or 0. 3-0: AppSelCode (1-15)
@@ -830,16 +833,16 @@ class PX_CDB_GET_IF_CODE_DESCR:
830
833
  .. code-block:: json
831
834
 
832
835
  {
833
- "cdb_status": 0,
834
- "interface_id": "0x01",
835
- "interface_location": "0x00",
836
- "interfacre_name": "10G Ethernet",
837
- "interfacre_description": "10G Ethernet",
838
- "interfacre_data_rate": 10.3125,
839
- "interfacre_lane_count": 1,
840
- "lane_signaling_rate": 10.3125,
841
- "modulation": "PAM4",
842
- "bits_per_symbol": 2
836
+ "cdb_status": 0,
837
+ "interface_id": "0x01",
838
+ "interface_location": "0x00",
839
+ "interfacre_name": "10G Ethernet",
840
+ "interfacre_description": "10G Ethernet",
841
+ "interfacre_data_rate": 10.3125,
842
+ "interfacre_lane_count": 1,
843
+ "lane_signaling_rate": 10.3125,
844
+ "modulation": "PAM4",
845
+ "bits_per_symbol": 2
843
846
  }
844
847
 
845
848
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -861,8 +864,8 @@ class PX_CDB_GET_IF_CODE_DESCR:
861
864
  .. code-block:: json
862
865
 
863
866
  {
864
- "interface_id": "0x01",
865
- "interface_location": "0x00"
867
+ "interface_id": "0x01",
868
+ "interface_location": "0x00"
866
869
  }
867
870
 
868
871
  * ``interface_id``: hex string, U16: HostInterfaceID or MediaInterfaceID. 15-8: reserved (0). 7-0: InterfaceID
@@ -882,14 +885,15 @@ class PX_CDB_GET_IF_CODE_DESCR:
882
885
  def set(self, cmd_data: dict) -> Token[None]:
883
886
  """
884
887
  Set CMD Data
888
+
885
889
  :param cmd_data: CMD DATA
886
890
  :type cmd_data: dict
887
891
 
888
892
  .. code-block:: json
889
893
 
890
894
  {
891
- "interface_id": "0x01",
892
- "interface_location": "0x00"
895
+ "interface_id": "0x01",
896
+ "interface_location": "0x00"
893
897
  }
894
898
 
895
899
  * ``interface_id``: hex string, U16: HostInterfaceID or MediaInterfaceID. 15-8: reserved (0). 7-0: InterfaceID
@@ -920,13 +924,13 @@ class PX_CDB_MODULE_FEATURES:
920
924
  .. code-block:: json
921
925
 
922
926
  {
923
- "cdb_status": 0,
924
- "cmd_support_mask": "0x0000000000000000000000000000000000000000000000000000000000000000",
925
- "max_completion_time": 1000
927
+ "cdb_status": 0,
928
+ "cmd_support_mask": "0x0000000000000000000000000000000000000000000000000000000000000000",
929
+ "max_completion_time": 1000
926
930
  }
927
931
 
928
932
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
929
- * ``cmd_support_mask``: :hex string, indicates support of CDB commands 0000h-00FFh. This array of 32 bytes indicates support of CDB commands CMD <i>, with identifiers 0 <i> 255, as follows: CMD <i> is supported when bit<j>=<i>mod 8 of byte<k> = 138+floor(<i>/8) is set.
933
+ * ``cmd_support_mask``: :hex string, indicates support of CDB commands 0000h-00FFh. This array of 32 bytes indicates support of CDB commands CMD <i>, with identifiers 0 <= <i> <= 255, as follows: CMD <i> is supported when bit<j>=<i>mod 8 of byte<k> = 138+floor(<i>/8) is set.
930
934
  * ``max_completion_time``: integer, U16 Maximum CDB command execution time in ms, of all supported CDB commands.
931
935
 
932
936
  """
@@ -972,20 +976,20 @@ class PX_CDB_SEC_FEAT_CAPABILITIES:
972
976
  .. code-block:: json
973
977
 
974
978
  {
975
- "cdb_status": 0,
976
- "cmd_support_mask": "0xFF",
977
- "num_certificates": 0,
978
- "cert_chain_supported": 0,
979
- "certificate_format": 0,
980
- "certificate_length_1": 0,
981
- "certificate_length_2": 0,
982
- "certificate_length_3": 0,
983
- "certificate_length_4": 0,
984
- "digest_length": 0,
985
- "signature_time": 0,
986
- "signature_length": 0,
987
- "signature_format": 0,
988
- "signature_pad_scheme": 0
979
+ "cdb_status": 0,
980
+ "cmd_support_mask": "0xFF",
981
+ "num_certificates": 0,
982
+ "cert_chain_supported": 0,
983
+ "certificate_format": 0,
984
+ "certificate_length_1": 0,
985
+ "certificate_length_2": 0,
986
+ "certificate_length_3": 0,
987
+ "certificate_length_4": 0,
988
+ "digest_length": 0,
989
+ "signature_time": 0,
990
+ "signature_length": 0,
991
+ "signature_format": 0,
992
+ "signature_pad_scheme": 0
989
993
  }
990
994
 
991
995
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1047,7 +1051,7 @@ class PX_CDB_ABORT_FW_DOWNLOAD:
1047
1051
  .. code-block:: json
1048
1052
 
1049
1053
  {
1050
- "cdb_status": 0
1054
+ "cdb_status": 0
1051
1055
  }
1052
1056
 
1053
1057
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1095,7 +1099,7 @@ class PX_CDB_COMMIT_FW_IMAGE:
1095
1099
  .. code-block:: json
1096
1100
 
1097
1101
  {
1098
- "cdb_status": 0
1102
+ "cdb_status": 0
1099
1103
  }
1100
1104
 
1101
1105
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1143,7 +1147,7 @@ class PX_CDB_COMPLETE_FW_DOWNLOAD:
1143
1147
  .. code-block:: json
1144
1148
 
1145
1149
  {
1146
- "cdb_status": 0
1150
+ "cdb_status": 0
1147
1151
  }
1148
1152
 
1149
1153
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1191,9 +1195,9 @@ class PX_CDB_COPY_FW_IMAGE:
1191
1195
  .. code-block:: json
1192
1196
 
1193
1197
  {
1194
- "cdb_status": 0,
1195
- "copy_direction": "0xAB",
1196
- "copy_status": "0x00"
1198
+ "cdb_status": 0,
1199
+ "copy_direction": "0xAB",
1200
+ "copy_status": "0x00"
1197
1201
  }
1198
1202
 
1199
1203
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1225,13 +1229,14 @@ class PX_CDB_COPY_FW_IMAGE:
1225
1229
  def set(self, cmd_data: dict) -> Token[None]:
1226
1230
  """
1227
1231
  Set CMD Data
1232
+
1228
1233
  :param cmd_data: CMD DATA
1229
1234
  :type cmd_data: dict
1230
1235
 
1231
1236
  .. code-block:: json
1232
1237
 
1233
1238
  {
1234
- "copy_direction": "0xAB"
1239
+ "copy_direction": "0xAB"
1235
1240
  }
1236
1241
 
1237
1242
  * ``copy_direction``: hex string, copy direction.
@@ -1264,21 +1269,21 @@ class PX_CDB_GET_FW_INFO:
1264
1269
  .. code-block:: json
1265
1270
 
1266
1271
  {
1267
- "cdb_status": 0,
1268
- "firmware_status": 0,
1269
- "image_information": 0,
1270
- "image_a_major": 0,
1271
- "image_a_minor": 0,
1272
- "image_a_build": 0,
1273
- "image_a_extra_string": "abcdef",
1274
- "image_b_major": 0,
1275
- "image_b_minor": 0,
1276
- "image_b_build": 0,
1277
- "image_b_extra_string": "abcdef",
1278
- "factory_boot_major": 0,
1279
- "factory_boot_minor": 0,
1280
- "factory_boot_build": 0,
1281
- "factory_boot_extra_string": "abcdef"
1272
+ "cdb_status": 0,
1273
+ "firmware_status": 0,
1274
+ "image_information": 0,
1275
+ "image_a_major": 0,
1276
+ "image_a_minor": 0,
1277
+ "image_a_build": 0,
1278
+ "image_a_extra_string": "abcdef",
1279
+ "image_b_major": 0,
1280
+ "image_b_minor": 0,
1281
+ "image_b_build": 0,
1282
+ "image_b_extra_string": "abcdef",
1283
+ "factory_boot_major": 0,
1284
+ "factory_boot_minor": 0,
1285
+ "factory_boot_build": 0,
1286
+ "factory_boot_extra_string": "abcdef"
1282
1287
  }
1283
1288
 
1284
1289
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1369,8 +1374,8 @@ class PX_CDB_READ_FW_BLOCK_EPL:
1369
1374
  .. code-block:: json
1370
1375
 
1371
1376
  {
1372
- "cdb_status": 0,
1373
- "image_data": "0x00010203040506070809"
1377
+ "cdb_status": 0,
1378
+ "image_data": "0x00010203040506070809"
1374
1379
  }
1375
1380
 
1376
1381
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1403,8 +1408,8 @@ class PX_CDB_READ_FW_BLOCK_EPL:
1403
1408
  .. code-block:: json
1404
1409
 
1405
1410
  {
1406
- "block_address": 12,
1407
- "length": 10
1411
+ "block_address": 12,
1412
+ "length": 10
1408
1413
  }
1409
1414
 
1410
1415
  * ``block_address``: integer, U32 Starting byte address of this block of data within the supplied image file minus the size of the size of the “Start Command Payload Size”.
@@ -1436,9 +1441,9 @@ class PX_CDB_READ_FW_BLOCK_LPL:
1436
1441
  .. code-block:: json
1437
1442
 
1438
1443
  {
1439
- "cdb_status": 0,
1440
- "base_address_block": "0x0000000C",
1441
- "image_data": "0x00010203040506070809"
1444
+ "cdb_status": 0,
1445
+ "base_address_block": "0x0000000C",
1446
+ "image_data": "0x00010203040506070809"
1442
1447
  }
1443
1448
 
1444
1449
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1471,8 +1476,8 @@ class PX_CDB_READ_FW_BLOCK_LPL:
1471
1476
  .. code-block:: json
1472
1477
 
1473
1478
  {
1474
- "block_address": 12,
1475
- "length": 10
1479
+ "block_address": 12,
1480
+ "length": 10
1476
1481
  }
1477
1482
 
1478
1483
  * ``block_address``: integer, U32 Starting byte address of this block of data within the supplied image file minus the size of the size of the “Start Command Payload Size”.
@@ -1504,7 +1509,7 @@ class PX_CDB_RUN_FW_IMAGE:
1504
1509
  .. code-block:: json
1505
1510
 
1506
1511
  {
1507
- "cdb_status": 0
1512
+ "cdb_status": 0
1508
1513
  }
1509
1514
 
1510
1515
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1517,8 +1522,8 @@ class PX_CDB_RUN_FW_IMAGE:
1517
1522
  .. code-block:: json
1518
1523
 
1519
1524
  {
1520
- "image_to_run": 0,
1521
- "delay_to_reset": 100
1525
+ "image_to_run": 0,
1526
+ "delay_to_reset": 100
1522
1527
  }
1523
1528
 
1524
1529
  * ``image_to_run``: integer, index of the image to run.
@@ -1544,14 +1549,15 @@ class PX_CDB_RUN_FW_IMAGE:
1544
1549
  def set(self, cmd_data: dict) -> Token[None]:
1545
1550
  """
1546
1551
  Set CMD Data
1552
+
1547
1553
  :param cmd_data: CMD DATA
1548
1554
  :type cmd_data: dict
1549
1555
 
1550
1556
  .. code-block:: json
1551
1557
 
1552
1558
  {
1553
- "image_to_run": 0,
1554
- "delay_to_reset": 100
1559
+ "image_to_run": 0,
1560
+ "delay_to_reset": 100
1555
1561
  }
1556
1562
 
1557
1563
  * ``image_to_run``: integer, index of the image to run.
@@ -1588,7 +1594,7 @@ class PX_CDB_START_FW_DOWNLOAD:
1588
1594
  .. code-block:: json
1589
1595
 
1590
1596
  {
1591
- "cdb_status": 0
1597
+ "cdb_status": 0
1592
1598
  }
1593
1599
 
1594
1600
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1601,8 +1607,8 @@ class PX_CDB_START_FW_DOWNLOAD:
1601
1607
  .. code-block:: json
1602
1608
 
1603
1609
  {
1604
- "image_size": 12,
1605
- "vendor_data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
1610
+ "image_size": 12,
1611
+ "vendor_data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
1606
1612
  }
1607
1613
 
1608
1614
  * ``image_size``: integer, U32 Size of firmware image to download into the module. This should be the file size including the LPL bytes sent as vendor data in this message.
@@ -1622,14 +1628,15 @@ class PX_CDB_START_FW_DOWNLOAD:
1622
1628
  def set(self, cmd_data: dict) -> Token[None]:
1623
1629
  """
1624
1630
  Set CMD Data
1631
+
1625
1632
  :param cmd_data: CMD DATA
1626
1633
  :type cmd_data: dict
1627
1634
 
1628
1635
  .. code-block:: json
1629
1636
 
1630
1637
  {
1631
- "image_size": 12,
1632
- "vendor_data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
1638
+ "image_size": 12,
1639
+ "vendor_data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
1633
1640
  }
1634
1641
 
1635
1642
  * ``image_size``: integer, U32 Size of firmware image to download into the module. This should be the file size including the LPL bytes sent as vendor data in this message.
@@ -1660,7 +1667,7 @@ class PX_CDB_WRITE_FW_BLOCK_EPL:
1660
1667
  .. code-block:: json
1661
1668
 
1662
1669
  {
1663
- "cdb_status": 0
1670
+ "cdb_status": 0
1664
1671
  }
1665
1672
 
1666
1673
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1683,14 +1690,15 @@ class PX_CDB_WRITE_FW_BLOCK_EPL:
1683
1690
  def set(self, cmd_data: dict) -> Token[None]:
1684
1691
  """
1685
1692
  Set CMD Data
1693
+
1686
1694
  :param cmd_data: CMD DATA
1687
1695
  :type cmd_data: dict
1688
1696
 
1689
1697
  .. code-block:: json
1690
1698
 
1691
1699
  {
1692
- "block_address": 12,
1693
- "firmware_block": "0x00010203040506070809"
1700
+ "block_address": 12,
1701
+ "firmware_block": "0x00010203040506070809"
1694
1702
  }
1695
1703
 
1696
1704
  * ``block_address``: integer, U32 Starting byte address of this block of data within the supplied image file minus the size of the size of the “Start Command Payload Size”.
@@ -1721,7 +1729,7 @@ class PX_CDB_WRITE_FW_BLOCK_LPL:
1721
1729
  .. code-block:: json
1722
1730
 
1723
1731
  {
1724
- "cdb_status": 0
1732
+ "cdb_status": 0
1725
1733
  }
1726
1734
 
1727
1735
  * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
@@ -1744,14 +1752,15 @@ class PX_CDB_WRITE_FW_BLOCK_LPL:
1744
1752
  def set(self, cmd_data: dict) -> Token[None]:
1745
1753
  """
1746
1754
  Set CMD Data
1755
+
1747
1756
  :param cmd_data: CMD DATA
1748
1757
  :type cmd_data: dict
1749
1758
 
1750
1759
  .. code-block:: json
1751
1760
 
1752
1761
  {
1753
- "block_address": 12,
1754
- "firmware_block": "0x00010203040506070809"
1762
+ "block_address": 12,
1763
+ "firmware_block": "0x00010203040506070809"
1755
1764
  }
1756
1765
 
1757
1766
  * ``block_address``: integer, U32 Starting byte address of this block of data within the supplied image file minus the size of the size of the “Start Command Payload Size”.
@@ -1785,21 +1794,24 @@ class PX_CUST_CMD:
1785
1794
  def set(self, cmd: dict) -> Token[None]:
1786
1795
  """
1787
1796
  Set CMD
1797
+
1788
1798
  :param cmd: CMD
1789
1799
  :type cmd: dict
1790
1800
 
1791
1801
  .. code-block:: json
1792
1802
 
1793
1803
  {
1794
- "cmd_header": {
1795
- "cmd_id": "0x00",
1796
- "epl_length": 0,
1797
- "lpl_length": 0,
1798
- "rpl_length": 0,
1799
- "rpl_check_code": 0
1804
+ "cmd_header":
1805
+ {
1806
+ "cmd_id": "0x00",
1807
+ "epl_length": 0,
1808
+ "lpl_length": 0,
1809
+ "rpl_length": 0,
1810
+ "rpl_check_code": 0
1800
1811
  },
1801
- "cmd_data": {
1802
- "data": "0x00"
1812
+ "cmd_data":
1813
+ {
1814
+ "data": "0x00"
1803
1815
  }
1804
1816
  }
1805
1817
 
@@ -1826,17 +1838,17 @@ class PX_CUST_CMD:
1826
1838
  .. code-block:: json
1827
1839
 
1828
1840
  {
1829
- "reply_status": {
1830
- "cdb_cmd_complete_flag": "0x00",
1831
- "cdb_status": 0,
1832
- },
1833
- "reply_header": {
1834
- "rpl_length": 9,
1835
- "rpl_check_code": 9
1836
- }
1837
- "reply_data": {
1838
- "data": "0x00"
1839
- }
1841
+ "reply_status": {
1842
+ "cdb_cmd_complete_flag": "0x00",
1843
+ "cdb_status": 0,
1844
+ },
1845
+ "reply_header": {
1846
+ "rpl_length": 9,
1847
+ "rpl_check_code": 9
1848
+ }
1849
+ "reply_data": {
1850
+ "data": "0x00"
1851
+ }
1840
1852
  }
1841
1853
 
1842
1854
  * ``reply_status``: dict, JSON formatted string containing the following fields:
@@ -1980,4 +1992,36 @@ class PX_CUST_CMD:
1980
1992
  # return Token(self._connection, build_set_request(self, module=self._module, port=self._port, indices=[self._cdb_instance_xindex], cmd_data=cmd_data))
1981
1993
 
1982
1994
 
1983
- # endregion
1995
+ # endregion
1996
+
1997
+ __all__ = [
1998
+ "PX_CDB_ABORT_FW_DOWNLOAD",
1999
+ "PX_CDB_ABORT_PROCESSING",
2000
+ "PX_CDB_CHANGE_PASSWORD",
2001
+ "PX_CDB_COMMIT_FW_IMAGE",
2002
+ "PX_CDB_COMPLETE_FW_DOWNLOAD",
2003
+ "PX_CDB_COPY_FW_IMAGE",
2004
+ "PX_CDB_ENTER_PASSWORD",
2005
+ "PX_CDB_EXTERNAL_FEATURES",
2006
+ "PX_CDB_FW_MGMT_FEATURES",
2007
+ "PX_CDB_GET_APP_ATTRIBUTES",
2008
+ "PX_CDB_GET_FW_INFO",
2009
+ "PX_CDB_GET_IF_CODE_DESCR",
2010
+ "PX_CDB_MODULE_FEATURES",
2011
+ "PX_CDB_QUERY_STATUS",
2012
+ "PX_CDB_READ_FW_BLOCK_EPL",
2013
+ "PX_CDB_READ_FW_BLOCK_LPL",
2014
+ "PX_CDB_RUN_FW_IMAGE",
2015
+ "PX_CDB_SEC_FEAT_CAPABILITIES",
2016
+ "PX_CDB_START_FW_DOWNLOAD",
2017
+ "PX_CDB_SUPPORT",
2018
+ "PX_CDB_WRITE_FW_BLOCK_EPL",
2019
+ "PX_CDB_WRITE_FW_BLOCK_LPL",
2020
+ "PX_CUST_CMD",
2021
+ "PX_I2C_CONFIG",
2022
+ "PX_MII",
2023
+ "PX_RW",
2024
+ "PX_RW_SEQ",
2025
+ "PX_RW_SEQ_BANK",
2026
+ "PX_TEMPERATURE",
2027
+ ]