Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
wr2rf-vme
Commits
ee3e064e
Commit
ee3e064e
authored
Apr 16, 2021
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr2rf: improve output of lemo-show
parent
3300c040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
3 deletions
+48
-3
wr2rf.c
software/libwr2rf/wr2rf.c
+48
-3
No files found.
software/libwr2rf/wr2rf.c
View file @
ee3e064e
...
...
@@ -2543,11 +2543,56 @@ lemo_disp_dbg(struct libwr2rf_dev *dev, struct strb *strb, unsigned lemo)
val
=
libwr2rf_read16
(
dev
,
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_TMGIO1
+
lemo
*
2
);
strb_printf
(
strb
,
"out: "
);
if
(
val
==
(
1
<<
(
LIBWR2RF_LEMO_DBG_WRS_SOFTSTOP
-
1
)))
if
(
val
==
(
1
<<
(
LIBWR2RF_LEMO_DBG_WRS_SOFTSTOP
-
1
)))
{
unsigned
vtu
;
strb_printf
(
strb
,
"softstop"
);
else
if
(
val
==
(
1
<<
(
LIBWR2RF_LEMO_DBG_WRS_SOFTSTART
-
1
)))
vtu
=
libwr2rf_read16
(
dev
,
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_SOFTSTART
);
switch
(
vtu
)
{
case
LIBWR2RF_RF1T1_SOFTSTOP_SEL
:
strb_printf
(
strb
,
"(1.1)"
);
break
;
case
LIBWR2RF_RF1T2_SOFTSTOP_SEL
:
strb_printf
(
strb
,
"(1.2)"
);
break
;
case
LIBWR2RF_RF2T1_SOFTSTOP_SEL
:
strb_printf
(
strb
,
"(2.1)"
);
break
;
case
LIBWR2RF_RF2T2_SOFTSTOP_SEL
:
strb_printf
(
strb
,
"(2.2)"
);
break
;
default:
strb_printf
(
strb
,
"(bad)"
);
break
;
}
}
else
if
(
val
==
(
1
<<
(
LIBWR2RF_LEMO_DBG_WRS_SOFTSTART
-
1
)))
{
unsigned
vtu
;
strb_printf
(
strb
,
"softstart"
);
else
vtu
=
libwr2rf_read16
(
dev
,
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_SOFTSTART
);
switch
(
vtu
)
{
case
LIBWR2RF_RF1T1_SOFTSTART_SEL
:
strb_printf
(
strb
,
"(1.1)"
);
break
;
case
LIBWR2RF_RF1T2_SOFTSTART_SEL
:
strb_printf
(
strb
,
"(1.2)"
);
break
;
case
LIBWR2RF_RF2T1_SOFTSTART_SEL
:
strb_printf
(
strb
,
"(2.1)"
);
break
;
case
LIBWR2RF_RF2T2_SOFTSTART_SEL
:
strb_printf
(
strb
,
"(2.2)"
);
break
;
default:
strb_printf
(
strb
,
"(bad)"
);
break
;
}
}
else
strb_printf
(
strb
,
"%s"
,
xlat_get_name
(
dbg_reg
,
val
,
"??"
));
}
...
...
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