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
9170c22d
Commit
9170c22d
authored
Apr 20, 2021
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr2rf: add api-nco-reset-ignore
parent
d7b36956
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
board.c
software/libwr2rf/board.c
+1
-1
api.h
software/libwr2rf/libwr2rf/api.h
+1
-1
wr2rf.c
software/libwr2rf/wr2rf.c
+16
-0
No files found.
software/libwr2rf/board.c
View file @
9170c22d
...
...
@@ -1153,7 +1153,7 @@ libwr2rf_configure_softstop_sel(struct libwr2rf_dev *dev, unsigned sel)
}
void
libwr2rf_set_ncoreset_ignore
(
struct
libwr2rf_dev
*
dev
,
unsigned
ignore
)
libwr2rf_set_nco
_
reset_ignore
(
struct
libwr2rf_dev
*
dev
,
unsigned
ignore
)
{
unsigned
base_rf1
=
WR2RF_VME_REGS_CTRL
+
WR2RF_CTRL_REGS_RF1_RFNCO
;
unsigned
base_rf2
=
WR2RF_VME_REGS_CTRL
+
WR2RF_CTRL_REGS_RF2_RFNCO
;
...
...
software/libwr2rf/libwr2rf/api.h
View file @
9170c22d
...
...
@@ -258,5 +258,5 @@ void libwr2rf_set_wrs_timeout_latency (struct libwr2rf_dev *dev, unsigned wr_cyc
unsigned
libwr2rf_get_wrs_timeout_latency
(
struct
libwr2rf_dev
*
dev
);
/* Ignore NCO reset from WR if IGNORE is set. */
void
libwr2rf_set_ncoreset_ignore
(
struct
libwr2rf_dev
*
dev
,
unsigned
ignore
);
void
libwr2rf_set_nco
_
reset_ignore
(
struct
libwr2rf_dev
*
dev
,
unsigned
ignore
);
#endif
/* __LIBWR2RF__API__H_ */
software/libwr2rf/wr2rf.c
View file @
9170c22d
...
...
@@ -3717,6 +3717,21 @@ api_nco_reset_delay (struct libwr2rf_dev *dev, int argc, char **argv)
printf
(
"ERROR
\n
"
);
}
static
void
api_nco_reset_ignore
(
struct
libwr2rf_dev
*
dev
,
int
argc
,
char
**
argv
)
{
unsigned
val
;
if
(
argc
!=
2
)
{
printf
(
"usage: %s 0|1
\n
"
,
argv
[
0
]);
return
;
}
val
=
strtoul
(
argv
[
1
],
NULL
,
0
);
libwr2rf_set_nco_reset_ignore
(
dev
,
val
);
}
static
void
api_dds_ioupdate_delay
(
struct
libwr2rf_dev
*
dev
,
int
argc
,
char
**
argv
)
{
...
...
@@ -3883,6 +3898,7 @@ static struct cmds cmds[] =
{
"api-nco-reset-delay"
,
api_nco_reset_delay
,
"set nco reset delay"
},
{
"api-tmgio"
,
api_tmgio
,
"set lemo io output enable and termination"
},
{
"api-tmgclk"
,
api_tmgclk
,
"set lemo clk output enable and termination"
},
{
"api-nco-reset-ignore"
,
api_nco_reset_ignore
,
"ignore (or not) nco reset"
},
{
"ftw-show"
,
ftw_show
,
"show received ftw"
},
{
"ftw-last"
,
framerxtx_last
,
"display last ftw"
},
{
"ftw-framerxtx"
,
framerxtx_framerxtx
,
"display framerxtx registers"
},
...
...
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