Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
5125b897
Commit
5125b897
authored
Nov 22, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made trigger-realted parameters to run through the sequencer too, continued
parent
bd4f6b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
x393_export_c.py
py393/x393_export_c.py
+6
-5
No files found.
py393/x393_export_c.py
View file @
5125b897
...
...
@@ -1065,15 +1065,15 @@ class X393ExportC(object):
c
=
"sens_chn"
sdefines
+=
[
((
'CAMSYNC control'
,)),
((
"X393_CAMSYNC_MODE"
,
""
,
vrlg
.
CAMSYNC_MODE
+
ba
,
0
,
z3
,
"x393_camsync_mode"
,
"wo"
,
"CAMSYNC mode"
)),
((
"X393_CAMSYNC_TRIG_SRC"
,
""
,
vrlg
.
CAMSYNC_TRIG_SRC
+
ba
,
0
,
z3
,
"x393_camsync_io"
,
"wo"
,
"CAMSYNC trigger source"
)),
((
"X393_CAMSYNC_TRIG_DST"
,
""
,
vrlg
.
CAMSYNC_TRIG_DST
+
ba
,
0
,
z3
,
"x393_camsync_io"
,
"wo"
,
"CAMSYNC trigger destination"
)),
((
"X393_CAMSYNC_MODE"
,
c
,
vrlg
.
CAMSYNC_MODE
+
ba
,
0
,
z3
,
"x393_camsync_mode"
,
"wo"
,
"CAMSYNC mode"
)),
((
"X393_CAMSYNC_TRIG_SRC"
,
c
,
vrlg
.
CAMSYNC_TRIG_SRC
+
ba
,
0
,
z3
,
"x393_camsync_io"
,
"wo"
,
"CAMSYNC trigger source"
)),
((
"X393_CAMSYNC_TRIG_DST"
,
c
,
vrlg
.
CAMSYNC_TRIG_DST
+
ba
,
0
,
z3
,
"x393_camsync_io"
,
"wo"
,
"CAMSYNC trigger destination"
)),
((
'_Trigger period has special value for small (<255) values written to this register'
,)),
((
'_ d == 0 - disable (stop periodic mode)'
,)),
((
'_ d == 1 - single trigger'
,)),
((
'_ d == 2..255 - set output pulse / input-output serial bit duration (no start generated)'
,)),
((
'_ d >= 256 - repetitive trigger'
,)),
((
"X393_CAMSYNC_TRIG_PERIOD"
,
""
,
vrlg
.
CAMSYNC_TRIG_PERIOD
+
ba
,
0
,
z3
,
"u32*"
,
"rw"
,
"CAMSYNC trigger period"
)),
((
"X393_CAMSYNC_TRIG_PERIOD"
,
c
,
vrlg
.
CAMSYNC_TRIG_PERIOD
+
ba
,
0
,
z3
,
"u32*"
,
"rw"
,
"CAMSYNC trigger period"
)),
((
"X393_CAMSYNC_TRIG_DELAY"
,
c
,
vrlg
.
CAMSYNC_TRIG_DELAY0
+
ba
,
1
,
z3
,
"u32*"
,
"rw"
,
"CAMSYNC trigger delay"
))]
ba
=
vrlg
.
CMDFRAMESEQ_ADDR_BASE
...
...
@@ -1245,7 +1245,8 @@ class X393ExportC(object):
#processing sequencer command (have "w" and var_name and var_range = 0..3
#TODO: Add special character to rw meaning channel applicable
channelCmd
=
False
if
var_name
and
address_inc
and
(
'w'
in
rw
)
and
var_range
:
# if var_name and address_inc and ('w' in rw) and var_range:
if
var_name
and
(
'w'
in
rw
)
and
var_range
:
multivar
=
isinstance
(
address_inc
,(
list
,
tuple
))
if
multivar
:
if
isinstance
(
var_range
[
0
],(
list
,
tuple
))
and
(
var_range
[
0
][
0
]
==
0
)
and
(
var_range
[
0
][
1
]
==
3
):
...
...
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