13 #ifndef Svc_FileUplink_HPP
14 #define Svc_FileUplink_HPP
33 typedef enum { START, DATA } ReceiveMode;
70 checksum = this->m_checksum;
82 m_received_files_counter(0),
83 m_fileUplink(fileUplink)
90 ++this->m_received_files_counter;
91 this->m_fileUplink->tlmWrite_FilesReceived(m_received_files_counter);
97 U32 m_received_files_counter;
105 class PacketsReceived {
110 PacketsReceived(
FileUplink *
const fileUplink) :
111 m_received_packet_count(0),
112 m_fileUplink(fileUplink)
118 void packetReceived() {
119 ++this->m_received_packet_count;
120 this->m_fileUplink->tlmWrite_PacketsReceived(m_received_packet_count);
126 U32 m_received_packet_count;
141 m_fileUplink(fileUplink)
153 void packetOutOfBounds(
154 const U32 sequenceIndex,
159 void packetOutOfOrder(
160 const U32 sequenceIndex,
161 const U32 lastSequenceIndex
165 void packetDuplicate(
166 const U32 sequenceIndex
182 ++this->m_warning_count;
183 this->m_fileUplink->tlmWrite_Warnings(m_warning_count);
205 const char *
const name
220 void bufferSendIn_handler(
249 void handleCancelPacket();
252 void checkSequenceIndex(
const U32 sequenceIndex);
255 bool checkDuplicatedPacket(
const U32 sequenceIndex);
261 void goToStartMode();
273 ReceiveMode m_receiveMode;
276 U32 m_lastSequenceIndex;
285 FilesReceived m_filesReceived;
288 PacketsReceived m_packetsReceived;
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
Class representing a 32-bit checksum as mandated by the CCSDS File Delivery Protocol.
The type of a data packet.
The type of an end packet.
Auto-generated base for FileUplink component.
FileUplink(const char *const name)
The type of a start packet.