F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
13 #ifndef Svc_FileDownlink_HPP
14 #define Svc_FileDownlink_HPP
39 typedef enum { IDLE, DOWNLINK, CANCEL } Type;
44 Mode(
void) : value(IDLE) { }
49 void set(
const Type value) {
58 const Type value = this->value;
111 const U32 byteOffset,
117 checksum = this->checksum;
129 n(0), fileDownlink(fileDownlink)
135 void fileSent(
void) {
137 this->fileDownlink->tlmWrite_FileDownlink_FilesSent(n);
157 n(0), fileDownlink(fileDownlink)
163 void packetSent(
void) {
165 this->fileDownlink->tlmWrite_FileDownlink_PacketsSent(n);
185 n(0), fileDownlink(fileDownlink)
191 void fileOpenError(
void);
201 this->fileDownlink->tlmWrite_FileDownlink_Warnings(n);
223 const char *
const compName,
224 const U16 downlinkPacketSize
246 void FileDownlink_SendFile_cmdHandler(
293 const U32 downlinkPacketSize;
PacketsSent packetsSent
Packets sent.
#define PRIVATE
overridable private for unit testing
PRIVATE const U32 const Fw::CmdStringArg const Fw::CmdStringArg & destFileName
< The name of the destination file on the ground
Os::File::Status sendDataPackets(void)
uint8_t U8
8-bit unsigned integer
U32 sequenceIndex
The current sequence index.
void set(const Type value)
Set the Mode value.
Type get(void)
Get the Mode value.
void sendCancelPacket(void)
void init(void)
Object initializer.
PRIVATE const U32 cmdSeq
The command sequence number.
#define FwOpcodeType
Type representation for a command opcode.
PRIVATE NATIVE_INT_TYPE FwOpcodeType opCode
void pingIn_handler(const NATIVE_INT_TYPE portNum, U32 key)
void FileDownlink_Cancel_cmdHandler(const FwOpcodeType opCode, const U32 cmdSeq)
Warnings warnings
Warnings.
Class representing a CFDP checksum.
PRIVATE NATIVE_INT_TYPE portNum
FilesSent filesSent
Files sent.
FileDownlink(const char *const compName, const U16 downlinkPacketSize)
void sendFilePacket(const Fw::FilePacket &filePacket)
void sendStartPacket(void)
int NATIVE_INT_TYPE
native integer type declaration
Auto-generated base for FileDownlink component.
PRIVATE const U32 const Fw::CmdStringArg & sourceFileName
The name of the on-board file to send.