Commit 061933c2 authored by Federico Vaga's avatar Federico Vaga

fau-trg-config.c: rename re-enable to nshots

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 7b22b906
...@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment