7 #ifndef Svc_BufferManagerComponentAc_HPP
8 #define Svc_BufferManagerComponentAc_HPP
16 #if FW_ENABLE_TEXT_LOGGING == 1
136 #if FW_ENABLE_TEXT_LOGGING == 1
139 void set_textEventOut_OutputPort(
158 #if FW_PORT_SERIALIZATION
169 Fw::InputSerializePort* port
172 #if FW_ENABLE_TEXT_LOGGING == 1
175 void set_textEventOut_OutputPort(
177 Fw::InputSerializePort* port
185 Fw::InputSerializePort* port
191 Fw::InputSerializePort* port
204 const char* compName =
""
242 #if FW_ENABLE_TEXT_LOGGING == 1
247 FwIndexType getNum_textEventOut_OutputPorts()
const;
274 #if FW_ENABLE_TEXT_LOGGING == 1
279 bool isConnected_textEventOut_OutputPort(
465 static void m_p_bufferSendIn_in(
472 static void m_p_schedIn_in(
502 #if FW_ENABLE_TEXT_LOGGING == 1
534 bool m_first_update_TotalBuffs;
537 bool m_first_update_CurrBuffs;
540 bool m_first_update_HiBuffs;
543 bool m_first_update_NoBuffs;
546 bool m_first_update_EmptyBuffs;
555 U32 m_last_TotalBuffs;
558 U32 m_last_CurrBuffs;
567 U32 m_last_EmptyBuffs;
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
Auto-generated base for BufferManager component.
virtual void bufferSendIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferSendIn.
virtual void unLock()
Unlock the guarded mutex.
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
FwIndexType getNum_schedIn_InputPorts() const
FwIndexType getNum_eventOut_OutputPorts() const
Fw::InputBufferSendPort * get_bufferSendIn_InputPort(FwIndexType portNum)
void log_WARNING_HI_ZeroSizeBuffer()
BufferManagerComponentBase(const char *compName="")
Construct BufferManagerComponentBase object.
Fw::Buffer bufferGetCallee_handlerBase(FwIndexType portNum, U32 size)
Handler base-class function for input port bufferGetCallee.
void tlmWrite_HiBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
FwIndexType getNum_bufferSendIn_InputPorts() const
FwIndexType getNum_bufferGetCallee_InputPorts() const
Fw::InputBufferGetPort * get_bufferGetCallee_InputPort(FwIndexType portNum)
virtual Fw::Buffer bufferGetCallee_handler(FwIndexType portNum, U32 size)=0
Handler for input port bufferGetCallee.
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
@ CHANNELID_TOTALBUFFS
Channel ID for TotalBuffs.
@ CHANNELID_NOBUFFS
Channel ID for NoBuffs.
@ CHANNELID_EMPTYBUFFS
Channel ID for EmptyBuffs.
@ CHANNELID_CURRBUFFS
Channel ID for CurrBuffs.
@ CHANNELID_HIBUFFS
Channel ID for HiBuffs.
@ NUM_TLMOUT_OUTPUT_PORTS
@ NUM_TIMECALLER_OUTPUT_PORTS
@ NUM_EVENTOUT_OUTPUT_PORTS
@ NUM_TEXTEVENTOUT_OUTPUT_PORTS
void log_WARNING_HI_ZeroSizeBuffer_ThrottleClear()
Reset throttle value for ZeroSizeBuffer.
void log_WARNING_HI_NoBuffsAvailable(U32 size)
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void bufferSendIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferSendIn.
@ EVENTID_NOBUFFSAVAILABLE
The BufferManager was unable to allocate a requested buffer.
@ EVENTID_ZEROSIZEBUFFER
The buffer manager received a zero-sized buffer as a return. Probably undetected empty buffer allocat...
@ NUM_BUFFERGETCALLEE_INPUT_PORTS
@ NUM_SCHEDIN_INPUT_PORTS
@ NUM_BUFFERSENDIN_INPUT_PORTS
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
@ EVENTID_ZEROSIZEBUFFER_THROTTLE
Throttle reset count for ZeroSizeBuffer.
@ EVENTID_NOBUFFSAVAILABLE_THROTTLE
Throttle reset count for NoBuffsAvailable.
virtual ~BufferManagerComponentBase()
Destroy BufferManagerComponentBase object.
virtual void lock()
Lock the guarded mutex.
friend class BufferManagerComponentBaseFriend
Friend class for white-box testing.
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
void tlmWrite_EmptyBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_NoBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
FwIndexType getNum_tlmOut_OutputPorts() const
void tlmWrite_TotalBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
void tlmWrite_CurrBuffs(U32 arg, Fw::Time _tlmTime=Fw::Time())
FwIndexType getNum_timeCaller_OutputPorts() const
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_NoBuffsAvailable_ThrottleClear()
Reset throttle value for NoBuffsAvailable.