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
e197512c
Commit
e197512c
authored
Aug 07, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py: improve readabilty by removing useless functions
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
daf7b459
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
PyAdcLib.py
PyAdcLib/PyAdcLib/PyAdcLib.py
+3
-13
No files found.
PyAdcLib/PyAdcLib/PyAdcLib.py
View file @
e197512c
...
...
@@ -279,17 +279,12 @@ class ADC_Generic():
if
not
hasattr
(
self
,
'BOARD_NAME'
):
raise
Exception
(
"Missing board name"
)
self
.
_
_init
()
libadc
.
adc
_init
()
self
.
__adc_ptr
=
self
.
__open
(
devid
,
0
,
0
,
self
.
ADC_F_FLUSH
)
def
__del__
(
self
):
self
.
__close
()
self
.
__exit
()
def
__init
(
self
):
libadc
.
adc_init
()
def
__exit
(
self
):
if
hasattr
(
self
,
"__adc_ptr"
):
libadc
.
adc_close
(
self
.
__adc_ptr
)
libadc
.
adc_exit
()
def
get_driver_type
(
self
):
...
...
@@ -324,11 +319,6 @@ class ADC_Generic():
def
release_buffer
(
self
,
buf
,
free
):
libadc
.
adc_release_buffer
(
self
.
__adc_ptr
,
buf
,
free
)
def
__close
(
self
):
if
hasattr
(
self
,
"__adc_ptr"
):
libadc
.
adc_close
(
self
.
__adc_ptr
)
del
self
.
__adc_ptr
def
trigger_fire
(
self
):
libadc
.
adc_trigger_fire
(
self
.
__adc_ptr
)
...
...
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