7 #ifndef Svc_FileUplinkComponentAc_HPP
8 #define Svc_FileUplinkComponentAc_HPP
15 #if FW_ENABLE_TEXT_LOGGING == 1
136 #if FW_ENABLE_TEXT_LOGGING == 1
139 void set_LogText_OutputPort(
182 #if FW_PORT_SERIALIZATION
190 #if FW_ENABLE_TEXT_LOGGING == 1
193 void set_LogText_OutputPort(
195 Fw::InputSerializePort* port
203 Fw::InputSerializePort* port
209 Fw::InputSerializePort* port
215 Fw::InputSerializePort* port
220 #if FW_PORT_SERIALIZATION
231 Fw::InputSerializePort* port
237 Fw::InputSerializePort* port
250 const char* compName =
""
278 #if FW_ENABLE_TEXT_LOGGING == 1
324 #if FW_ENABLE_TEXT_LOGGING == 1
329 bool isConnected_LogText_OutputPort(
611 static void m_p_bufferSendIn_in(
618 static void m_p_pingIn_in(
642 #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)
@ EVENTID_INVALIDRECEIVEMODE_THROTTLE
Throttle reset count for InvalidReceiveMode.
@ EVENTID_PACKETDUPLICATE_THROTTLE
Throttle reset count for PacketDuplicate.
@ 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_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].
@ NUM_PINGOUT_OUTPUT_PORTS
@ NUM_BUFFERSENDOUT_OUTPUT_PORTS
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 log_WARNING_HI_PacketDuplicate_ThrottleClear()
Reset throttle value for PacketDuplicate.
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_EVENTOUT_OUTPUT_PORTS
@ NUM_TLMOUT_OUTPUT_PORTS
@ NUM_LOGTEXT_OUTPUT_PORTS
@ NUM_TIMECALLER_OUTPUT_PORTS
virtual void bufferSendIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferSendIn.
void log_WARNING_HI_PacketDuplicate(U32 packetIndex)
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_BUFFERSENDIN_INPUT_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
@ CHANNELID_FILESRECEIVED
Channel ID for FilesReceived.
@ CHANNELID_WARNINGS
Channel ID for Warnings.
@ CHANNELID_PACKETSRECEIVED
Channel ID for PacketsReceived.
FwIndexType getNum_timeCaller_OutputPorts() const
void bufferSendOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferSendOut.
@ EVENTID_UPLINKCANCELED
The File Uplink component received a CANCEL packet.
@ EVENTID_PACKETDUPLICATE
The File Uplink component encountered a duplicate packet during file receipt.
@ 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_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)