17 m_bufferState(
Fw::Buffer::OwnershipState::OWNED),
18 m_frameBuffer(m_frameBufferStore, sizeof(m_frameBufferStore)),
19 m_frameSerializer(m_frameBuffer.getSerializer()) {}
46 void ComAggregator ::timeout_handler(
FwIndexType portNum, U32 context) {
56 this->m_frameBuffer.
setSize(
sizeof(this->m_frameBufferStore));
59 this->Svc_AggregationMachine_action_doFill(smId, signal, this->m_held);
64 void ComAggregator ::Svc_AggregationMachine_action_doFill(SmId smId,
79 if (this->m_frameSerializer.
getSize() > 0) {
82 this->
dataOut_out(0, this->m_frameBuffer, this->m_lastContext);
86 void ComAggregator ::Svc_AggregationMachine_action_doHold(SmId smId,
102 bool ComAggregator ::Svc_AggregationMachine_guard_isFull(SmId smId,
111 return this->m_frameSerializer.
getSize() > 0;
114 bool ComAggregator ::Svc_AggregationMachine_guard_isGood(SmId smId,
Serialization/Deserialization operation was successful.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
PlatformSizeType FwSizeType
void setSize(FwSizeType size)
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
Serializable::SizeType getSize() const override
Get current buffer size.
void aggregationMachine_sendSignal_status(const Fw::Success &value)
Send signal status to state machine aggregationMachine.
The buffer is currently not owned.
SerializeStatus
forward declaration for string
~ComAggregator()
Destroy ComAggregator object.
void preamble() override
A function that will be called before the event loop is entered.
Serializable::SizeType getCapacity() const
Get buffer capacity.
Omit length from serialization.
void resetSer() override
Reset serialization pointer to beginning of buffer.
ComCfg::FrameContext & get_context()
Get member context.
FwSizeType getSize() const
Auto-generated base for ComAggregator component.
void aggregationMachine_sendSignal_timeout()
Send signal timeout to state machine aggregationMachine.
Fw::Buffer & get_data()
Get member data.
ComAggregator(const char *const compName)
Construct ComAggregator object.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
The buffer is currently owned.
Implementation of malloc based allocator.
FpySequencer_SequencerStateMachineStateMachineBase::Signal Signal
void aggregationMachine_sendSignal_fill(const Svc::ComDataContextPair &value)
Send signal fill to state machine aggregationMachine.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.