![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for FileDownlink component. More...
#include <Svc/FileDownlink/FileDownlinkComponentAc.hpp>
Protected Member Functions | |
| FileDownlinkComponentBase (const char *compName="") | |
| Construct FileDownlinkComponentBase object. More... | |
| virtual | ~FileDownlinkComponentBase () |
| Destroy FileDownlinkComponentBase object. More... | |
| bool | isConnected_cmdRegOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_cmdResponseOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_eventOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) const |
| bool | isConnected_tlmOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_FileComplete_OutputPort (FwIndexType portNum) const |
| bool | isConnected_bufferSendOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_pingOut_OutputPort (FwIndexType portNum) const |
| void | cmdIn_handlerBase (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| Handler base-class function for input port cmdIn. More... | |
| virtual void | Run_handler (FwIndexType portNum, U32 context)=0 |
| Handler for input port Run. More... | |
| 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. More... | |
| virtual void | bufferReturn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
| Handler for input port bufferReturn. More... | |
| virtual void | pingIn_handler (FwIndexType portNum, U32 key)=0 |
| Handler for input port pingIn. More... | |
| void | Run_handlerBase (FwIndexType portNum, U32 context) |
| Handler base-class function for input port Run. More... | |
| 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. More... | |
| void | bufferReturn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Handler base-class function for input port bufferReturn. More... | |
| void | pingIn_handlerBase (FwIndexType portNum, U32 key) |
| Handler base-class function for input port pingIn. More... | |
| virtual void | Run_preMsgHook (FwIndexType portNum, U32 context) |
| Pre-message hook for async input port Run. More... | |
| virtual void | bufferReturn_preMsgHook (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Pre-message hook for async input port bufferReturn. More... | |
| virtual void | pingIn_preMsgHook (FwIndexType portNum, U32 key) |
| Pre-message hook for async input port pingIn. More... | |
| void | FileComplete_out (FwIndexType portNum, const Svc::SendFileResponse &resp) const |
| Invoke output port FileComplete. More... | |
| void | bufferSendOut_out (FwIndexType portNum, Fw::Buffer &fwBuffer) const |
| Invoke output port bufferSendOut. More... | |
| void | pingOut_out (FwIndexType portNum, U32 key) const |
| Invoke output port pingOut. More... | |
| void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
| Emit command response. More... | |
| virtual void | SendFile_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0 |
| virtual void | Cancel_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0 |
| virtual void | SendPartial_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName, U32 startOffset, U32 length)=0 |
| void | SendFile_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | Cancel_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | SendPartial_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| virtual void | SendFile_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command SendFile. More... | |
| virtual void | Cancel_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command Cancel. More... | |
| virtual void | SendPartial_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command SendPartial. More... | |
| void | log_WARNING_HI_FileOpenError (const Fw::StringBase &fileName) const |
| void | log_WARNING_HI_FileReadError (const Fw::StringBase &fileName, I32 status) const |
| void | log_ACTIVITY_HI_FileSent (const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const |
| void | log_ACTIVITY_HI_DownlinkCanceled (const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const |
| void | log_WARNING_LO_DownlinkPartialWarning (U32 startOffset, U32 length, 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 | log_WARNING_HI_SendDataFail (const Fw::StringBase &sourceFileName, U32 byteOffset) const |
| void | log_ACTIVITY_HI_SendStarted (U32 fileSize, const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const |
| void | log_WARNING_HI_DownlinkZeroSizeFile (const Fw::StringBase &sourceFileName) const |
| void | log_WARNING_HI_FilenameSourceOverflow () const |
| void | log_WARNING_HI_FilenameDestinationOverflow () const |
| void | tlmWrite (FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const |
| void | tlmWrite_FilesSent (U32 arg, Fw::Time _tlmTime=Fw::Time()) const |
| void | tlmWrite_PacketsSent (U32 arg, Fw::Time _tlmTime=Fw::Time()) const |
| void | tlmWrite_Warnings (U32 arg, Fw::Time _tlmTime=Fw::Time()) const |
| Fw::Time | getTime () const |
| virtual void | lock () |
| Lock the guarded mutex. More... | |
| virtual void | unLock () |
| Unlock the guarded mutex. More... | |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
| ActiveComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~ActiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| initialization code More... | |
| virtual void | preamble () |
| A function that will be called before the event loop is entered. More... | |
| MsgDispatchStatus | dispatch () |
| The function that will dispatching messages. More... | |
| virtual void | finalizer () |
| A function that will be called after exiting the loop. More... | |
Protected Member Functions inherited from Fw::QueuedComponentBase | |
| QueuedComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~QueuedComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| MsgDispatchStatus | dispatchAvailableMessages () |
| dispatches all messages currently in the queue, returning status of the dispatch More... | |
| FwSizeType | getNumMsgsDropped () |
| return number of messages dropped More... | |
| void | incNumMsgDropped () |
| increment the number of messages dropped More... | |
Protected Member Functions inherited from Fw::PassiveComponentBase | |
| PassiveComponentBase (const char *name) | |
| Named constructor. More... | |
| virtual | ~PassiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| Initialization function. More... | |
| FwEnumStoreType | getInstance () const |
Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init () |
| Object initializer. More... | |
Static Protected Member Functions | |
| static constexpr FwIndexType | getNum_cmdIn_InputPorts () |
| static constexpr FwIndexType | getNum_Run_InputPorts () |
| static constexpr FwIndexType | getNum_SendFile_InputPorts () |
| static constexpr FwIndexType | getNum_bufferReturn_InputPorts () |
| static constexpr FwIndexType | getNum_pingIn_InputPorts () |
| static constexpr FwIndexType | getNum_cmdRegOut_OutputPorts () |
| static constexpr FwIndexType | getNum_cmdResponseOut_OutputPorts () |
| static constexpr FwIndexType | getNum_eventOut_OutputPorts () |
| static constexpr FwIndexType | getNum_timeCaller_OutputPorts () |
| static constexpr FwIndexType | getNum_tlmOut_OutputPorts () |
| static constexpr FwIndexType | getNum_FileComplete_OutputPorts () |
| static constexpr FwIndexType | getNum_bufferSendOut_OutputPorts () |
| static constexpr FwIndexType | getNum_pingOut_OutputPorts () |
Friends | |
| class | FileDownlinkTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | FileDownlinkTester |
| Friend class tester implementation to support white-box testing. More... | |
Additional Inherited Members | |
Public Types inherited from Fw::ActiveComponentBase | |
| enum | { ACTIVE_COMPONENT_EXIT } |
Public Types inherited from Fw::QueuedComponentBase | |
| enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
Protected Attributes inherited from Fw::ActiveComponentBase | |
| Os::Task | m_task |
| task object for active component More... | |
Protected Attributes inherited from Fw::QueuedComponentBase | |
| Os::Queue | m_queue |
| queue object for active component More... | |
Auto-generated base for FileDownlink component.
A component for downlinking files
Definition at line 46 of file FileDownlinkComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
| Enumerator | |
|---|---|
| NUM_CMDIN_INPUT_PORTS | |
Definition at line 66 of file FileDownlinkComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_RUN_INPUT_PORTS | |
| NUM_SENDFILE_INPUT_PORTS | |
| NUM_BUFFERRETURN_INPUT_PORTS | |
| NUM_PINGIN_INPUT_PORTS | |
Definition at line 71 of file FileDownlinkComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
| Enumerator | |
|---|---|
| NUM_CMDREGOUT_OUTPUT_PORTS | |
| NUM_CMDRESPONSEOUT_OUTPUT_PORTS | |
| NUM_EVENTOUT_OUTPUT_PORTS | |
| NUM_TEXTEVENTOUT_OUTPUT_PORTS | |
| NUM_TIMECALLER_OUTPUT_PORTS | |
| NUM_TLMOUT_OUTPUT_PORTS | |
Definition at line 79 of file FileDownlinkComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_FILECOMPLETE_OUTPUT_PORTS | |
| NUM_BUFFERSENDOUT_OUTPUT_PORTS | |
| NUM_PINGOUT_OUTPUT_PORTS | |
Definition at line 89 of file FileDownlinkComponentAc.hpp.
|
protected |
Command opcodes.
Definition at line 96 of file FileDownlinkComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 103 of file FileDownlinkComponentAc.hpp.
|
protected |
Channel IDs.
| Enumerator | |
|---|---|
| CHANNELID_FILESSENT | Channel ID for FilesSent. |
| CHANNELID_PACKETSSENT | Channel ID for PacketsSent. |
| CHANNELID_WARNINGS | Channel ID for Warnings. |
Definition at line 118 of file FileDownlinkComponentAc.hpp.
|
protected |
Construct FileDownlinkComponentBase object.
| compName | The component name |
Definition at line 808 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Destroy FileDownlinkComponentBase object.
Definition at line 815 of file FileDownlinkComponentAc.cpp.
|
protectedpure virtual |
Handler for input port bufferReturn.
| portNum | The port number |
| fwBuffer | The buffer |
|
protected |
Handler base-class function for input port bufferReturn.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 1086 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port bufferReturn.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 1209 of file FileDownlinkComponentAc.cpp.
|
protected |
Invoke output port bufferSendOut.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 1253 of file FileDownlinkComponentAc.cpp.
|
protectedpure virtual |
Handler for command Cancel
Cancel the downlink in progress, if any
| opCode | The opcode |
| cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command Cancel
Cancel the downlink in progress, if any
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1375 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command Cancel.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1512 of file FileDownlinkComponentAc.cpp.
|
protected |
Handler base-class function for input port cmdIn.
| portNum | The port number |
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 946 of file FileDownlinkComponentAc.cpp.
|
protected |
Emit command response.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 1299 of file FileDownlinkComponentAc.cpp.
|
protected |
Invoke output port FileComplete.
| portNum | The port number |
Definition at line 1233 of file FileDownlinkComponentAc.cpp.
| Fw::InputBufferSendPort * Svc::FileDownlinkComponentBase::get_bufferReturn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 463 of file FileDownlinkComponentAc.cpp.
| Fw::InputCmdPort * Svc::FileDownlinkComponentBase::get_cmdIn_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
| portNum | The port number |
Definition at line 422 of file FileDownlinkComponentAc.cpp.
| Svc::InputPingPort * Svc::FileDownlinkComponentBase::get_pingIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 474 of file FileDownlinkComponentAc.cpp.
| Svc::InputSchedPort * Svc::FileDownlinkComponentBase::get_Run_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 441 of file FileDownlinkComponentAc.cpp.
| Svc::InputSendFileRequestPort * Svc::FileDownlinkComponentBase::get_SendFile_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 452 of file FileDownlinkComponentAc.cpp.
|
inlinestaticprotected |
Get the number of bufferReturn input ports
Definition at line 408 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of bufferSendOut output ports
Definition at line 487 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdIn input ports
Definition at line 381 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdRegOut output ports
Definition at line 428 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdResponseOut output ports
Definition at line 435 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of eventOut output ports
Definition at line 442 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of FileComplete output ports
Definition at line 480 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingIn input ports
Definition at line 415 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingOut output ports
Definition at line 494 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Run input ports
Definition at line 394 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of SendFile input ports
Definition at line 401 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of timeCaller output ports
Definition at line 460 of file FileDownlinkComponentAc.hpp.
|
inlinestaticprotected |
Get the number of tlmOut output ports
Definition at line 467 of file FileDownlinkComponentAc.hpp.
|
protected |
| void Svc::FileDownlinkComponentBase::init | ( | FwSizeType | queueDepth, |
| FwEnumStoreType | instance = 0 |
||
| ) |
Initialize FileDownlinkComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 77 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port bufferSendOut is connected
| portNum | The port number |
Definition at line 916 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port cmdRegOut is connected
| portNum | The port number |
Definition at line 827 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port cmdResponseOut is connected
| portNum | The port number |
Definition at line 838 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port eventOut is connected
| portNum | The port number |
Definition at line 849 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port FileComplete is connected
| portNum | The port number |
Definition at line 905 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
| portNum | The port number |
Definition at line 927 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port timeCaller is connected
| portNum | The port number |
Definition at line 875 of file FileDownlinkComponentAc.cpp.
|
protected |
Check whether port tlmOut is connected
| portNum | The port number |
Definition at line 886 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Lock the guarded mutex.
Definition at line 2681 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event DownlinkCanceled
The File Downlink component canceled downlink of a file
| sourceFileName | The source file name |
| destFileName | The destination file name |
Definition at line 1796 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event FileSent
The File Downlink component successfully sent a file
| sourceFileName | The source file name |
| destFileName | The destination file name |
Definition at line 1708 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event SendStarted
The File Downlink component started a file download.
| fileSize | The source file size |
| sourceFileName | The source filename |
| destFileName | The destination filename |
Definition at line 2245 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event DownlinkPartialFail
The File Downlink component has detected a timeout. Downlink has been canceled.
| sourceFileName | The source filename |
| destFileName | The destination file name |
| startOffset | Starting file offset in bytes |
| filesize | Size of source file |
Definition at line 2026 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event DownlinkZeroSizeFile
The File Downlink component stopped due to a zero-size file
| sourceFileName | The source file name |
Definition at line 2351 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event FilenameDestinationOverflow
Supplied filename has overflowed
Definition at line 2491 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event FilenameSourceOverflow
Supplied filename has overflowed. This intentionally discards the filename to avoid cascading overflows.
Definition at line 2426 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event FileOpenError
An error occurred opening a file
| fileName | The name of the file |
Definition at line 1538 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event FileReadError
An error occurred reading a file
| fileName | The name of the file |
| status | The file status of read |
Definition at line 1613 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event SendDataFail
The File Downlink component generated an error when trying to send a data packet.
| sourceFileName | The source filename |
| byteOffset | Byte offset |
Definition at line 2150 of file FileDownlinkComponentAc.cpp.
|
protected |
Log event DownlinkPartialWarning
The File Downlink component has detected a timeout. Downlink has been canceled.
| startOffset | Starting file offset in bytes |
| length | Number of bytes to downlink |
| filesize | Size of source file |
| sourceFileName | The source filename |
| destFileName | The destination file name |
Definition at line 1884 of file FileDownlinkComponentAc.cpp.
|
protectedpure virtual |
Handler for input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
|
protected |
Handler base-class function for input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1139 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1218 of file FileDownlinkComponentAc.cpp.
|
protected |
Invoke output port pingOut.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1273 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 783 of file FileDownlinkComponentAc.cpp.
|
protectedpure virtual |
Handler for input port Run.
| portNum | The port number |
| context | The call order |
|
protected |
Handler base-class function for input port Run.
| portNum | The port number |
| context | The call order |
Definition at line 998 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port Run.
| portNum | The port number |
| context | The call order |
Definition at line 1200 of file FileDownlinkComponentAc.cpp.
|
protectedpure virtual |
Handler for command SendFile
Read a named file off the disk. Divide it into packets and send the packets for transmission to the ground.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| sourceFileName | The name of the on-board file to send |
| destFileName | The name of the destination file on the ground |
|
protected |
Base-class handler function for command SendFile
Read a named file off the disk. Divide it into packets and send the packets for transmission to the ground.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1316 of file FileDownlinkComponentAc.cpp.
|
protectedpure virtual |
Handler for input port SendFile.
| portNum | The port number |
| sourceFileName | Path of file to downlink |
| destFileName | Path to store downlinked file at |
| offset | Amount of data in bytes to downlink from file. 0 to read until end of file |
| length | Amount of data in bytes to downlink from file. 0 to read until end of file |
|
protected |
Handler base-class function for input port SendFile.
| portNum | The port number |
| sourceFileName | Path of file to downlink |
| destFileName | Path to store downlinked file at |
| offset | Amount of data in bytes to downlink from file. 0 to read until end of file |
| length | Amount of data in bytes to downlink from file. 0 to read until end of file |
Definition at line 1051 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SendFile.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1501 of file FileDownlinkComponentAc.cpp.
|
protectedpure virtual |
Handler for command SendPartial
Read a named file off the disk from a starting position. Divide it into packets and send the packets for transmission to the ground.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| sourceFileName | The name of the on-board file to send |
| destFileName | The name of the destination file on the ground |
| startOffset | Starting offset of the source file |
| length | Number of bytes to send from starting offset. Length of 0 implies until the end of the file |
|
protected |
Base-class handler function for command SendPartial
Read a named file off the disk from a starting position. Divide it into packets and send the packets for transmission to the ground.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1434 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SendPartial.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1523 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_bufferSendOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputBufferSendPort * | port | ||
| ) |
Connect port to bufferSendOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 603 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_cmdRegOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdRegPort * | port | ||
| ) |
Connect port to cmdRegOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 493 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_cmdResponseOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdResponsePort * | port | ||
| ) |
Connect port to cmdResponseOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 507 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_eventOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to eventOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 521 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_FileComplete_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputSendFileCompletePort * | port | ||
| ) |
Connect port to FileComplete[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 589 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_pingOut_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputPingPort * | port | ||
| ) |
Connect port to pingOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 617 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_timeCaller_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to timeCaller[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 553 of file FileDownlinkComponentAc.cpp.
| void Svc::FileDownlinkComponentBase::set_tlmOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTlmPort * | port | ||
| ) |
Connect port to tlmOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 567 of file FileDownlinkComponentAc.cpp.
|
protected |
Write telemetry channel given its local id and serialized value. Warning: This is a low level telemetry interface that does not guarentee channel type safety. It is up to the caller to make sure the serialized data matches the definition in the model. Update on change semantics are ignored, this telemetry is always written
| id | The channel id |
| _tlmBuff | The serialized telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 2560 of file FileDownlinkComponentAc.cpp.
|
protected |
Write telemetry channel FilesSent
The total number of files sent
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 2591 of file FileDownlinkComponentAc.cpp.
|
protected |
Write telemetry channel PacketsSent
The total number of packets sent
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 2613 of file FileDownlinkComponentAc.cpp.
|
protected |
Write telemetry channel Warnings
The total number of warnings
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 2635 of file FileDownlinkComponentAc.cpp.
|
protectedvirtual |
Unlock the guarded mutex.
Definition at line 2687 of file FileDownlinkComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 57 of file FileDownlinkComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 55 of file FileDownlinkComponentAc.hpp.