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.
29 packetsReceived(this),
64 switch (header.
type) {
81 this->bufferSendOut_out(0,
buffer);
107 if (this->receiveMode != START) {
108 this->
file.osFile.close();
125 if (this->receiveMode != DATA) {
132 const U32 dataSize = dataPacket.
dataSize;
133 if (byteOffset + dataSize > this->
file.size) {
134 this->
warnings.packetOutOfBounds(sequenceIndex, this->
file.name);
151 if (this->receiveMode == DATA) {
187 this->
file.getChecksum(computed);
200 this->
file.osFile.close();
201 this->receiveMode = START;
208 this->receiveMode = DATA;
FileUplink(const char *const name)
void checkSequenceIndex(const U32 sequenceIndex)
Check sequence index.
Warnings warnings
The total number of warnings.
void handleCancelPacket(void)
Handle a cancel packet.
FilesReceived filesReceived
The total number of files received.
File file
The file being assembled.
void log_ACTIVITY_HI_FileUplink_FileReceived(Fw::LogStringArg &fileName)
Header header
The packet header.
const Header & asHeader(void) const
void pingOut_out(NATIVE_INT_TYPE portNum, U32 key)
void log_ACTIVITY_HI_FileUplink_UplinkCanceled(void)
SerializeStatus
forward declaration for string
const EndPacket & asEndPacket(void) const
void log_WARNING_HI_FileUplink_PacketOutOfOrder_ThrottleClear(void)
U32 lastSequenceIndex
The sequence index of the last packet received.
void handleEndPacket(const Fw::FilePacket::EndPacket &endPacket)
Handle an end packet.
The type of a start packet.
const StartPacket & asStartPacket(void) const
U32 getValue(void) const
Get the checksum value.
The type of a data packet.
void pingIn_handler(const NATIVE_INT_TYPE portNum, U32 key)
void goToDataMode(void)
Go to DATA mode.
void log_WARNING_HI_FileUplink_FileWriteError_ThrottleClear(void)
The type of an end packet.
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
Header header
The packet header.
void init(void)
Object initializer.
void goToStartMode(void)
Go to START mode.
void log_WARNING_HI_FileUplink_PacketOutOfBounds_ThrottleClear(void)
PRIVATE Fw::Buffer & buffer
void getChecksum(CFDP::Checksum &checksum) const
Get the checksum.
void log_WARNING_HI_FileUplink_InvalidReceiveMode_ThrottleClear(void)
PacketsReceived packetsReceived
The total number of cancel packets.
Class representing a CFDP checksum.
U32 byteOffset
The byte offset of the packet data into the destination file.
const DataPacket & asDataPacket(void) const
Auto-generated base for FileUplink component.
void compareChecksums(const Fw::FilePacket::EndPacket &endPacket)
Compare checksums.
Declares ISF basic types.
@ OP_OK
Operation was successful.
void handleDataPacket(const Fw::FilePacket::DataPacket &dataPacket)
Handle a data packet.
const U8 * data
Pointer to the file data.
SerializeStatus fromBuffer(const Buffer &buffer)
int NATIVE_INT_TYPE
native integer type declaration
U16 dataSize
The size of the file data in the packet.