7 #ifndef Svc_FileUplinkComponentAc_HPP
8 #define Svc_FileUplinkComponentAc_HPP
15 #if FW_ENABLE_TEXT_LOGGING == 1
134 #if FW_ENABLE_TEXT_LOGGING == 1
137 void set_LogText_OutputPort(
180 #if FW_PORT_SERIALIZATION
188 #if FW_ENABLE_TEXT_LOGGING == 1
191 void set_LogText_OutputPort(
193 Fw::InputSerializePort* port
201 Fw::InputSerializePort* port
207 Fw::InputSerializePort* port
213 Fw::InputSerializePort* port
218 #if FW_PORT_SERIALIZATION
229 Fw::InputSerializePort* port
235 Fw::InputSerializePort* port
248 const char* compName =
""
276 #if FW_ENABLE_TEXT_LOGGING == 1
322 #if FW_ENABLE_TEXT_LOGGING == 1
327 bool isConnected_LogText_OutputPort(
599 static void m_p_bufferSendIn_in(
606 static void m_p_pingIn_in(
630 #if FW_ENABLE_TEXT_LOGGING == 1
PlatformSizeType FwSizeType
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
Auto-generated base for FileUplink component.
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
void log_WARNING_HI_DecodeError(I32 status)
@ CHANNELID_FILESRECEIVED
Channel ID for FilesReceived.
@ CHANNELID_WARNINGS
Channel ID for Warnings.
@ CHANNELID_PACKETSRECEIVED
Channel ID for PacketsReceived.
@ NUM_BUFFERSENDIN_INPUT_PORTS
void log_ACTIVITY_HI_UplinkCanceled()
void log_WARNING_HI_FileWriteError(const Fw::StringBase &fileName)
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
@ EVENTID_UPLINKCANCELED
The File Uplink component received a CANCEL packet.
@ EVENTID_FILEOPENERROR
An error occurred opening a file.
@ EVENTID_FILEWRITEERROR
An error occurred writing to a file.
@ EVENTID_FILERECEIVED
The File Uplink component successfully received a file.
@ EVENTID_BADCHECKSUM
During receipt of a file, the computed checksum value did not match the stored value.
@ EVENTID_INVALIDRECEIVEMODE
The File Uplink component received a packet with a type that was invalid for the current receive mode...
@ EVENTID_PACKETOUTOFORDER
The File Uplink component encountered an out-of-order packet during file receipt.
@ EVENTID_DECODEERROR
Error decoding file packet.
@ EVENTID_PACKETOUTOFBOUNDS
During receipt of a file, the File Uplink component encountered a packet with offset and size out of ...
void log_WARNING_HI_FileWriteError_ThrottleClear()
Reset throttle value for FileWriteError.
FileUplinkComponentBase(const char *compName="")
Construct FileUplinkComponentBase object.
void bufferSendIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferSendIn.
void log_WARNING_HI_FileOpenError(const Fw::StringBase &fileName)
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
FwIndexType getNum_eventOut_OutputPorts() const
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
void log_WARNING_HI_PacketOutOfOrder_ThrottleClear()
Reset throttle value for PacketOutOfOrder.
FwIndexType getNum_bufferSendOut_OutputPorts() const
FwIndexType getNum_pingIn_InputPorts() const
@ NUM_PINGOUT_OUTPUT_PORTS
@ NUM_BUFFERSENDOUT_OUTPUT_PORTS
virtual void bufferSendIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferSendIn.
void tlmWrite_Warnings(U32 arg, Fw::Time _tlmTime=Fw::Time())
virtual ~FileUplinkComponentBase()
Destroy FileUplinkComponentBase object.
void log_WARNING_HI_PacketOutOfBounds(U32 packetIndex, const Fw::StringBase &fileName)
void tlmWrite_PacketsReceived(U32 arg, Fw::Time _tlmTime=Fw::Time())
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
bool isConnected_bufferSendOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_PacketOutOfBounds_ThrottleClear()
Reset throttle value for PacketOutOfBounds.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
@ NUM_EVENTOUT_OUTPUT_PORTS
@ NUM_TLMOUT_OUTPUT_PORTS
@ NUM_LOGTEXT_OUTPUT_PORTS
@ NUM_TIMECALLER_OUTPUT_PORTS
Fw::InputBufferSendPort * get_bufferSendIn_InputPort(FwIndexType portNum)
void tlmWrite_FilesReceived(U32 arg, Fw::Time _tlmTime=Fw::Time())
void log_WARNING_HI_BadChecksum(const Fw::StringBase &fileName, U32 computed, U32 read)
FwIndexType getNum_tlmOut_OutputPorts() const
FwIndexType getNum_timeCaller_OutputPorts() const
void bufferSendOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferSendOut.
@ EVENTID_INVALIDRECEIVEMODE_THROTTLE
Throttle reset count for InvalidReceiveMode.
@ EVENTID_PACKETOUTOFBOUNDS_THROTTLE
Throttle reset count for PacketOutOfBounds.
@ EVENTID_FILEWRITEERROR_THROTTLE
Throttle reset count for FileWriteError.
@ EVENTID_PACKETOUTOFORDER_THROTTLE
Throttle reset count for PacketOutOfOrder.
void log_WARNING_HI_PacketOutOfOrder(U32 packetIndex, U32 lastPacketIndex)
FwIndexType getNum_bufferSendIn_InputPorts() const
virtual void bufferSendIn_preMsgHook(FwIndexType portNum, Fw::Buffer &fwBuffer)
Pre-message hook for async input port bufferSendIn.
void log_WARNING_HI_InvalidReceiveMode_ThrottleClear()
Reset throttle value for InvalidReceiveMode.
void log_ACTIVITY_HI_FileReceived(const Fw::StringBase &fileName)
void set_bufferSendOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferSendOut[portNum].
friend class FileUplinkComponentBaseFriend
Friend class for white-box testing.
FwIndexType getNum_pingOut_OutputPorts() const
void log_WARNING_HI_InvalidReceiveMode(U32 packetType, U32 mode)
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
bool isConnected_eventOut_OutputPort(FwIndexType portNum)