Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
distributed oscilloscope
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
distributed oscilloscope
Commits
8624e7aa
Commit
8624e7aa
authored
Jun 28, 2019
by
Milosz Malczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adc: updated the code for the new version of the WRTD
parent
05008089
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
419 additions
and
462 deletions
+419
-462
PyWrtd.py
software/fec/PyWrtd.py
+412
-0
WRTD.py
software/fec/WRTD.py
+7
-6
wrtd_wrapper.py
software/fec/wrtd_wrapper.py
+0
-456
No files found.
software/fec/PyWrtd.py
0 → 100644
View file @
8624e7aa
This diff is collapsed.
Click to expand it.
software/fec/WRTD.py
View file @
8624e7aa
from
wrtd_wrapper
import
WRTD_wrapper
from
wrtd_wrapper
import
encode_arguments
from
PyWrtd
import
PyWrtd
from
PyWrtd
import
encode_arguments
class
WRTD
(
WRTD_wrapper
):
class
WRTD
(
PyWrtd
):
def
__init__
(
self
,
trtl
):
super
()
.
__init__
(
trtl
)
self
.
trtl
=
trtl
.
encode
(
'utf-8'
)
...
...
@@ -29,15 +29,16 @@ class WRTD(WRTD_wrapper):
self
.
set_attr_string
(
name
,
self
.
WRTD_ATTR_RULE_SOURCE
,
src_p
)
self
.
set_attr_string
(
name
,
self
.
WRTD_ATTR_RULE_DESTINATION
,
dst_p
)
self
.
set_attr_tstamp
(
name
,
self
.
WRTD_ATTR_RULE_DELAY
,
ts
)
self
.
set_attr_tstamp
(
name
,
self
.
WRTD_ATTR_RULE_DELAY
,
ts
[
'seconds'
],
ts
[
'ns'
],
ts
[
'frac'
])
@
encode_arguments
def
enable_rule
(
self
,
name
):
self
.
set_attr_bool
(
name
,
self
.
WRTD_ATTR_RULE_ENABLED
,
1
)
self
.
set_attr_bool
(
name
,
self
.
WRTD_ATTR_RULE_ENABLED
,
True
)
@
encode_arguments
def
disable_rule
(
self
,
name
):
self
.
set_attr_bool
(
name
,
self
.
WRTD_ATTR_RULE_ENABLED
,
0
)
self
.
set_attr_bool
(
name
,
self
.
WRTD_ATTR_RULE_ENABLED
,
False
)
def
add_rule_mult_src
(
self
,
name
,
number
):
for
count
in
range
(
1
,
number
):
...
...
software/fec/wrtd_wrapper.py
deleted
100644 → 0
View file @
05008089
This diff is collapsed.
Click to expand it.
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