fprime/Svc/FprimeRouter/FprimeRouter.fpp
Andrei Tumbar 5723115f5e
Add FPP Interfaces (#3709)
* Interfaces

* Point to new fpp alpha release

* Fix the fprime-gds version

* Update for framer/deframer work

* Fix cmake tests

* Clean up annotations

* Clean up final fpp
2025-06-24 09:08:44 -07:00

50 lines
1.8 KiB
Fortran

module Svc {
@ Routes packets deframed by the Deframer to the rest of the system
passive component FprimeRouter {
# ----------------------------------------------------------------------
# Router interface
# ----------------------------------------------------------------------
import Router
@ Port for forwarding non-recognized packet types
@ Ownership of the buffer is retained by the FprimeRouter, meaning receiving
@ components should either process data synchronously, or copy the data if needed
output port unknownDataOut: Svc.ComDataWithContext
@ Port for allocating buffers
output port bufferAllocate: Fw.BufferGet
@ Port for deallocating buffers
output port bufferDeallocate: Fw.BufferSend
@ An error occurred while serializing a com buffer
event SerializationError(
status: U32 @< The status of the operation
) \
severity warning high \
format "Serializing com buffer failed with status {}"
@ An error occurred while deserializing a packet
event DeserializationError(
status: U32 @< The status of the operation
) \
severity warning high \
format "Deserializing packet type failed with status {}"
###############################################################################
# Standard AC Ports for Events
###############################################################################
@ Port for requesting the current time
time get port timeCaller
@ Port for sending textual representation of events
text event port logTextOut
@ Port for sending events to downlink
event port logOut
}
}