7 #ifndef Svc_FileUplinkComponentAc_HPP 8 #define Svc_FileUplinkComponentAc_HPP 17 #if FW_ENABLE_TEXT_LOGGING == 1 141 #if FW_ENABLE_TEXT_LOGGING == 1 144 void set_LogText_OutputPort(
187 #if FW_PORT_SERIALIZATION 195 #if FW_ENABLE_TEXT_LOGGING == 1 198 void set_LogText_OutputPort(
200 Fw::InputSerializePort* port
208 Fw::InputSerializePort* port
214 Fw::InputSerializePort* port
220 Fw::InputSerializePort* port
225 #if FW_PORT_SERIALIZATION 236 Fw::InputSerializePort* port
242 Fw::InputSerializePort* port
255 const char* compName =
"" 283 #if FW_ENABLE_TEXT_LOGGING == 1 329 #if FW_ENABLE_TEXT_LOGGING == 1 334 bool isConnected_LogText_OutputPort(
623 static void m_p_bufferSendIn_in(
630 static void m_p_pingIn_in(
654 #if FW_ENABLE_TEXT_LOGGING == 1 689 std::atomic<FwIndexType> m_FileWriteErrorThrottle;
692 std::atomic<FwIndexType> m_InvalidReceiveModeThrottle;
695 std::atomic<FwIndexType> m_PacketOutOfBoundsThrottle;
698 std::atomic<FwIndexType> m_PacketOutOfOrderThrottle;
701 std::atomic<FwIndexType> m_PacketDuplicateThrottle;
The File Uplink component encountered a duplicate packet during file receipt.
void tlmWrite_FilesReceived(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
void set_bufferSendOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferSendOut[portNum].
Error decoding file packet.
FwIndexType getNum_bufferSendOut_OutputPorts() const
PlatformSizeType FwSizeType
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_UplinkCanceled() const
void log_WARNING_HI_BadChecksum(const Fw::StringBase &fileName, U32 computed, U32 read) const
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_InvalidReceiveMode_ThrottleClear()
Reset throttle value for InvalidReceiveMode.
FwIndexType getNum_bufferSendIn_InputPorts() const
void log_WARNING_HI_InvalidPacketReceived(U32 packetType) const
The File Uplink component received a packet with a type that was invalid for the current receive mode...
virtual void bufferSendIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferSendIn.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void init()
Object initializer.
void log_WARNING_HI_DecodeError(I32 status) const
FwIndexType getNum_pingIn_InputPorts() const
void log_WARNING_HI_PacketDuplicate(U32 packetIndex)
Channel ID for FilesReceived.
void log_ACTIVITY_HI_FileReceived(const Fw::StringBase &fileName) const
The File Uplink component encountered an out-of-order packet during file receipt. ...
void log_WARNING_HI_PacketOutOfOrder_ThrottleClear()
Reset throttle value for PacketOutOfOrder.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
void log_WARNING_HI_PacketOutOfBounds(U32 packetIndex, const Fw::StringBase &fileName)
Fw::InputBufferSendPort * get_bufferSendIn_InputPort(FwIndexType portNum)
void log_WARNING_HI_PacketDuplicate_ThrottleClear()
Reset throttle value for PacketDuplicate.
void bufferSendIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferSendIn.
FwIndexType getNum_pingOut_OutputPorts() const
void log_WARNING_HI_FileWriteError(const Fw::StringBase &fileName)
An error occurred opening a file.
FileUplinkComponentBase(const char *compName="")
Construct FileUplinkComponentBase object.
Throttle reset count for PacketDuplicate.
FwIndexType getNum_eventOut_OutputPorts() const
void tlmWrite_Warnings(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
Throttle reset count for PacketOutOfBounds.
During receipt of a file, the computed checksum value did not match the stored value.
bool isConnected_bufferSendOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_FileWriteError_ThrottleClear()
Reset throttle value for FileWriteError.
friend class FileUplinkTesterBase
Friend class tester to support autocoded test harness.
void log_WARNING_HI_FileOpenError(const Fw::StringBase &fileName) const
virtual ~FileUplinkComponentBase()
Destroy FileUplinkComponentBase object.
Throttle reset count for FileWriteError.
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
void log_WARNING_HI_InvalidReceiveMode(U32 packetType, U32 mode)
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
Auto-generated base for FileUplink component.
virtual void bufferSendIn_preMsgHook(FwIndexType portNum, Fw::Buffer &fwBuffer)
Pre-message hook for async input port bufferSendIn.
FwIndexType getNum_timeCaller_OutputPorts() const
The File Uplink component successfully received a file.
void bufferSendOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferSendOut.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
friend class FileUplinkTester
Friend class tester implementation to support white-box testing.
An error occurred writing to a file.
void tlmWrite_PacketsReceived(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
PlatformIndexType FwIndexType
Throttle reset count for InvalidReceiveMode.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
During receipt of a file, the File Uplink component encountered a packet with offset and size out of ...
RateGroupDivider component implementation.
Channel ID for PacketsReceived.
Throttle reset count for PacketOutOfOrder.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void log_WARNING_HI_PacketOutOfBounds_ThrottleClear()
Reset throttle value for PacketOutOfBounds.
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
void log_WARNING_HI_PacketOutOfOrder(U32 packetIndex, U32 lastPacketIndex)
FwIndexType getNum_tlmOut_OutputPorts() const
The File Uplink component received a CANCEL packet.