Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
python-handel
Commits
8ed85241
Commit
8ed85241
authored
Aug 30, 2017
by
Vincent Michel
Browse files
Add get_module_number_of_channels
parent
19820830
Pipeline
#899
passed with stages
in 1 minute and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
handel/interface.py
View file @
8ed85241
...
...
@@ -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);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment