-
Notifications
You must be signed in to change notification settings - Fork 1
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
5 add docs for crate usage #14
Conversation
# Conflicts: # src/can.rs # src/tests/can.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good start and nice examples. But the docs should be reorganized a bit:
- Move the docs of the
can
module to crate level, as these act as a nice starting point for the user - Add comment description to all the modules
- Add shorter + deeper descriptions and examples to the corresponding modules. In detail:
a)can
module: Explain how to configure the CAN controller (e.g. FIFO configuraiton)
b)message
module: Explain the two CAN types (CAN FD and CAN 2.0) and add short examples (just how to construct them)
src/lib.rs
Outdated
@@ -11,6 +11,8 @@ pub mod status; | |||
|
|||
pub mod filter; | |||
pub mod message; | |||
|
|||
pub mod example; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an example feature flag for. So the library user has the ability to remove the example code for prod. usage.
See LTC681X crate as reference:
https://github.com/atlas-aero/rt-LTC681X/blob/6c4407091672e7dd2e91dda18d0a686246e4fbf2/Cargo.toml#L25
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added now, example feature included by default as in rt-LTC681x crate
So the doc example should be in a separate file? |
The intent was, to move the docs of Furthermore, you might combine the RX and TX example into one. It is common practice that only one complete example is shown on the first documentation page. And then detailed examples are shown in the individual sub-pages or modules. |
Should be ready for another review now, I included the changes from #20 as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nicely elaborated documentation that will make it easier for both internal and external developers to get started.
Any updates on this? |
It's close to being finished, just need to update docs to match latest commits |
Should be updated with latest PRs, added a couple of comments and an example for constructing a CAN FD message as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check, seems several of the previous review comments are not processed yet:
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
- 5 add docs for crate usage #14 (comment)
Comments addressed now, should be ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
99% done, the only previous open comment:
#14 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.