Skip to content

Commit

Permalink
doc: regenerate block documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Jun 5, 2020
1 parent de0193a commit baf08b9
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 51 deletions.
5 changes: 3 additions & 2 deletions docs/user/block_index.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Microblx Module Index
=====================

.. include:: block_random.rst
.. include:: block_pid.rst
.. include:: block_luablock.rst
.. include:: block_ramp_int32.rst
.. include:: block_ramp_double.rst
.. include:: block_rand_double.rst
.. include:: block_math_double.rst
.. include:: block_cconst.rst
.. include:: block_iconst.rst
.. include:: block_ptrig.rst
Expand Down
36 changes: 36 additions & 0 deletions docs/user/block_math_double.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Module math_double
------------------

Block math_double
^^^^^^^^^^^^^^^^^

| **Type**: cblock
| **Attributes**:
| **Meta-data**: { doc='mathmetric function block', realtime=true,}
| **License**: BSD-3-Clause

Configs
"""""""

.. csv-table::
:header: "name", "type", "doc"

func, ``char``, "math function to compute"
data_len, ``long``, "length of output data (def: 1)"
mul, ``double``, "optional factor to apply to result of func (def: 1)"
add, ``double``, "optional offset to apply to result of func (def: 0)"



Ports
"""""

.. csv-table::
:header: "name", "out type", "out len", "in type", "in len", "doc"

x, , , ``double``, 1, "math input"
y, ``double``, 1, , , "math output"



1 change: 1 addition & 0 deletions docs/user/block_ptrig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Configs
affinity, ``int``, "list of CPUs to set the pthread CPU affinity to"
thread_name, ``char``, "thread name (for dbg), default is block name"
trig_blocks, ``struct ubx_trig_spec``, "specification of blocks to trigger"
autostop_steps, ``int64_t``, "if set and > 0, block stops itself after X steps"
tstats_mode, ``int``, "enable timing statistics over all blocks"
tstats_profile_path, ``char``, "directory to write the timing stats file to"
tstats_output_rate, ``double``, "throttle output on tstats port"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Module ramp_int32
-----------------
Module ramp_double
------------------

Block ramp_int32
^^^^^^^^^^^^^^^^
Block ramp_double
^^^^^^^^^^^^^^^^^

| **Type**: cblock
| **Attributes**:
Expand All @@ -16,8 +16,8 @@ Configs
.. csv-table::
:header: "name", "type", "doc"

start, ``int32_t``, "ramp starting value (def 0)"
slope, ``int32_t``, "rate of change (def: 1)"
start, ``double``, "ramp starting value (def 0)"
slope, ``double``, "rate of change (def: 1)"
data_len, ``long``, "length of output data (def: 1)"


Expand All @@ -28,7 +28,7 @@ Ports
.. csv-table::
:header: "name", "out type", "out len", "in type", "in len", "doc"

out, ``int32_t``, 1, , , "ramp generator output"
out, ``double``, 1, , , "ramp generator output"



32 changes: 32 additions & 0 deletions docs/user/block_rand_double.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Module rand_double
------------------

Block rand_double
^^^^^^^^^^^^^^^^^

| **Type**: cblock
| **Attributes**:
| **Meta-data**: { doc='double random number generator block', realtime=true,}
| **License**: BSD-3-Clause

Configs
"""""""

.. csv-table::
:header: "name", "type", "doc"

seed, ``long``, "seed to initialize with"



Ports
"""""

.. csv-table::
:header: "name", "out type", "out len", "in type", "in len", "doc"

out, ``double``, 1, , , "rand generator output"



41 changes: 0 additions & 41 deletions docs/user/block_random.rst

This file was deleted.

2 changes: 1 addition & 1 deletion gen_block_userdoc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

BLOCKS="random pid luablock ramp_int32 cconst iconst ptrig trig lfds_cyclic hexdump mqueue"
BLOCKS="pid luablock ramp_double rand_double math_double cconst iconst ptrig trig lfds_cyclic hexdump mqueue"
BLOCK_INDEX=docs/user/block_index.rst

cat <<EOF > $BLOCK_INDEX
Expand Down

0 comments on commit baf08b9

Please sign in to comment.