13 #ifndef Svc_FileUplink_HPP 14 #define Svc_FileUplink_HPP 35 typedef enum { START, DATA } ReceiveMode;
74 checksum = this->m_checksum;
88 m_received_files_counter(0),
89 m_fileUplink(fileUplink)
96 ++this->m_received_files_counter;
97 this->m_fileUplink->tlmWrite_FilesReceived(m_received_files_counter);
103 U32 m_received_files_counter;
111 class PacketsReceived {
118 PacketsReceived(
FileUplink *
const fileUplink) :
119 m_received_packet_count(0),
120 m_fileUplink(fileUplink)
126 void packetReceived() {
127 ++this->m_received_packet_count;
128 this->m_fileUplink->tlmWrite_PacketsReceived(m_received_packet_count);
134 U32 m_received_packet_count;
151 m_fileUplink(fileUplink)
163 void packetOutOfBounds(
164 const U32 sequenceIndex,
169 void packetOutOfOrder(
170 const U32 sequenceIndex,
171 const U32 lastSequenceIndex
175 void packetDuplicate(
176 const U32 sequenceIndex
192 ++this->m_warning_count;
193 this->m_fileUplink->tlmWrite_Warnings(m_warning_count);
215 const char *
const name
230 void bufferSendIn_handler(
259 void handleCancelPacket();
262 void checkSequenceIndex(
const U32 sequenceIndex);
265 bool checkDuplicatedPacket(
const U32 sequenceIndex);
271 void goToStartMode();
283 ReceiveMode m_receiveMode;
286 U32 m_lastSequenceIndex;
295 FilesReceived m_filesReceived;
298 PacketsReceived m_packetsReceived;
The type of a data packet.
Class representing a 32-bit checksum as mandated by the CCSDS File Delivery Protocol.
friend class FileUplinkTester
The type of a start packet.
uint8_t U8
8-bit unsigned integer
FileUplink(const char *const name)
Auto-generated base for FileUplink component.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
The type of an end packet.