7 #ifndef Svc_BufferManagerComponentAc_HPP 8 #define Svc_BufferManagerComponentAc_HPP 18 #if FW_ENABLE_TEXT_LOGGING == 1 140 #if FW_ENABLE_TEXT_LOGGING == 1 143 void set_textEventOut_OutputPort(
162 #if FW_PORT_SERIALIZATION 173 Fw::InputSerializePort* port
176 #if FW_ENABLE_TEXT_LOGGING == 1 179 void set_textEventOut_OutputPort(
181 Fw::InputSerializePort* port
189 Fw::InputSerializePort* port
195 Fw::InputSerializePort* port
208 const char* compName =
"" 246 #if FW_ENABLE_TEXT_LOGGING == 1 251 FwIndexType getNum_textEventOut_OutputPorts()
const;
278 #if FW_ENABLE_TEXT_LOGGING == 1 283 bool isConnected_textEventOut_OutputPort(
469 static void m_p_bufferSendIn_in(
476 static void m_p_schedIn_in(
506 #if FW_ENABLE_TEXT_LOGGING == 1 526 std::atomic<FwIndexType> m_NoBuffsAvailableThrottle;
529 std::atomic<FwIndexType> m_NullEmptyBufferThrottle;
538 bool m_first_update_TotalBuffs;
541 bool m_first_update_CurrBuffs;
544 bool m_first_update_HiBuffs;
547 bool m_first_update_NoBuffs;
550 bool m_first_update_EmptyBuffs;
559 U32 m_last_TotalBuffs;
562 U32 m_last_CurrBuffs;
571 U32 m_last_EmptyBuffs;
virtual ~BufferManagerComponentBase()
Destroy BufferManagerComponentBase object.
The BufferManager was unable to allocate a requested buffer.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
FwIndexType getNum_eventOut_OutputPorts() const
virtual void bufferSendIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferSendIn.
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
FwIndexType getNum_bufferGetCallee_InputPorts() const
void init()
Object initializer.
Fw::InputBufferSendPort * get_bufferSendIn_InputPort(FwIndexType portNum)
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
Channel ID for CurrBuffs.
FwIndexType getNum_bufferSendIn_InputPorts() const
FwIndexType getNum_timeCaller_OutputPorts() const
FwIndexType getNum_tlmOut_OutputPorts() const
void log_WARNING_HI_NullEmptyBuffer()
void log_WARNING_HI_NoBuffsAvailable_ThrottleClear()
Reset throttle value for NoBuffsAvailable.
Fw::InputBufferGetPort * get_bufferGetCallee_InputPort(FwIndexType portNum)
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
virtual Fw::Buffer bufferGetCallee_handler(FwIndexType portNum, U32 size)=0
Handler for input port bufferGetCallee.
void tlmWrite_NoBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
friend class BufferManagerComponentBaseFriend
Friend class for white-box testing.
FwIndexType getNum_schedIn_InputPorts() const
void tlmWrite_CurrBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
Channel ID for TotalBuffs.
void tlmWrite_HiBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
virtual void unLock()
Unlock the guarded mutex.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void tlmWrite_TotalBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
virtual void lock()
Lock the guarded mutex.
Throttle reset count for NoBuffsAvailable.
Channel ID for EmptyBuffs.
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
void tlmWrite_EmptyBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
friend class BufferManagerTesterBase
Friend class tester to support autocoded test harness.
PlatformIndexType FwIndexType
void log_WARNING_HI_NullEmptyBuffer_ThrottleClear()
Reset throttle value for NullEmptyBuffer.
RateGroupDivider component implementation.
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
void bufferSendIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferSendIn.
Auto-generated base for BufferManager component.
void log_WARNING_HI_NoBuffsAvailable(U32 size)
The buffer manager received a null pointer and zero-sized buffer as a return. Probably undetected fai...
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
BufferManagerComponentBase(const char *compName="")
Construct BufferManagerComponentBase object.
Throttle reset count for NullEmptyBuffer.
Fw::Buffer bufferGetCallee_handlerBase(FwIndexType portNum, U32 size)
Handler base-class function for input port bufferGetCallee.