Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Beam Positoning Monitor - Software
Commits
17fdc693
Commit
17fdc693
authored
Sep 17, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/monit*: update monit registers prior to read
parent
e1a958b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
monit_amp.c
examples/monit_amp.c
+10
-1
monit_pos.c
examples/monit_pos.c
+10
-1
No files found.
examples/monit_amp.c
View file @
17fdc693
...
...
@@ -108,8 +108,16 @@ int main (int argc, char *argv [])
goto
err_bpm_client_new
;
}
uint32_t
monit_updt
=
1
;
bpm_client_err_e
err
=
bpm_set_monit_updt
(
bpm_client
,
service
,
monit_updt
);
if
(
err
!=
BPM_CLIENT_SUCCESS
){
fprintf
(
stderr
,
"[client:acq]: bpm_set_monit_updt failed
\n
"
);
goto
err_set_monit_updt
;
}
uint32_t
monit_amp
;
bpm_client_err_e
err
=
bpm_get_monit_amp_ch0
(
bpm_client
,
service
,
err
=
bpm_get_monit_amp_ch0
(
bpm_client
,
service
,
&
monit_amp
);
if
(
err
!=
BPM_CLIENT_SUCCESS
){
fprintf
(
stderr
,
"[client:acq]: bpm_get_monit_amp_ch0 failed
\n
"
);
...
...
@@ -144,6 +152,7 @@ int main (int argc, char *argv [])
err_bpm_client_new:
err_get_monit_amp:
err_set_monit_updt:
bpm_client_destroy
(
&
bpm_client
);
str_p
=
&
board_number_str
;
free
(
*
str_p
);
...
...
examples/monit_pos.c
View file @
17fdc693
...
...
@@ -108,8 +108,16 @@ int main (int argc, char *argv [])
goto
err_bpm_client_new
;
}
uint32_t
monit_updt
=
1
;
bpm_client_err_e
err
=
bpm_set_monit_updt
(
bpm_client
,
service
,
monit_updt
);
if
(
err
!=
BPM_CLIENT_SUCCESS
){
fprintf
(
stderr
,
"[client:acq]: bpm_set_monit_updt failed
\n
"
);
goto
err_set_monit_updt
;
}
uint32_t
monit_pos
;
bpm_client_err_e
err
=
bpm_get_monit_pos_x
(
bpm_client
,
service
,
err
=
bpm_get_monit_pos_x
(
bpm_client
,
service
,
&
monit_pos
);
if
(
err
!=
BPM_CLIENT_SUCCESS
){
fprintf
(
stderr
,
"[client:acq]: bpm_get_monit_pos_x failed
\n
"
);
...
...
@@ -144,6 +152,7 @@ int main (int argc, char *argv [])
err_bpm_client_new:
err_get_monit_pos:
err_set_monit_updt:
bpm_client_destroy
(
&
bpm_client
);
str_p
=
&
board_number_str
;
free
(
*
str_p
);
...
...
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