mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
For all FPP enums in the framework, set the representing type to the minimum width that can represent the enum's member constants.
56 lines
1.8 KiB
Fortran
56 lines
1.8 KiB
Fortran
module Svc {
|
|
@ Dispatches command sequences to available command sequencers
|
|
active component SeqDispatcher {
|
|
|
|
enum CmdSequencerState : U8 {
|
|
AVAILABLE = 0
|
|
RUNNING_SEQUENCE_BLOCK = 1
|
|
RUNNING_SEQUENCE_NO_BLOCK = 2
|
|
}
|
|
|
|
include "SeqDispatcherCommands.fppi"
|
|
include "SeqDispatcherTelemetry.fppi"
|
|
include "SeqDispatcherEvents.fppi"
|
|
|
|
@ Dispatches a sequence to the first available command sequencer
|
|
async input port seqRunIn: Svc.CmdSeqIn
|
|
|
|
output port seqRunOut: [SeqDispatcherSequencerPorts] Svc.CmdSeqIn
|
|
|
|
@ Called by a command sequencer whenever it has finished any sequence
|
|
async input port seqDoneIn: [SeqDispatcherSequencerPorts] Fw.CmdResponse
|
|
|
|
@ Called by cmdsequencer whenever it starts any sequence
|
|
async input port seqStartIn: [SeqDispatcherSequencerPorts] Svc.CmdSeqIn
|
|
|
|
match seqRunOut with seqDoneIn
|
|
|
|
match seqRunOut with seqStartIn
|
|
|
|
###############################################################################
|
|
# Standard AC Ports: Required for Channels, Events, Commands, and Parameters #
|
|
###############################################################################
|
|
@ Port for requesting the current time
|
|
time get port timeCaller
|
|
|
|
@ Port for sending command registrations
|
|
command reg port cmdRegOut
|
|
|
|
@ Port for receiving commands
|
|
command recv port cmdIn
|
|
|
|
@ Port for sending command responses
|
|
command resp port cmdResponseOut
|
|
|
|
@ Port for sending textual representation of events
|
|
text event port logTextOut
|
|
|
|
@ Port for sending events to downlink
|
|
event port logOut
|
|
|
|
@ Port for sending telemetry channels to downlink
|
|
telemetry port tlmOut
|
|
|
|
}
|
|
}
|