std/link: all calc example

This commit is contained in:
Michael Davidsaver
2017-04-27 19:50:46 -04:00
parent 579a0791ea
commit be8de34130
2 changed files with 12 additions and 1 deletions

View File

@@ -90,6 +90,13 @@ from <tt>const</tt> links.</li>
</ul>
<pre>
field(INP, {calc:{expr:"A+B+1",
args:[{const:5}, # A
{const:6}] # B
}})
</pre>
<p>The new link types are documented in a
<a href="links.html">separate</a><!-- href for the EPICS website -->
<a href="../html/links.html">document</a><!-- href for install tree -->

View File

@@ -6,7 +6,11 @@
\*************************************************************************/
/* lnkCalc.c */
/* TODO:
/* Current usage
* {calc:{expr:"A", args:[{...}, ...]}}
* First link in 'args' is 'A', second is 'B', and so forth.
*
* TODO:
* Support setting individual input links instead of the args list.
* {calc:{expr:"K", K:{...}}}
*/