Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
adc-lib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
adc-lib
Commits
4d18f681
Commit
4d18f681
authored
Aug 12, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py: timeout uses timeval structure)
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
6329d068
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
PyAdcLib.py
PyAdcLib/PyAdcLib/PyAdcLib.py
+4
-4
__init__.py
PyAdcLib/PyAdcLib/__init__.py
+2
-1
No files found.
PyAdcLib/PyAdcLib/PyAdcLib.py
View file @
4d18f681
...
...
@@ -301,14 +301,14 @@ class PyAdcAbstract():
def
request_buffer
(
self
,
nsamples
,
alloc
,
flags
):
return
libadc
.
adc_request_buffer
(
self
.
tkn
,
nsamples
,
alloc
,
flags
)
def
acq_start
(
self
,
flags
,
timeout
):
libadc
.
adc_acq_start
(
self
.
tkn
,
flags
,
timeout
)
def
acq_start
(
self
,
flags
,
timeout
_tv
):
libadc
.
adc_acq_start
(
self
.
tkn
,
flags
,
byref
(
timeout_tv
)
)
def
acq_poll
(
self
,
flags
,
timeout
):
libadc
.
adc_acq_poll
(
self
.
tkn
,
flags
,
timeout
)
libadc
.
adc_acq_poll
(
self
.
tkn
,
flags
,
byref
(
timeout
)
)
def
fill_buffer
(
self
,
buf
,
flags
,
timeout
):
libadc
.
adc_fill_buffer
(
self
.
tkn
,
buf
,
flags
,
timeout
)
libadc
.
adc_fill_buffer
(
self
.
tkn
,
buf
,
flags
,
byref
(
timeout
)
)
def
acq_stop
(
self
,
flags
):
libadc
.
adc_acq_stop
(
self
.
tkn
,
flags
)
...
...
PyAdcLib/PyAdcLib/__init__.py
View file @
4d18f681
...
...
@@ -7,10 +7,11 @@
SPDX-License-Identifier: LGPL-3.0-or-later
"""
from
.PyAdcLib
import
PyAdcConf
,
PyAdcAbstract
,
PyFmcAdc100m14b4ch
from
.PyAdcLib
import
PyAdcConf
,
PyAdcAbstract
,
PyFmcAdc100m14b4ch
,
timeval
__all__
=
(
"PyAdcConf"
,
"PyAdcAbstract"
,
"PyFmcAdc100m14b4ch"
,
"timeval"
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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