Skip to content

Commit c55a43e

Browse files
author
neil.hamilton
committed
Add additional functions to ps2000a.py
1 parent 9df8ef2 commit c55a43e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

picosdk/ps2000a.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,3 +846,19 @@ class PS2000A_TRIGGER_CHANNEL_PROPERTIES(Structure):
846846
ps2000a.make_symbol("_GetMaxSegments", "ps2000aGetMaxSegments", c_uint32, [c_int16, c_void_p], doc)
847847

848848
ps2000a.INI_LOGIC_VOLTS = 1.5
849+
850+
doc = """ void *ps2000aBlockReady
851+
(
852+
int16_t handle,
853+
PICO_STATUS status,
854+
void *pParameter
855+
);
856+
define a python function which accepts the correct arguments, and pass it to the constructor of this type.
857+
"""
858+
859+
ps2000a.BlockReadyType = C_CALLBACK_FUNCTION_FACTORY(None,
860+
c_int16,
861+
c_uint32,
862+
c_void_p)
863+
864+
ps2000a.BlockReadyType.__doc__ = doc

0 commit comments

Comments
 (0)