fprime/Svc/FileDownlinkPorts/FileDownlinkPorts.fpp
Philip Romano 3f25d8b535
Change FPP enums to smallest representation (#4342)
For all FPP enums in the framework, set the representing type to the minimum
width that can represent the enum's member constants.
2025-10-22 15:44:10 -07:00

31 lines
925 B
Fortran

module Svc {
@ Send file status enum
enum SendFileStatus : U8 {
STATUS_OK
STATUS_ERROR
STATUS_INVALID
STATUS_BUSY
}
@ Send file response struct
struct SendFileResponse {
status: Svc.SendFileStatus
context: U32
}
@ FileDownlink response to send file request
port SendFileComplete(
$resp: Svc.SendFileResponse
)
@ Request that FileDownlink downlink a file
port SendFileRequest(
sourceFileName: string size 100 @< Path of file to downlink
destFileName: string size 100 @< Path to store downlinked file at
offset: U32 @< Amount of data in bytes to downlink from file. 0 to read until end of file
length: U32 @< Amount of data in bytes to downlink from file. 0 to read until end of file
) -> Svc.SendFileResponse
}