Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
FMC ADC 100M 14b 4cha - Software
Commits
061933c2
Commit
061933c2
authored
Feb 04, 2013
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fau-trg-config.c: rename re-enable to nshots
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
7b22b906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fau-trg-config.c
tools/fau-trg-config.c
+5
-5
No files found.
tools/fau-trg-config.c
View file @
061933c2
...
@@ -39,7 +39,7 @@ const char *attribute[] = {
...
@@ -39,7 +39,7 @@ const char *attribute[] = {
[
FAU_TRG_EN
]
=
"/cset0/trigger/enable"
,
[
FAU_TRG_EN
]
=
"/cset0/trigger/enable"
,
[
FAU_TRG_PRE
]
=
"/cset0/trigger/pre-samples"
,
[
FAU_TRG_PRE
]
=
"/cset0/trigger/pre-samples"
,
[
FAU_TRG_PST
]
=
"/cset0/trigger/post-samples"
,
[
FAU_TRG_PST
]
=
"/cset0/trigger/post-samples"
,
[
FAU_TRG_RE_EN
]
=
"/cset0/trigger/
re-enable
"
,
[
FAU_TRG_RE_EN
]
=
"/cset0/trigger/
nshots
"
,
[
FAU_TRG_EXT
]
=
"/cset0/trigger/external"
,
[
FAU_TRG_EXT
]
=
"/cset0/trigger/external"
,
[
FAU_SW_TRG_EN
]
=
"/cset0/trigger/sw-trg-enable"
,
[
FAU_SW_TRG_EN
]
=
"/cset0/trigger/sw-trg-enable"
,
[
FAU_TRG_DLY
]
=
"/cset0/trigger/delay"
,
[
FAU_TRG_DLY
]
=
"/cset0/trigger/delay"
,
...
@@ -75,7 +75,7 @@ static void fau_help()
...
@@ -75,7 +75,7 @@ static void fau_help()
printf
(
" <DEVICE>: ZIO name of the device to use
\n
"
);
printf
(
" <DEVICE>: ZIO name of the device to use
\n
"
);
printf
(
" --pre|-p <value>: number of pre samples
\n
"
);
printf
(
" --pre|-p <value>: number of pre samples
\n
"
);
printf
(
" --post|-P <value>: number of pre samples
\n
"
);
printf
(
" --post|-P <value>: number of pre samples
\n
"
);
printf
(
" --
re-enable|-r
<value>: number of trigger shots
\n
"
);
printf
(
" --
nshots|-n
<value>: number of trigger shots
\n
"
);
printf
(
" --delay|-d <value>: set the ticks delay of the trigger
\n
"
);
printf
(
" --delay|-d <value>: set the ticks delay of the trigger
\n
"
);
printf
(
" --threshold|-t <value>: set internal trigger threshold
\n
"
);
printf
(
" --threshold|-t <value>: set internal trigger threshold
\n
"
);
printf
(
" --channel|-c <value>: select the internal channel as "
printf
(
" --channel|-c <value>: select the internal channel as "
...
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
...
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
static
struct
option
options
[]
=
{
static
struct
option
options
[]
=
{
{
"pre"
,
required_argument
,
0
,
'p'
},
{
"pre"
,
required_argument
,
0
,
'p'
},
{
"post"
,
required_argument
,
0
,
'P'
},
{
"post"
,
required_argument
,
0
,
'P'
},
{
"
re-enable"
,
required_argument
,
0
,
'r
'
},
{
"
nshots"
,
required_argument
,
0
,
'n
'
},
{
"delay"
,
required_argument
,
0
,
'd'
},
{
"delay"
,
required_argument
,
0
,
'd'
},
{
"threshold"
,
required_argument
,
0
,
't'
},
{
"threshold"
,
required_argument
,
0
,
't'
},
{
"negative-edge"
,
no_argument
,
&
attrval
[
FAU_TRG_POL
],
1
},
{
"negative-edge"
,
no_argument
,
&
attrval
[
FAU_TRG_POL
],
1
},
...
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
...
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
exit
(
1
);
exit
(
1
);
}
}
while
(
(
c
=
getopt_long
(
argc
,
argv
,
"p:P:
r
:d:t:c:h"
,
while
(
(
c
=
getopt_long
(
argc
,
argv
,
"p:P:
n
:d:t:c:h"
,
options
,
&
opt_index
))
>=
0
){
options
,
&
opt_index
))
>=
0
){
if
(
!
c
)
{
if
(
!
c
)
{
argcd
++
;
argcd
++
;
...
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
...
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
case
'P'
:
case
'P'
:
attrval
[
FAU_TRG_PST
]
=
atoi
(
optarg
);
attrval
[
FAU_TRG_PST
]
=
atoi
(
optarg
);
break
;
break
;
case
'
r
'
:
case
'
n
'
:
attrval
[
FAU_TRG_RE_EN
]
=
atoi
(
optarg
);
attrval
[
FAU_TRG_RE_EN
]
=
atoi
(
optarg
);
break
;
break
;
case
'd'
:
case
'd'
:
...
...
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