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

Additional standard object specifications #46

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Conversation

ThirteenFish
Copy link
Contributor

@ThirteenFish ThirteenFish commented Nov 25, 2024

I went through CiA301 and compared the values there to what we've implemented. It's mostly correct, for the most part this just adds annotations for the data type (bit defs, units, limits) but there were two fixes of note:

  • 0x1200-0x3 unit32 -> uint8. Same as 89a208 did for 0x1280.
  • 0x1200 and 0x1280 are marked as RO in Table 74. The other instances of these records are RW (i.e. 0x1201 - 0x127F, 0x1281 - 0x12FF) but the first instances are RO.

I went through CiA301 and compared to the values there to what
we've implemented. It's mostly correct, for the most part this just adds
annotations for the data type (bit defs, units, limits) but there were two
fixes of note:
- 0x1200-0x3 unit32 -> uint8. Same as 89a208 did for 0x1280.
- 0x1200 and 0x1280 are marked as RO in Table 74. The other instances of
  these records are RW (i.e. 0x1201 - 0x127F, 0x1281 - 0x12FF) but the
  first instances are RO.
@ThirteenFish ThirteenFish requested a review from ryanpdx November 25, 2024 01:19
58f317f introduced _parse_bit_definitions and used it for _make_var,
but _make_arr does its own var making so it was possible to let the old
style bit definitions through. This fixes _make_arr.

Should _make_arr just use _make_var like _make_rec? Should this go in a
unit test? I don't really want to think about it right now.
@ThirteenFish ThirteenFish merged commit 824be8d into master Nov 25, 2024
1 check passed
@ThirteenFish ThirteenFish deleted the more-std-obj branch November 25, 2024 02:02
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.

2 participants