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
46eb6ee5
Commit
46eb6ee5
authored
Oct 30, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: typos and minor rewording
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
d6699f66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
fmc-adc-api.in
doc/fmc-adc-api.in
+22
-18
No files found.
doc/fmc-adc-api.in
View file @
46eb6ee5
...
...
@@ -71,8 +71,8 @@ document.
@chapter Bugs and Missing Features
To set the record straight, we'd better list the known issues right
off at the start.
A new release will follow shortly (summer 2013),
dealing with most of these details
.
off at the start.
We are aware of the issues, but they are not fixed
at this point in time
.
@itemize @bullet
...
...
@@ -104,7 +104,7 @@ This is important for maintainance and easy addition of new boards.
@item We need to add @i
{
reset
_
conf
}
and related functions, that
are currently missing. Also, direct access to configuration structures
inside the device structure should be provided. The curent API will
inside the device structure should be provided. The cur
r
ent API will
remain, though, we plan to just add easier use cases.
@end itemize
...
...
@@ -149,7 +149,7 @@ configure the underlying driver, if this is needed.
For ZIO drivers, you can use two buffer types: @i
{
kmalloc
}
and
@i
{
vmalloc
}
. Please check section @i
{
Buffers
}
in the
@i
{
fmc-adc-driver
}
manual (discussion will be moved here as we
finalize
d
automatic setting of buffer features).
finalize automatic setting of buffer features).
@c ==========================================================================
@node Configuration Overview
...
...
@@ -158,8 +158,8 @@ finalized automatic setting of buffer features).
Configuration is performed by passing parameters as 32-bit numbers.
The library defines arrays of such parameters, one for each
aspect of the overall problem (triggers, data, and so on).
Each item in the array has a symbolic name, and each array is
helped by
a bitmask that specifies which parameters have been set.
Each item in the array has a symbolic name, and each array is
associated
with
a bitmask that specifies which parameters have been set.
The choice of arrays is driven by the need for generic structures
that can be used unchanged with different hardware cards.
...
...
@@ -269,7 +269,7 @@ This is the meaning of the various arguments:
@item dev
_
id
The device identifier is used to enumerate several cards in the
same system. The number is usually depen
en
dent on the geographic
same system. The number is usually dependent on the geographic
placement of the card (bus number, slot number).
@item lun
...
...
@@ -330,12 +330,12 @@ the timestamp of the acquired buffers. See @ref{Buffers}
Configuration is the most intensive part of the library, because
there are a number of parameters that can be set or retrieved.
Unfortunately, for lack of time
,
on my side, it is not properly
Unfortunately, for lack of time on my side, it is not properly
documented here.
@c FIXME: document configuration
Briefly, configuration is described by a few data structures. Each
structure includes a ``type'' i
n
dentifier, some internal fields
structure includes a ``type'' identifier, some internal fields
and an array of configuration values. A bitmask (in the structure
itself) states which configuration values are active. All parameters
are 32 bits wide; each structure includes 64 values. The position
...
...
@@ -344,7 +344,7 @@ to this library we may need to add new values for unforeseen requirements.
We don't expect to change the API, nor replace the meaning of the
already-defined array members.
Please
see the header file,
to know the currently-defined parameters.
Please
check the header file
to know the currently-defined parameters.
The library offsers the following functions related to configuration:
...
...
@@ -371,7 +371,8 @@ future revisions of this library may include a non-ambiguous naming,
while still keeping the current API for compatibility.
@findex fmcadc
_
reset
_
conf
The @i
{
reset
}
function sets all items in the structure to the
The @i
{
reset
}
function (which is not yet implemented)
sets all items in the structure to the
advertised default for the specific device (it can only be called
after opening the device). Like the previous two, it is only concerned
with data structures, and it makes no hardware access.
...
...
@@ -458,14 +459,14 @@ struct fmcadc_buffer {
struct fmcadc
_
dev *dev;
unsigned long flags; /* internal to the library */
void *mapaddr;
unsigne
f
long maplen;
unsigne
d
long maplen;
}
;
@end smallexample
The buffer is allocated and released by the library. The rationale is
described in @ref
{
Buffers Overview
}
. the application is not allowed to
pass its own buffer. It is possible, however, for the application to
override the allocation for data by passing a pointer to
the chosen
override the allocation for data by passing a pointer to
its own preferred
allocator.
The following functions are related to buffers:
...
...
@@ -563,7 +564,7 @@ they appear:
@item free
_
fn
If the data section of the buffer was allocated by a custom allocator,
this is the pointer to
matching
@i
{
free
}
function. The two function
this is the pointer to
associated
@i
{
free
}
function. The two function
pointers match the prototypes of @i
{
malloc
}
and @i
{
free
}
.
@end table
...
...
@@ -604,7 +605,7 @@ across all configuration macros. Change applied in commit 78a2ac0b.
@item The data structures have 64 configuration items, not 32.
This requires to use @t
{
long long
}
for the mask, but users are
st
e
ongly encouraged to use the helpers @i
{
conf
_
set
}
and @i
{
conf
_
get
}
.
st
r
ongly encouraged to use the helpers @i
{
conf
_
set
}
and @i
{
conf
_
get
}
.
Change applied in commit aa1eae16.
@item Configuration functions use @t
{
conf
}
in their name, not
...
...
@@ -613,7 +614,7 @@ Change applied in commit aa1eae16.
@item The @i
{
fmcadc
_
strerror
}
function takes only the @t
{
errnum
}
argument, not @t
{
dev
}
any more. Applied in commit e83791de.
@item Applications are a
d
ked to call @i
{
fmcadc
_
init
}
and @i
{
fmcadc
_
exit
}
@item Applications are a
s
ked to call @i
{
fmcadc
_
init
}
and @i
{
fmcadc
_
exit
}
(but the latter is optional at program termination).
@item The open function states the number of shots and the total data
...
...
@@ -625,6 +626,7 @@ library (not by the caller any more) and there is a new function to
fill the buffer. Commit 3e83241e implements the prototype, but keeps
the previous semantic; code and examples have been fixed later.
@c FIXME: touches hardware or not? See description above
@item A new @i
{
reset
_
conf
}
function exists, to force default values
on all configuration variables. This can be used to prevent configuration
leakage from the previous acquisition to the next. Resetting configuration
...
...
@@ -633,8 +635,8 @@ to acquire (I personally set range and gain before I run acquisition
programs, for example).
@item There is a new function to poll for acquisition. This is useful
since
whil the process is waiting for the trigger it
may want to
do something else.
since
the process
may want to
do something else
while waiting for the trigger
.
@end itemize
...
...
@@ -645,3 +647,5 @@ do something else.
@printindex fn
@bye
@c LocalWords: fmcadc struct timestamp bitmask conf config metadata
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