-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Reg Marr
committed
Nov 26, 2024
1 parent
6898925
commit 4b61454
Showing
16 changed files
with
794 additions
and
693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,98 @@ | ||
module FlightComputer { | ||
@ Loopback CCSDS Testing component | ||
active component CCSDSTester { | ||
############################################################################### | ||
# 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 | ||
@ Loopback CCSDS Testing component | ||
active component CCSDSTester { | ||
|
||
@ Port for receiving commands | ||
command recv port cmdIn | ||
############################################################################### | ||
# Standard AC Ports: Required for Channels, Events, Commands, and Parameters # | ||
############################################################################### | ||
@ Port for requesting the current time | ||
time get port timeCaller | ||
|
||
@ Port for sending command responses | ||
command resp port cmdResponseOut | ||
@ Port for sending command registrations | ||
command reg port cmdRegOut | ||
|
||
@ Port for sending textual representation of events | ||
text event port logTextOut | ||
@ Port for receiving commands | ||
command recv port cmdIn | ||
|
||
@ Port for sending events to downlink | ||
event port logOut | ||
@ Port for sending command responses | ||
command resp port cmdResponseOut | ||
|
||
@ Port for sending telemetry channels to downlink | ||
telemetry port tlmOut | ||
@ Port for sending textual representation of events | ||
text event port logTextOut | ||
|
||
@ Port to return the value of a parameter | ||
param get port prmGetOut | ||
@ Port for sending events to downlink | ||
event port logOut | ||
|
||
@Port to set the value of a parameter | ||
param set port prmSetOut | ||
@ Port for sending telemetry channels to downlink | ||
telemetry port tlmOut | ||
|
||
@ Port to return the value of a parameter | ||
param get port prmGetOut | ||
|
||
############################################################################## | ||
#### Test interface #### | ||
############################################################################## | ||
@ Port to set the value of a parameter | ||
param set port prmSetOut | ||
|
||
@ Output Command Status Port | ||
output port seqCmdStatus: [CmdDispatcherSequencePorts] Fw.CmdResponse | ||
############################################################################## | ||
#### Test interface #### | ||
############################################################################## | ||
@ Output Command Status Port | ||
output port seqCmdStatus: [CmdDispatcherSequencePorts] Fw.CmdResponse | ||
|
||
@ Command buffer input port for sequencers or other sources of command buffers | ||
async input port seqCmdBuff: [CmdDispatcherSequencePorts] Fw.Com | ||
@ Command buffer input port for sequencers or other sources of command buffers | ||
async input port seqCmdBuff: [CmdDispatcherSequencePorts] Fw.Com | ||
|
||
# ---------------------------------------------------------------------- | ||
# Port matching specifiers | ||
# ---------------------------------------------------------------------- | ||
match seqCmdStatus with seqCmdBuff | ||
# ---------------------------------------------------------------------- | ||
# Port matching specifiers | ||
# ---------------------------------------------------------------------- | ||
match seqCmdStatus with seqCmdBuff | ||
|
||
# ---------------------------------------------------------------------- | ||
# General Ports | ||
# ---------------------------------------------------------------------- | ||
# ---------------------------------------------------------------------- | ||
# General Ports | ||
# ---------------------------------------------------------------------- | ||
@ Buffer send in | ||
async input port bufferSendIn: Fw.BufferSend | ||
|
||
@ Buffer send in | ||
async input port bufferSendIn: Fw.BufferSend | ||
@ Buffer send out | ||
output port bufferSendOut: Fw.BufferSend | ||
|
||
@ Buffer send out | ||
output port bufferSendOut: Fw.BufferSend | ||
@ Packet send port | ||
output port PktSend: Fw.Com | ||
|
||
@ Packet send port | ||
output port PktSend: Fw.Com | ||
@ Port for receiving the status signal | ||
async input port comStatusIn: Fw.SuccessCondition | ||
|
||
@ Port for receiving the status signal | ||
async input port comStatusIn: Fw.SuccessCondition | ||
# DrvMockPorts | ||
@ Port invoked when the driver is ready to send/receive data | ||
output port drvReady: Drv.ByteStreamReady | ||
|
||
# DrvMockPorts | ||
@ Port invoked when the driver is ready to send/receive data | ||
output port drvReady: Drv.ByteStreamReady | ||
@ Port invoked when driver has received data | ||
output port drvRcv: Drv.ByteStreamRecv | ||
|
||
@ Port invoked when driver has received data | ||
output port drvRcv: Drv.ByteStreamRecv | ||
@ Port invoked to send data out the driver | ||
guarded input port drvSend: Drv.ByteStreamSend | ||
|
||
@ Port invoked to send data out the driver | ||
guarded input port drvSend: Drv.ByteStreamSend | ||
# @ Buffer return input port | ||
# async input port bufferReturn: Fw.BufferSend | ||
# @ Receives raw data from a ByteStreamDriver, ComStub, or other buffer producing component | ||
# guarded input port dataIn: Drv.ByteStreamRecv | ||
# Loopback output | ||
# @ Port invoked when driver has received data | ||
# output port $recv: Drv.ByteStreamRecv | ||
# @ Port invoked to send data out the driver | ||
# guarded input port $send: Drv.ByteStreamSend | ||
# output port allocate: Fw.BufferGet | ||
output port bufferDeallocate: Fw.BufferSend | ||
|
||
# @ Buffer return input port | ||
# async input port bufferReturn: Fw.BufferSend | ||
@ Simple command received interface | ||
async command PING | ||
|
||
# @ Receives raw data from a ByteStreamDriver, ComStub, or other buffer producing component | ||
# guarded input port dataIn: Drv.ByteStreamRecv | ||
@ Simple command received interface | ||
# async command LONG_MESSAGE(str1: string) | ||
async command MESSAGE( | ||
str1: string size 50 | ||
) | ||
|
||
# Loopback output | ||
# @ Port invoked when driver has received data | ||
# output port $recv: Drv.ByteStreamRecv | ||
} | ||
|
||
# @ Port invoked to send data out the driver | ||
# guarded input port $send: Drv.ByteStreamSend | ||
|
||
# output port allocate: Fw.BufferGet | ||
output port bufferDeallocate: Fw.BufferSend | ||
|
||
@ Simple command received interface | ||
async command PING | ||
|
||
@ Simple command received interface | ||
async command MESSAGE(str1: string size 50) | ||
# async command LONG_MESSAGE(str1: string) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#ifndef COMMON_H_ | ||
#define COMMON_H_ | ||
|
||
#define FW_CHECK(cond, err_string, ...) \ | ||
do { \ | ||
if (!(cond)) { \ | ||
Fw::Logger::log(err_string); \ | ||
__VA_ARGS__; \ | ||
break; \ | ||
} \ | ||
} while(0); | ||
#define FW_CHECK(cond, err_string, ...) \ | ||
do { \ | ||
if (!(cond)) { \ | ||
Fw::Logger::log(err_string); \ | ||
__VA_ARGS__; \ | ||
break; \ | ||
} \ | ||
} while (0); | ||
|
||
#endif // COMMON_H_ |
Oops, something went wrong.