Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
FMC ADC 100M 14b 4cha - Software
Commits
6755d59a
Commit
6755d59a
authored
Oct 30, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: added FMCADC_F_VERBOSE and documented it shortly
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
7c7398d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
fmc-adc-api.in
doc/fmc-adc-api.in
+5
-2
fmc-adc-100m14b4cha.c
lib/fmc-adc-100m14b4cha.c
+2
-2
fmcadc-lib.h
lib/fmcadc-lib.h
+1
-0
No files found.
doc/fmc-adc-api.in
View file @
6755d59a
...
...
@@ -294,11 +294,14 @@ This is the meaning of the various arguments:
information may require device-level configuration at open time.
@findex FMCADC
_
F
_
FLUSH
@findex FMCADC
_
F
_
VERBOSE
@item flags
This argument is used to pass user flags. The library currently
supports @t
{
FMCADC
_
F
_
FLUSH
}
, that reads and discards any
input samples possibly left over by a previous acquisition.
supports @t
{
FMCADC
_
F
_
FLUSH
}
(that reads and discards any
input samples possibly left over by a previous acquisition)
and @t
{
FMCADC
_
F
_
VERBOSE
}
(that enables diagnostic messages to
@i
{
stderr
}
).
currently unused, but some driver may need to
have some more information, or flags, at open time.
...
...
lib/fmc-adc-100m14b4cha.c
View file @
6755d59a
...
...
@@ -102,8 +102,8 @@ struct fmcadc_dev *fmcadc_zio_open(const struct fmcadc_board_type *b,
fa
->
samplesize
=
8
;
/* FIXME: should read sysfs instead -- where? */
fa
->
pagesize
=
getpagesize
();
/*
Finally, support verbose operation
*/
if
(
getenv
(
"LIB_FMCADC_VERBOSE"
))
/*
Support verbose operation (turn user flag into internal flag)
*/
if
(
flags
&
FMCADC_F_VERBOSE
||
getenv
(
"LIB_FMCADC_VERBOSE"
))
fa
->
flags
|=
FMCADC_FLAG_VERBOSE
;
return
(
void
*
)
&
fa
->
gid
;
...
...
lib/fmcadc-lib.h
View file @
6755d59a
...
...
@@ -133,6 +133,7 @@ static inline int fmcadc_get_conf(struct fmcadc_conf *conf,
/* Flags used in open/acq/config -- note: low-bits are used by lib-int.h */
#define FMCSDC_F_USERMASK 0xffff0000
#define FMCADC_F_FLUSH 0x00010000
#define FMCADC_F_VERBOSE 0x00020000
/*
* Actual functions follow
...
...
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