10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_bufferAllocate_InputPort[port].
init();
37 this->m_bufferAllocate_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_bufferAllocate_InputPort[port].setObjName(portName.
toChar());
56 this->m_bufferDeallocate_InputPort[port].
init();
57 this->m_bufferDeallocate_InputPort[port].
addCallComp(
59 m_p_bufferDeallocate_in
61 this->m_bufferDeallocate_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1 67 this->m_objName.toChar(),
70 this->m_bufferDeallocate_InputPort[port].setObjName(portName.
toChar());
84 static_cast<FwAssertArgType>(portNum)
87 return &this->m_bufferAllocate_InputPort[portNum];
95 static_cast<FwAssertArgType>(portNum)
98 return &this->m_bufferDeallocate_InputPort[portNum];
107 Fw::PassiveComponentBase(compName)
149 static_cast<FwAssertArgType>(portNum)
178 static_cast<FwAssertArgType>(portNum)
204 this->m_guardedPortMutex.
lock();
210 this->m_guardedPortMutex.
unLock();
218 m_p_bufferAllocate_in(
232 void StaticMemoryComponentBase ::
233 m_p_bufferDeallocate_in(
241 compPtr->bufferDeallocate_handlerBase(
Fw::InputBufferGetPort * get_bufferAllocate_InputPort(FwIndexType portNum)
void unLock()
unlock the mutex and assert success
PlatformIndexType FwIndexType
void init()
Object initializer.
virtual void bufferDeallocate_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferDeallocate.
virtual Fw::Buffer bufferAllocate_handler(FwIndexType portNum, U32 size)=0
Handler for input port bufferAllocate.
virtual void unLock()
Unlock the guarded mutex.
virtual void lock()
Lock the guarded mutex.
Fw::InputBufferSendPort * get_bufferDeallocate_InputPort(FwIndexType portNum)
const char * toChar() const
void bufferDeallocate_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferDeallocate.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
virtual ~StaticMemoryComponentBase()
Destroy StaticMemoryComponentBase object.
#define PRI_PlatformIntType
StaticMemoryComponentBase(const char *compName="")
Construct StaticMemoryComponentBase object.
Fw::Buffer bufferAllocate_handlerBase(FwIndexType portNum, U32 size)
Handler base-class function for input port bufferAllocate.
FwIndexType getNum_bufferAllocate_InputPorts() const
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
Auto-generated base for StaticMemory component.
void lock()
lock the mutex and assert success
FwIndexType getNum_bufferDeallocate_InputPorts() const