-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation for asynTrace #62
Comments
Please allow a comment:
I added the #define ASYN_TRACE_INFO 0x0040. (There is even an old pull request) |
I'm open to the suggestion of a new ASYN_TRACE_INFO flag. If you look at the old pull request #9 you'll see that Ulrik pointed out that there is more work to be done. The asynRecord needs to be updated to support it, including the medm screen. asynDriver.html also needs to be updated. For limit switch would ASYN_TRACE_WARNING be more appropriate. How do you propose to describe when to use ASYN_TRACE_FLOW, ASYN_TRACE_WARNING, and ASYN_TRACEIO_DRIVER vs ASYN_TRACE_INFO? |
Right. I will come back with more input the next days. |
Some work in progress, not completed.
ASYN_TRACE_ERROR: ASYN_TRACEIO_DEVICE: ASYN_TRACEIO_FILTER: ASYN_TRACEIO_DRIVER: ASYN_TRACE_FLOW: ASYN_TRACE_WARNING: One personal note:
|
Yes, the documentation should go in asynDriver.html. Note that this file already has documentation on the intended use of ASYN_TRACE_ERROR, etc. in the section titled "Trace Interface". Thus I don't really understand Ben's comment
because the constants and functions are described together in the docs. Ben, how would you improve the documentation there? asynTrace asynDriver provides a trace facility with the following attributes:
|
I see. Well, I searched for "asynSetTrace" and found (only) the list of iocsh commands under Diagnostic Aids. It did not occur to me to look elsewhere for documentation of the constants. Perhaps a link from the above mentioned section to the asynTrace chapter would make it easier for newcomers to find the constants and their meaning. |
Also, from a user perspective, it would be useful to include the numeric values in the docs, since the constants cannot be used when invoking asynSetTrace[IO]Mask from the (IOC) shell. |
I have made a number of improvements to the document:
You can preview the document here: |
Thanks Mark.
/* traceIO mask definitions*/ (And the same for the info mask)
|
And the other comment: |
Thanks Mark, very nice! As far as I am concerned this is exactly the sort of improvement I wished for. |
These improvements are completed. |
From an e-mail exchange between Mark Rivers and Ben Franksen.
The asynDriver.html documentation needs to be improved to explain this better.
The text was updated successfully, but these errors were encountered: