Skip to content

Commit 5eff9d9

Browse files
author
neil.hamilton
committed
Correct typos in ps3000a.py
1 parent d13829e commit 5eff9d9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

picosdk/ps3000a.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def _define_digital_port():
145145
])
146146

147147
ps3000a.PS3000A_THRESHOLD_DIRECTION = make_enum([
148-
("PS3000A_ABOVE", PS3000A_INSIDE),
149-
("PS3000A_BELOW",, "PS3000A_OUTSIDE"),
148+
("PS3000A_ABOVE", "PS3000A_INSIDE"),
149+
("PS3000A_BELOW", "PS3000A_OUTSIDE"),
150150
("PS3000A_RISING", "PS3000A_ENTER"),
151151
("PS3000A_FALLING", "PS3000A_EXIT"),
152152
("PS3000A_RISING_OR_FALLING", "PS3000A_ENTER_OR_EXIT"),
@@ -155,7 +155,8 @@ def _define_digital_port():
155155
"PS3000A_RISING_LOWER",
156156
"PS3000A_FALLING_LOWER"
157157
"PS3000A_POSITIVE_RUNT",
158-
"PS3000A_NEGATIVE_RUNT"
158+
"PS3000A_NEGATIVE_RUNT",
159+
"PS3000A_NONE"
159160
])
160161

161162
ps3000a.PS3000A_THRESHOLD_MODE = make_enum([
@@ -168,6 +169,8 @@ class PS3000A_DIGITAL_CHANNEL_DIRECTIONS(Structure):
168169
_fields_ = [("channel", c_int32),
169170
("direction", c_int32)]
170171

172+
ps3000a.PS3000A_DIGITAL_CHANNEL_DIRECTIONS = PS3000A_DIGITAL_CHANNEL_DIRECTIONS
173+
171174
class PS3000A_TRIGGER_CONDITIONS(Structure):
172175
_pack_ = 1
173176
_fields_ = [("channelA", c_uint32),
@@ -177,6 +180,8 @@ class PS3000A_TRIGGER_CONDITIONS(Structure):
177180
("external", c_uint32),
178181
("aux", c_uint32),
179182
("pulseWidthQualifier", c_uint32)]
183+
184+
ps3000a.PS3000A_TRIGGER_CONDITIONS = PS3000A_TRIGGER_CONDITIONS
180185

181186
class PS3000A_TRIGGER_CONDITIONS_V2(Structure):
182187
_pack_ = 1
@@ -188,6 +193,7 @@ class PS3000A_TRIGGER_CONDITIONS_V2(Structure):
188193
("aux", c_uint32),
189194
("pulseWidthQualifier", c_uint32),
190195
("digital", c_uint32)]
196+
ps3000a.PS3000A_TRIGGER_CONDITIONS_V2 = PS3000A_TRIGGER_CONDITIONS_V2
191197

192198
class PS3000A_TRIGGER_CHANNEL_PROPERTIES(Structure):
193199
_pack_ = 1
@@ -197,6 +203,7 @@ class PS3000A_TRIGGER_CHANNEL_PROPERTIES(Structure):
197203
("thresholdLowerHysteresis", c_uint16),
198204
("channel", c_uint32),
199205
("thresholdMode", c_uint32)]
206+
ps3000a.PS3000A_TRIGGER_CHANNEL_PROPERTIES = PS3000A_TRIGGER_CHANNEL_PROPERTIES
200207

201208
doc = """ PICO_STATUS ps3000aOpenUnit
202209
(

0 commit comments

Comments
 (0)