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

Disjoint Fields #73

Closed
cujomalainey opened this issue Aug 9, 2021 · 1 comment
Closed

Disjoint Fields #73

cujomalainey opened this issue Aug 9, 2021 · 1 comment

Comments

@cujomalainey
Copy link

Hello and thank you for your excellent crate, I have been reading through it for a while before I start a project and I wanted to get your opinion about how to best tackle an issue in my project.

I am planning on writing some crates to support Garmin's ANT spec and most of their data is LE and contiguous fields... except one legacy profile which has the following layout.

Bit 0-7 8-11 12-15 16-23
Field LSB Field A LSN Field B MSN Field A MSB Field B

Does your library have any mechanism to resolve this legacy issue or do you know if there are any tricks I can employ to get around this?

P.S. I am new to rust, and am planning to use this project to get better with the language. Also I am avoiding building anything too big as the plan is to support embedded targets.

@cujomalainey
Copy link
Author

I think my best bet is to use private fields and just write the getters and setters manually.

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

No branches or pull requests

1 participant