Skip to content

Commit f8ac648

Browse files
committed
Working ComFprime subtopology
1 parent 7ea3940 commit f8ac648

2 files changed

Lines changed: 56 additions & 33 deletions

File tree

Svc/Subtopologies/ComCcsds/ComCcsds.fpp

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
module ComCcsds {
22

3-
# Usage Note:
4-
#
5-
# When importing this subtopology, users shall establish 5 port connections with a component implementing
6-
# the Svc.Com (Svc/Interfaces/Com.fpp) interface. They are as follows:
7-
#
8-
# 1) Outputs:
9-
# - ComCcsds.framer.dataOut -> [Svc.Com].dataIn
10-
# - ComCcsds.frameAccumulator.dataReturnOut -> [Svc.Com].dataReturnIn
11-
# 2) Inputs:
12-
# - [Svc.Com].dataReturnOut -> ComCcsds.framer.dataReturnIn
13-
# - [Svc.Com].comStatusOut -> ComCcsds.framer.comStatusIn
14-
# - [Svc.Com].dataOut -> ComCcsds.frameAccumulator.dataIn
15-
163
# ComPacket Queue enum for queue types
174
enum Ports_ComPacketQueue {
185
EVENTS,
@@ -117,10 +104,23 @@ module ComCcsds {
117104

118105
instance apidManager: Svc.Ccsds.ApidManager base id ComCcsdsConfig.BASE_ID + 0x08000
119106

120-
instance comStub: Svc.ComStub base id 0x10020000
121-
107+
instance comStub: Svc.ComStub base id ComCcsdsConfig.BASE_ID + 0x09000
122108

123109
topology FramingSubtopology {
110+
# Usage Note:
111+
#
112+
# When importing this subtopology, users shall establish 5 port connections with a component implementing
113+
# the Svc.Com (Svc/Interfaces/Com.fpp) interface. They are as follows:
114+
#
115+
# 1) Outputs:
116+
# - ComCcsds.framer.dataOut -> [Svc.Com].dataIn
117+
# - ComCcsds.frameAccumulator.dataReturnOut -> [Svc.Com].dataReturnIn
118+
# 2) Inputs:
119+
# - [Svc.Com].dataReturnOut -> ComCcsds.framer.dataReturnIn
120+
# - [Svc.Com].comStatusOut -> ComCcsds.framer.comStatusIn
121+
# - [Svc.Com].dataOut -> ComCcsds.frameAccumulator.dataIn
122+
123+
124124
# Active Components
125125
instance comQueue
126126

@@ -172,8 +172,9 @@ module ComCcsds {
172172
fprimeRouter.bufferDeallocate -> commsBufferManager.bufferSendIn
173173
}
174174

175-
} # end topology
175+
} # end FramingSubtopology
176176

177+
# This subtopology uses FramingSubtopology with a ComStub component for Com Interface
177178
topology Subtopology {
178179
import FramingSubtopology
179180

@@ -190,5 +191,6 @@ module ComCcsds {
190191
ComCcsds.frameAccumulator.dataReturnOut -> comStub.dataReturnIn
191192
}
192193

193-
} # end topology
194-
} # end ComCcsds Subtopology
194+
} # end Subtopology
195+
196+
} # end ComCcsds

Svc/Subtopologies/ComFprime/ComFprime.fpp

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
module ComFprime {
22

3-
# Usage Note:
4-
#
5-
# When importing this subtopology, users shall establish 5 port connections with a component implementing
6-
# the Svc.Com (Svc/Interfaces/Com.fpp) interface. They are as follows:
7-
#
8-
# 1) Outputs:
9-
# - ComFprime.framer.dataOut -> [Svc.Com].dataIn
10-
# - ComFprime.frameAccumulator.dataReturnOut -> [Svc.Com].dataReturnIn
11-
# 2) Inputs:
12-
# - [Svc.Com].dataReturnOut -> ComFprime.framer.dataReturnIn
13-
# - [Svc.Com].comStatusOut -> ComFprime.framer.comStatusIn
14-
# - [Svc.Com].dataOut -> ComFprime.frameAccumulator.dataIn
15-
163
enum Ports_ComPacketQueue {
174
EVENTS,
185
TELEMETRY,
@@ -105,7 +92,22 @@ module ComFprime {
10592

10693
instance fprimeRouter: Svc.FprimeRouter base id ComFprimeConfig.BASE_ID + 0x05000
10794

108-
topology Subtopology {
95+
instance comStub: Svc.ComStub base id ComFprimeConfig.BASE_ID + 0x06000
96+
97+
topology FramingSubtopology {
98+
# Usage Note:
99+
#
100+
# When importing this subtopology, users shall establish 5 port connections with a component implementing
101+
# the Svc.Com (Svc/Interfaces/Com.fpp) interface. They are as follows:
102+
#
103+
# 1) Outputs:
104+
# - ComFprime.framer.dataOut -> [Svc.Com].dataIn
105+
# - ComFprime.frameAccumulator.dataReturnOut -> [Svc.Com].dataReturnIn
106+
# 2) Inputs:
107+
# - [Svc.Com].dataReturnOut -> ComFprime.framer.dataReturnIn
108+
# - [Svc.Com].comStatusOut -> ComFprime.framer.comStatusIn
109+
# - [Svc.Com].dataOut -> ComFprime.frameAccumulator.dataIn
110+
109111
# Active Components
110112
instance comQueue
111113

@@ -145,5 +147,24 @@ module ComFprime {
145147
}
146148

147149

148-
} # end topology
150+
} # end FramingSubtopology
151+
152+
# This subtopology uses FramingSubtopology with a ComStub component for Com Interface
153+
topology Subtopology {
154+
import FramingSubtopology
155+
156+
instance comStub
157+
158+
connections ComStub {
159+
# Framer <-> ComStub (Downlink)
160+
ComFprime.framer.dataOut -> comStub.dataIn
161+
comStub.dataReturnOut -> ComFprime.framer.dataReturnIn
162+
comStub.comStatusOut -> ComFprime.framer.comStatusIn
163+
164+
# ComStub <-> FrameAccumulator (Uplink)
165+
comStub.dataOut -> ComFprime.frameAccumulator.dataIn
166+
ComFprime.frameAccumulator.dataReturnOut -> comStub.dataReturnIn
167+
}
168+
169+
} # end Subtopology
149170
} # end ComFprime Subtopology

0 commit comments

Comments
 (0)