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
1953ce25
Commit
1953ce25
authored
May 20, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libs/libbpmclient/*: add direction polarity functions
parent
8a406bae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
bpm_client_core.h
src/libs/libbpmclient/include/bpm_client_core.h
+12
-0
bpm_client_core.c
src/libs/libbpmclient/src/bpm_client_core.c
+13
-0
No files found.
src/libs/libbpmclient/include/bpm_client_core.h
View file @
1953ce25
...
...
@@ -924,6 +924,18 @@ bpm_client_err_e bpm_set_trigger_dir (bpm_client_t *self, char *service,
bpm_client_err_e
bpm_get_trigger_dir
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
chan
,
uint32_t
*
dir
);
/* Trigger Direction Polarity functions */
/* These set of functions write (set) or read (get) the trigger direction
* polarity of a specified channel "chan". When set to 0, the output
* direction signal is kept the same as the FPGA internal. When set to
* 1, the output direction signal is reversed.
* All of the functions returns BPM_CLIENT_SUCCESS if the parameter was
* correctly set or error (see bpm_client_err.h for all possible errors)*/
bpm_client_err_e
bpm_set_trigger_dir_pol
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
chan
,
uint32_t
dir_pol
);
bpm_client_err_e
bpm_get_trigger_dir_pol
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
chan
,
uint32_t
*
dir_pol
);
/* Trigger Receive/Transmit Counter Reset functions */
/* These set of functions write (set) or read (get) the reset of the
* receiver or transmitter trigger counters of a specified channel "chan".
...
...
src/libs/libbpmclient/src/bpm_client_core.c
View file @
1953ce25
...
...
@@ -1912,6 +1912,19 @@ PARAM_FUNC_CLIENT_WRITE_READ(trigger_dir, chan, dir)
chan
,
dir
);
}
/* Trigger direction */
PARAM_FUNC_CLIENT_WRITE2
(
trigger_dir_pol
,
chan
,
dir_pol
)
{
return
param_client_write2
(
self
,
service
,
TRIGGER_IFACE_OPCODE_DIR_POL
,
chan
,
dir_pol
);
}
PARAM_FUNC_CLIENT_WRITE_READ
(
trigger_dir_pol
,
chan
,
dir_pol
)
{
return
param_client_write_read
(
self
,
service
,
TRIGGER_IFACE_OPCODE_DIR_POL
,
chan
,
dir_pol
);
}
/* Trigger receive counter reset */
PARAM_FUNC_CLIENT_WRITE2
(
trigger_rcv_count_rst
,
chan
,
rcv_count_rst
)
{
...
...
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