87 if (state.hostname !=
nullptr && state.port != 0) {
260 if (state.hostname !=
nullptr && state.port != 0) {
void init(FwEnumStoreType instance=0)
Initialize TcpClientComponentBase object.
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
static constexpr FwSizeType TASK_DEFAULT
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
void setIdBase(const FwIdType)
Set the ID base.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
BufferBin bins[BUFFERMGR_MAX_NUM_BINS]
set of bins to define buffers
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
QueueConfigurationEntry entries[TOTAL_PORT_COUNT]
configuration table for each queue
void startTasks(const TopologyState &state)
Start tasks.
void readParameters()
Read parameters.
Svc::FrameDetectors::CcsdsTcFrameDetector frameDetector
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
void init(FwEnumStoreType instance=0)
Initialize FprimeRouterComponentBase object.
void regCommands()
Register commands with the Command Dispatcher.
void set_drvSendOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to drvSendOut[portNum].
SocketIpStatus configure(const char *hostname, const U16 port, const U32 send_timeout_seconds=SOCKET_SEND_TIMEOUT_SECONDS, const U32 send_timeout_microseconds=SOCKET_SEND_TIMEOUT_MICROSECONDS, FwSizeType buffer_size=1024)
Configures the TcpClient settings but does not open the connection.
Svc::CmdSequencer cmdSeq(FW_OPTIONAL_NAME("cmdSeq"))
cmdSeq
Svc::BufferManager::BufferBins bins
Svc::BufferManager commsBufferManager(FW_OPTIONAL_NAME("commsBufferManager"))
commsBufferManager
#define FW_OPTIONAL_NAME(name)
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
void start(const Fw::StringBase &name, const FwTaskPriorityType priority=Os::Task::TASK_PRIORITY_DEFAULT, const Os::Task::ParamType stack=Os::Task::TASK_DEFAULT, const Os::Task::ParamType cpuAffinity=Os::Task::TASK_DEFAULT)
start the socket read task to start producing data
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
Svc::FprimeRouter fprimeRouter(FW_OPTIONAL_NAME("fprimeRouter"))
fprimeRouter
void exit()
exit task in active component
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
Fw::Buffer::SizeType bufferSize
size of the buffers in this bin. Set to zero for unused bins.
void connectComponents()
Connect components.
void regCommands()
Register commands.
void init(FwEnumStoreType instance=0)
Initialize FprimeDeframerComponentBase object.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void set_sendReturnOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to sendReturnOut[portNum].
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
FwIndexType priority
Priority of the queue [0, TOTAL_PORT_COUNT)
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
void init(FwEnumStoreType instance=0)
Initialize BufferManagerComponentBase object.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void allocateBuffer(const FwEnumStoreType identifier, Fw::MemAllocator &allocator, const FwSizeType bytes)
void init(FwEnumStoreType instance=0)
Initialize FrameAccumulatorComponentBase object.
Svc::FprimeDeframer deframer(FW_OPTIONAL_NAME("deframer"))
deframer
FwSizeType depth
Depth of the queue [0, infinity)
Svc::FrameAccumulator frameAccumulator(FW_OPTIONAL_NAME("frameAccumulator"))
frameAccumulator
Svc::FprimeFramer fprimeFramer(FW_OPTIONAL_NAME("fprimeFramer"))
fprimeFramer
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
Fw::MemAllocator & memAllocator
void tearDownComponents(const TopologyState &state)
Tear down components.
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to recv[portNum].
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void freeThreads(const TopologyState &state)
Free threads.
void init(FwSizeType queueDepth, FwEnumStoreType instance=0)
Initialize CmdSequencerComponentBase object.
void configComponents(const TopologyState &state)
Configure components.
void setup(U16 mgrID, FwEnumStoreType memID, Fw::MemAllocator &allocator, const BufferBins &bins)
set up configuration
void teardown(const TopologyState &state)
Tear down the topology.
Svc::ComStub comStub(FW_OPTIONAL_NAME("comStub"))
comStub
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void cleanup()
Deallocate internal resources (set up by configure() call)
void setup(const TopologyState &state)
Set up the topology.
void deallocateBuffer(Fw::MemAllocator &allocator)
Return allocated buffer. Call during shutdown.
void setBaseIds()
Set component base Ids.
void stop()
stop the socket read task and close the associated socket.
Svc::ComQueue comQueue(FW_OPTIONAL_NAME("comQueue"))
comQueue
void init(FwSizeType queueDepth, FwEnumStoreType instance=0)
Initialize ComQueueComponentBase object.
void loadParameters()
Load parameters.
void configure(const FrameDetector &detector, FwEnumStoreType allocationId, Fw::MemAllocator &allocator, FwSizeType store_size)
configure memory allocation for the circular buffer
void set_drvReceiveReturnOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to drvReceiveReturnOut[portNum].
void init(FwEnumStoreType instance=0)
Initialize FprimeFramerComponentBase object.
void stopTasks(const TopologyState &state)
Stop tasks.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
Drv::TcpClient comDriver(FW_OPTIONAL_NAME("comDriver"))
comDriver
void start(FwTaskPriorityType priority=Os::Task::TASK_PRIORITY_DEFAULT, FwSizeType stackSize=Os::Task::TASK_DEFAULT, FwSizeType cpuAffinity=Os::Task::TASK_DEFAULT, FwTaskIdType identifier=static_cast< FwTaskIdType >(Os::Task::TASK_DEFAULT))
called by instantiator when task is to be started
void init(FwEnumStoreType instance=0)
Initialize ComStubComponentBase object.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
void initComponents(const TopologyState &state)
Initialize components.
U16 numBuffers
number of buffers in this bin. Set to zero for unused bins.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void configure(QueueConfigurationTable queueConfig, FwEnumStoreType allocationId, Fw::MemAllocator &allocator)