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
0e9407c4
Commit
0e9407c4
authored
Feb 24, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libs/libbpmclient/*: add FMC250M_4CH ADC RST and ADC DIV RST functions
parent
303655eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
bpm_client_core.h
src/libs/libbpmclient/include/bpm_client_core.h
+17
-0
bpm_client_core.c
src/libs/libbpmclient/src/bpm_client_core.c
+28
-0
No files found.
src/libs/libbpmclient/include/bpm_client_core.h
View file @
0e9407c4
...
...
@@ -374,6 +374,23 @@ bpm_client_err_e bpm_set_si571_set_freq (bpm_client_t *self, char *service,
bpm_client_err_e
bpm_set_si571_defaults
(
bpm_client_t
*
self
,
char
*
service
,
double
si571_defaults
);
/******************** FMC250M SMIO Functions ******************/
/* ADC ISLA216P Control */
/* These set of functions read (get) or write (set) some ADC ISLA216P
* functionalities. Check ISLA216P datasheet for details.
* 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_rst_adcs
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
rst_adcs
);
bpm_client_err_e
bpm_get_rst_adcs
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
rst_adcs
);
bpm_client_err_e
bpm_set_rst_div_adcs
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
rst_div_adcs
);
bpm_client_err_e
bpm_get_rst_div_adcs
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
rst_div_adcs
);
/********************** ACQ SMIO Functions ********************/
/* Acquisition request */
...
...
src/libs/libbpmclient/src/bpm_client_core.c
View file @
0e9407c4
...
...
@@ -854,6 +854,34 @@ PARAM_FUNC_CLIENT_WRITE_DOUBLE(si571_defaults)
si571_defaults
);
}
/*************************** FMC250M Chips Functions *************************/
/* ISLA216P RST ADCs */
PARAM_FUNC_CLIENT_WRITE
(
rst_adcs
)
{
return
param_client_write
(
self
,
service
,
FMC250M_4CH_OPCODE_RST_ADCS
,
rst_adcs
);
}
PARAM_FUNC_CLIENT_READ
(
rst_adcs
)
{
return
param_client_read
(
self
,
service
,
FMC250M_4CH_OPCODE_RST_ADCS
,
rst_adcs
);
}
/* ISLA216P RST ADCs */
PARAM_FUNC_CLIENT_WRITE
(
rst_div_adcs
)
{
return
param_client_write
(
self
,
service
,
FMC250M_4CH_OPCODE_RST_DIV_ADCS
,
rst_div_adcs
);
}
PARAM_FUNC_CLIENT_READ
(
rst_div_adcs
)
{
return
param_client_read
(
self
,
service
,
FMC250M_4CH_OPCODE_RST_DIV_ADCS
,
rst_div_adcs
);
}
/****************** ACQ SMIO Functions ****************/
#define MIN_WAIT_TIME 1
/* in ms */
#define MSECS 1000
/* in seconds */
...
...
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