Skip to content
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

[CONSULT-469] add initial code for field parsing #377

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gvaradarajan
Copy link
Member

@gvaradarajan gvaradarajan commented Jan 8, 2025

First of ~4 PRs for the NMEA 2000 parsing library. Introduces a macro for defining enums representing the various lookup fields present in messages and readers that parse specific data types from a byte slice. These readers will be used by the code generated with the proc macro appearing in the next PR.

Note: Going forward, to better visualize the code generated by the macros, I recommend using cargo expand (cargo install cargo-expand to install, cargo expand to run) in the micro-rdk-nmea directory. You can use it in this PR to see how the lookup macro expands but it will be more important in the subsequent PR introducing the proc macros

@gvaradarajan gvaradarajan requested a review from a team as a code owner January 8, 2025 23:44
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
micro-rdk = { path = "../micro-rdk", features = ["native"] }
Copy link
Member Author

@gvaradarajan gvaradarajan Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my great annoyance, we've gone back to a state where micro-rdk cannot be built as a feature-less library. I'll make a ticket for this and link it here

EDIT: Ticket filed (https://viam.atlassian.net/browse/RSDK-9710)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant