Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
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
1
Merge Requests
1
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 TDC 1ns 5cha
Commits
d55bc357
Commit
d55bc357
authored
Jul 26, 2022
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: fix example line number after adding SPDX tags
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
16ca8d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
library.rst
doc/software/library.rst
+16
-16
No files found.
doc/software/library.rst
View file @
d55bc357
...
...
@@ -51,7 +51,7 @@ Following an example from the ``example.c`` code available under ``tools``
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 5
4
-62
:lines: 5
5
-62
Error Reporting
----------------
...
...
@@ -72,7 +72,7 @@ Following an example from the ``example.c`` code available under ``tools``
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 74-7
5
:lines: 74-7
6
Opening and closing
--------------------
...
...
@@ -104,7 +104,7 @@ session. You can do this with :cpp:func:`fmctdc_flush()`
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 7
2-90
:lines: 7
3-91
Configuration and Status
------------------------
...
...
@@ -120,7 +120,7 @@ termination. You can use the following getter and setter:
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 12
4-129
:lines: 12
5-130
The *IRQ coalescing timeout* option allows to force an IRQ when the
timeout expire to inform the driver that there is at least one pending
...
...
@@ -130,7 +130,7 @@ timestamp to be transfered. You can use the following getter and setter:
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 13
2-137
:lines: 13
3-138
The TDC main functionality is to timestap incoming pulses. To assign a
timestamp the board needs a time reference. This can be provided by
...
...
@@ -143,7 +143,7 @@ network.
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 14
0-145
:lines: 14
1-146
If you do not have white-rabbit connected to the TDC, or simply this
is not what you want, then be sure to disable. When white-rabbit is
...
...
@@ -154,14 +154,14 @@ the time using :cpp:func:`fmctdc_set_time()` or
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 14
8-150
:lines: 14
9-151
Whater you are using white-rabbit or not, you can get the current
board time with :cpp:func:`fmctdc_get_time()`.
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 15
1-153
:lines: 15
2-154
Still about time, the user can add it's own offset without changing
the timebase using :cpp:func:`fmctdc_get_offset_user()` and
...
...
@@ -169,7 +169,7 @@ the timebase using :cpp:func:`fmctdc_get_offset_user()` and
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 15
6-161
:lines: 15
7-162
Finally, you can monitor the board temperature using
:cpp:func:`fmctdc_read_temperature()`, and pulse and timestamps
...
...
@@ -178,7 +178,7 @@ statistics with :cpp:func:`fmctdc_stats_recv_get()` and
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 22
7-232
:lines: 22
6-233
.. note::
If it can be useful there is one last status function in the API
...
...
@@ -195,7 +195,7 @@ allocator type. You can handle this option with the pair:
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 16
4-169
:lines: 16
5-170
You can configure - and get - the buffer size (number of
timestamps) with: :cpp:func:`fmctdc_get_buffer_len()` and
...
...
@@ -204,7 +204,7 @@ only when using :cpp:any:`FMCTDC_BUFFER_VMALLOC`.
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 17
2-177
:lines: 17
3-178
Finally, you can select between to modes to handle buffer's overflows:
:cpp:any:`FMCTDC_BUFFER_CIRC` and :cpp:any:`FMCTDC_BUFFER_FIFO`. The
...
...
@@ -216,7 +216,7 @@ consumed. To configure this option you can use:
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 18
0-185
:lines: 18
1-186
Acquisiton
----------
...
...
@@ -228,7 +228,7 @@ gateware using, respectivily, :cpp:func:`fmctdc_channel_enable()` and
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 19
5-205
:lines: 19
6-206
To read timestamps you may use functions :cpp:func:`fmctdc_read()`
and :cpp:func:`fmctdc_fread()`. As the name may suggest, the first
...
...
@@ -236,13 +236,13 @@ behaves like :manpage:`read` and the second as :manpage:`fread`.
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines: 2
19-223
:lines: 2
20-224
If you need to flush the buffer, you can use :cpp:func:`fmctdc_flush()`.
.. literalinclude:: ../../software/tools/example.c
:language: c
:lines:
79-81
:lines:
80-82
Timestamp Math
--------------
...
...
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