Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
b95f0df8
Commit
b95f0df8
authored
Sep 17, 2018
by
Maciej Lipinski
Committed by
Adam Wujek
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[calibrate msg] changed order of fields (calRetry and CalSendPatter) to follow WR Spec
parent
5f68aa48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
wr-msg.c
proto-ext-whiterabbit/wr-msg.c
+9
-4
No files found.
proto-ext-whiterabbit/wr-msg.c
View file @
b95f0df8
...
...
@@ -154,10 +154,10 @@ int msg_pack_wrsig(struct pp_instance *ppi, Enumeration16 wr_msg_id)
case
CALIBRATE
:
if
(
WR_DSPOR
(
ppi
)
->
calibrated
)
{
put_be16
(
buf
+
56
,
(
WR_DSPOR
(
ppi
)
->
calRetry
<<
8
|
0x0000
));
(
WR_DSPOR
(
ppi
)
->
calRetry
|
0x0000
));
}
else
{
put_be16
(
buf
+
56
,
(
WR_DSPOR
(
ppi
)
->
calRetry
<<
8
|
0x0001
));
(
WR_DSPOR
(
ppi
)
->
calRetry
|
0x0100
));
}
put_be32
(
buf
+
58
,
WR_DSPOR
(
ppi
)
->
calPeriod
);
len
=
14
;
...
...
@@ -245,10 +245,15 @@ void msg_unpack_wrsig(struct pp_instance *ppi, void *buf,
switch
(
wr_msg_id
)
{
case
CALIBRATE
:
WR_DSPOR
(
ppi
)
->
otherNodeCalSendPattern
=
0x00FF
&
get_be16
(
buf
+
56
);
WR_DSPOR
(
ppi
)
->
otherNodeCalRetry
=
0x00FF
&
(
get_be16
(
buf
+
56
)
>>
8
);
WR_DSPOR
(
ppi
)
->
otherNodeCalRetry
=
0x00FF
&
get_be16
(
buf
+
56
);
WR_DSPOR
(
ppi
)
->
otherNodeCalPeriod
=
get_be32
(
buf
+
58
);
pp_diag
(
ppi
,
frames
,
1
,
"otherNodeCalPeriod "
"from frame = 0x%x | stored = 0x%x
\n
"
,
get_be32
(
buf
+
58
),
WR_DSPOR
(
ppi
)
->
otherNodeCalPeriod
);
break
;
case
CALIBRATED
:
...
...
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