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
589ee702
Commit
589ee702
authored
Apr 06, 2021
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr2rf: add api-vtu-invalidate
parent
b3e0474d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
wr2rf.c
software/libwr2rf/wr2rf.c
+19
-0
No files found.
software/libwr2rf/wr2rf.c
View file @
589ee702
...
...
@@ -2864,6 +2864,24 @@ api_vtu_highfreq (struct libwr2rf_dev *dev, int argc, char **argv)
printf
(
"ERROR
\n
"
);
}
static
void
api_vtu_invalidate
(
struct
libwr2rf_dev
*
dev
,
int
argc
,
char
**
argv
)
{
unsigned
id
;
if
(
argc
!=
2
)
{
printf
(
"usage: %s VTU-ID
\n
"
,
argv
[
0
]);
return
;
}
id
=
parse_api_vtu
(
argv
[
1
]);
if
(
id
==
BADADDR
)
return
;
if
(
libwr2rf_vtu_program_invalidate
(
dev
,
id
)
!=
0
)
printf
(
"ERROR
\n
"
);
}
static
void
vtu_out
(
struct
libwr2rf_dev
*
dev
,
int
argc
,
char
**
argv
)
{
...
...
@@ -3408,6 +3426,7 @@ static struct cmds cmds[] =
{
"api-vtu-reset"
,
api_vtu_reset
,
"control vtu reset"
},
{
"api-vtu-infinite"
,
api_vtu_infinite
,
"program vtu in infinite mode"
},
{
"api-vtu-highfreq"
,
api_vtu_highfreq
,
"program vtu in highfreq mode"
},
{
"api-vtu-invalidate"
,
api_vtu_invalidate
,
"invalidate vtu program"
},
{
"api-lemo-dbg-sel"
,
api_lemo_dbg_sel
,
"Select the debug for the front panel lemos"
},
{
"api-diag-enable"
,
api_diag_enable
,
"configure diag unit"
},
{
"api-diag-read"
,
api_diag_read
,
"read diag unit"
},
...
...
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