Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
73da2fee
Commit
73da2fee
authored
Jan 05, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/wrpc-dump: add dump_type_pp_servo_flag
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
5e5f8f36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
dump-info.c
dump-info.c
+1
-1
dump-info.h
include/dump-info.h
+2
-0
wrpc-dump.c
tools/wrpc-dump.c
+14
-0
No files found.
dump-info.c
View file @
73da2fee
...
...
@@ -105,7 +105,7 @@ struct dump_info dump_info[] = {
DUMP_FIELD
(
pp_time
,
delayMS
),
/* Shared with extension servo */
DUMP_FIELD
(
pp_time
,
meanDelay
),
/* Shared with extension servo */
DUMP_FIELD
(
pp_time
,
offsetFromMaster
),
/* Shared with extension servo */
DUMP_FIELD
(
unsigned_lon
g
,
flags
),
DUMP_FIELD
(
pp_servo_fla
g
,
flags
),
DUMP_FIELD
(
int
,
reset_address
),
...
...
include/dump-info.h
View file @
73da2fee
...
...
@@ -61,6 +61,7 @@ enum dump_type {
dump_type_wr_role_Enumeration8
,
dump_type_pp_pdstate
,
dump_type_exstate
,
dump_type_pp_servo_flag
,
};
/* because of the sizeof later on, we need these typedefs */
...
...
@@ -85,6 +86,7 @@ typedef int wr_role;
typedef
Enumeration8
wr_role_Enumeration8
;
typedef
pp_pdstate_t
pp_pdstate
;
typedef
pp_exstate_t
exstate
;
typedef
unsigned
long
pp_servo_flag
;
/*
* This is generated with the target compiler, and then linked
...
...
tools/wrpc-dump.c
View file @
73da2fee
...
...
@@ -132,6 +132,7 @@ void dump_one_field(void *addr, struct dump_info *info, char *info_prefix)
case
dump_type_wr_role_Enumeration8
:
case
dump_type_pp_pdstate
:
case
dump_type_exstate
:
case
dump_type_pp_servo_flag
:
if
(
size
==
1
)
i
=
*
(
uint8_t
*
)
p
;
else
if
(
size
==
2
)
...
...
@@ -416,6 +417,19 @@ void dump_one_field(void *addr, struct dump_info *info, char *info_prefix)
print_str
(
char_p
);
printf
(
"
\n
"
);
break
;
case
dump_type_pp_servo_flag
:
switch
(
i
)
{
ENUM_TO_P_IN_CASE
(
PP_SERVO_FLAG_VALID
,
char_p
);
ENUM_TO_P_IN_CASE
(
PP_SERVO_FLAG_WAIT_HW
,
char_p
);
ENUM_TO_P_IN_CASE
(
PP_SERVO_FLAG_VALID
|
PP_SERVO_FLAG_WAIT_HW
,
char_p
);
default:
char_p
=
"Unknown"
;
}
printf
(
"%d"
,
i
);
print_str
(
char_p
);
printf
(
"
\n
"
);
break
;
}
}
void
dump_many_fields
(
void
*
addr
,
char
*
name
,
char
*
prefix
)
...
...
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