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

Fix #94, move all bitfields into codec #182

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Jan 13, 2022

Describe the contribution
Nothing outside of the codec code should need to know about the bitfields
in the CFDP protocol definition. Everything else uses logical values.

This moves all DECLARE_FIELD macros into cf_codec.c and removes cf_field.h.

Fixes #94
Fixes #65

Testing performed
Build and sanity check CF
Run all unit tests
Run some file transfers

Expected behavior changes
None, code clean up

System(s) tested on
Ubuntu 21.10

Additional context
This just puts these definitions on the "need to know" basis, by not exposing them outside the only file where they matter.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Nothing outside of the codec code should need to know about the bitfields
in the CFDP protocol definition.  Everything else uses logical values.

This moves all DECLARE_FIELD macros into cf_codec.c and removes cf_field.h.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 13, 2022
@jphickey jphickey linked an issue Jan 18, 2022 that may be closed by this pull request
@astrogeco astrogeco merged commit 7253620 into nasa:main Jan 18, 2022
@astrogeco astrogeco added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 19, 2022
@astrogeco
Copy link
Contributor

CCB:2022-01-19 APPROVED

  • Moves bitfield usage into cf_codec.c

@jphickey jphickey deleted the fix-94-declare-field branch March 11, 2022 15:48
@skliper skliper added this to the Draco milestone Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instantiating globals in header files (FSW version) CF "cf_field.h" macro cleanup
3 participants