1
1
# High Level Analyzer
2
2
# For more information and documentation, please go to https://support.saleae.com/extensions/high-level-analyzer-extensions
3
3
4
- from saleae .analyzers import HighLevelAnalyzer , AnalyzerFrame , StringSetting , NumberSetting , ChoicesSetting
4
+ from saleae .analyzers import HighLevelAnalyzer , AnalyzerFrame
5
5
from copy import deepcopy
6
6
from CC1101SpiProtocol import CC1101SpiProtocol , ProtocolFrameType , MARC_STATE
7
7
@@ -24,11 +24,6 @@ class SpiFrameState:
24
24
25
25
# High level analyzers must subclass the HighLevelAnalyzer class.
26
26
class Hla (HighLevelAnalyzer ):
27
- # List of settings that a user can set for this High Level Analyzer.
28
- # TODO Check the String/Number/Choice settings
29
- # my_string_setting = StringSetting()
30
- # my_number_setting = NumberSetting(min_value=0, max_value=100)
31
- # my_choices_setting = ChoicesSetting(choices=('A', 'B'))
32
27
33
28
# An optional list of types this analyzer produces, providing a way to customize the way frames are displayed in Logic 2.
34
29
result_types = {
@@ -66,14 +61,6 @@ def __init__(self):
66
61
self .start_time = 0
67
62
self .end_time = 0
68
63
69
- # TODO Check the String/Number/Choice settings
70
- # print(
71
- # "Settings:",
72
- # self.my_string_setting,
73
- # self.my_number_setting,
74
- # self.my_choices_setting
75
- # )
76
-
77
64
def decode (self , frame : AnalyzerFrame ):
78
65
'''
79
66
Process a frame from the input analyzer, and optionally return a single `AnalyzerFrame` or a list of `AnalyzerFrame`s.
0 commit comments