8000 Require DP constants and enums in dictionary by jwest115 · Pull Request #729 · nasa/fpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Require DP constants and enums in dictionary #729

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jwest115
Copy link
Collaborator
@jwest115 jwest115 commented Jun 3, 2025

Require that the following types are defined and output them to the dictionary:

Aliases

  • FwPacketDescriptorType
  • FwDpIdType
  • FwDpPriorityType
  • FwSizeStoreType
  • FwTimeBaseStoreType
  • FwTimeContextStoreType

Enums

  • Fw.DpState
  • Fw.DpCfg.ProcType

Constants

  • Fw.DpCfg.CONTAINER_USER_DATA_SIZE

Closes #719.

Spec updates are done in nasa/fprime#3692.

@jwest115 jwest115 requested a review from bocchino June 3, 2025 00:42
@jwest115 jwest115 marked this pull request as ready for review June 4, 2025 16:11
/** The set of type symbols used by the dictionary */
dictionaryTypeSymbolSet: Set[Symbol] = Set()
/** The set of alias type symbols used by the dictionary */
dictionaryAliasSymbolSet: Set[Symbol] = Set(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should call this TypeSymbolSet instead of AliasSymbolSet. The type definitions happen to be aliases, but other type definitions are possible, and we may want to add them later.

"FwOpcodeType",
"FwP 8000 acketDescriptorType",
"FwTlmPacketizeIdType"
val impliedAliasTypeUses = List(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should call this impliedTypeUses.

)
})
a <- checkIntegerType(a.dictionaryAliasSymbolSet, "this F Prime framework type must be an alias of an integer type")
a <- checkIntegerType(a.dictionaryConstantSymbolSet, "this F Prime framework type must be a constant with a value of integer type")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
a <- checkIntegerType(a.dictionaryConstantSymbolSet, "this F Prime framework type must be a constant with a value of integer type")
a <- checkIntegerType(a.dictionaryConstantSymbolSet, "this F Prime constant must have an integer type")

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.

Add DP types/constants to dictionary required types
2 participants
0