7 #ifndef Svc_FileDownlinkComponentAc_HPP 8 #define Svc_FileDownlinkComponentAc_HPP 19 #if FW_ENABLE_TEXT_LOGGING == 1 196 #if FW_ENABLE_TEXT_LOGGING == 1 199 void set_textEventOut_OutputPort(
242 #if FW_PORT_SERIALIZATION 253 Fw::InputSerializePort* port
259 Fw::InputSerializePort* port
265 Fw::InputSerializePort* port
268 #if FW_ENABLE_TEXT_LOGGING == 1 271 void set_textEventOut_OutputPort(
273 Fw::InputSerializePort* port
281 Fw::InputSerializePort* port
287 Fw::InputSerializePort* port
292 #if FW_PORT_SERIALIZATION 303 Fw::InputSerializePort* port
309 Fw::InputSerializePort* port
315 Fw::InputSerializePort* port
339 const char* compName =
"" 403 #if FW_ENABLE_TEXT_LOGGING == 1 408 FwIndexType getNum_textEventOut_OutputPorts()
const;
470 #if FW_ENABLE_TEXT_LOGGING == 1 475 bool isConnected_textEventOut_OutputPort(
909 static void m_p_cmdIn_in(
924 static void m_p_Run_in(
941 static void m_p_bufferReturn_in(
948 static void m_p_pingIn_in(
996 #if FW_ENABLE_TEXT_LOGGING == 1 Cancel the downlink in progress, if any.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
FwIndexType getNum_cmdIn_InputPorts() const
void Cancel_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void regCommands()
Register commands with the Command Dispatcher.
The File Downlink component successfully sent a file.
Channel ID for FilesSent.
FwIndexType getNum_eventOut_OutputPorts() const
FwIndexType getNum_cmdResponseOut_OutputPorts() const
The File Downlink component has detected a timeout. Downlink has been canceled.
void tlmWrite_PacketsSent(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
bool isConnected_bufferSendOut_OutputPort(FwIndexType portNum)
The File Downlink component generated an error when trying to send a data packet. ...
Svc::InputSendFileRequestPort * get_SendFile_InputPort(FwIndexType portNum)
PlatformSizeType FwSizeType
virtual void unLock()
Unlock the guarded mutex.
FwIndexType getNum_pingOut_OutputPorts() const
FwIndexType getNum_tlmOut_OutputPorts() const
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
FwIndexType getNum_bufferSendOut_OutputPorts() const
Enum representing a command response.
FwIndexType getNum_FileComplete_OutputPorts() const
FwIndexType getNum_cmdRegOut_OutputPorts() const
virtual void SendPartial_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SendPartial.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
PlatformIndexType FwIndexType
The File Downlink component has detected a timeout. Downlink has been canceled.
void init()
Object initializer.
void log_ACTIVITY_HI_DownlinkCanceled(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
void log_WARNING_HI_DownlinkTimeout(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
void bufferReturn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferReturn.
The File Downlink component started a file download.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
Svc::InputSchedPort * get_Run_InputPort(FwIndexType portNum)
An error occurred reading a file.
Auto-generated base for FileDownlink component.
The File Downlink component canceled downlink of a file.
void log_WARNING_HI_FileOpenError(const Fw::StringBase &fileName) const
void log_WARNING_LO_DownlinkPartialWarning(U32 startOffset, U32 length, U32 filesize, const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
virtual void Cancel_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
Read a named file off the disk from a starting position. Divide it into packets and send the packets ...
virtual void Cancel_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command Cancel.
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum)
virtual void Run_preMsgHook(FwIndexType portNum, U32 context)
Pre-message hook for async input port Run.
void SendFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
friend class FileDownlinkComponentBaseFriend
Friend class for white-box testing.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void bufferSendOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferSendOut.
virtual ~FileDownlinkComponentBase()
Destroy FileDownlinkComponentBase object.
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
Read a named file off the disk. Divide it into packets and send the packets for transmission to the g...
FwIndexType getNum_bufferReturn_InputPorts() const
C++-compatible configuration header for fprime configuration.
FwIndexType getNum_timeCaller_OutputPorts() const
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_FileSent(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
Svc::SendFileResponse SendFile_handlerBase(FwIndexType portNum, const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName, U32 offset, U32 length)
Handler base-class function for input port SendFile.
virtual void lock()
Lock the guarded mutex.
void tlmWrite_Warnings(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void log_WARNING_HI_SendDataFail(const Fw::StringBase &sourceFileName, U32 byteOffset) const
void log_WARNING_HI_FileReadError(const Fw::StringBase &fileName, I32 status) const
void set_bufferSendOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferSendOut[portNum].
FwIndexType getNum_pingIn_InputPorts() const
Fw::InputBufferSendPort * get_bufferReturn_InputPort(FwIndexType portNum)
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
FileDownlinkComponentBase(const char *compName="")
Construct FileDownlinkComponentBase object.
virtual void SendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SendFile.
virtual Svc::SendFileResponse SendFile_handler(FwIndexType portNum, const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName, U32 offset, U32 length)=0
Handler for input port SendFile.
Send file response struct.
virtual void SendFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0
virtual void SendPartial_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName, U32 startOffset, U32 length)=0
void tlmWrite_FilesSent(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
virtual void bufferReturn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferReturn.
void SendPartial_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
bool isConnected_FileComplete_OutputPort(FwIndexType portNum)
An error occurred opening a file.
void set_FileComplete_OutputPort(FwIndexType portNum, Svc::InputSendFileCompletePort *port)
Connect port to FileComplete[portNum].
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
FwIndexType getNum_SendFile_InputPorts() const
void log_ACTIVITY_HI_SendStarted(U32 fileSize, const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
void log_WARNING_HI_DownlinkPartialFail(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName, U32 startOffset, U32 filesize) const
void Run_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port Run.
virtual void bufferReturn_preMsgHook(FwIndexType portNum, Fw::Buffer &fwBuffer)
Pre-message hook for async input port bufferReturn.
virtual void Run_handler(FwIndexType portNum, U32 context)=0
Handler for input port Run.
void FileComplete_out(FwIndexType portNum, const Svc::SendFileResponse &resp)
Invoke output port FileComplete.
Channel ID for PacketsSent.
FwIndexType getNum_Run_InputPorts() const
The File Downlink component has detected a timeout. Downlink has been canceled.