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
177 ++this->m_warning_count;
178 this->m_fileUplink->tlmWrite_Warnings(m_warning_count);
200 const char *
const name
215 void bufferSendIn_handler(
244 void handleCancelPacket();
247 void checkSequenceIndex(
const U32 sequenceIndex);
253 void goToStartMode();
265 ReceiveMode m_receiveMode;
268 U32 m_lastSequenceIndex;
274 FilesReceived m_filesReceived;
277 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.