Commit 8ed85241 authored by Vincent Michel's avatar Vincent Michel

Add get_module_number_of_channels

parent 19820830
Pipeline #899 passed with stages
in 1 minute and 23 seconds
......@@ -271,6 +271,14 @@ def get_module_interface(alias):
return ffi.string(value).decode()
def get_module_number_of_channels(alias):
alias = to_bytes(alias)
value = ffi.new('int *')
code = handel.xiaGetModuleItem(alias, b'number_of_channels', value)
check_error(code)
return value[0]
# Not exposed
# int xiaNewModule(char *alias);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment