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
5
Merge Requests
5
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
70193bf1
Commit
70193bf1
authored
Jun 20, 2021
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: add public API functions for querying PTP/Servo state.
parent
5d2f1f84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
monitor_ppsi.c
monitor/monitor_ppsi.c
+14
-0
No files found.
monitor/monitor_ppsi.c
View file @
70193bf1
...
...
@@ -434,6 +434,20 @@ uint32_t wrc_temp_get(char *name)
return
s
->
value
;
}
int
wrc_ptp_get_servo_state
(
void
)
{
struct
wr_servo_state
*
ss
=
&
((
struct
wr_data
*
)
ppi
->
ext_data
)
->
servo_state
;
int32_t
asym
=
(
int32_t
)(
ss
->
picos_mu
-
2LL
*
ss
->
delta_ms
);
int
wr_mode
=
(
ss
->
flags
&
WR_FLAG_VALID
)
?
1
:
0
;
return
ss
->
state
;
}
int
wrc_ptp_get_state
(
void
)
{
return
ppi
->
state
;
}
int
wrc_wr_diags
(
void
)
{
struct
hal_port_state
ps
;
...
...
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