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());
87 return &this->m_bufferAllocate_InputPort[portNum];
98 return &this->m_bufferDeallocate_InputPort[portNum];
107 Fw::PassiveComponentBase(compName)
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(
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
void init()
Object initializer.
const char * toChar() const
void format(const CHAR *formatString,...)
write formatted string to buffer
void unLock()
unlock the mutex and assert success
void lock()
lock the mutex and assert success
Auto-generated base for StaticMemory component.
Fw::InputBufferGetPort * get_bufferAllocate_InputPort(FwIndexType portNum)
virtual void bufferDeallocate_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferDeallocate.
FwIndexType getNum_bufferAllocate_InputPorts() const
StaticMemoryComponentBase(const char *compName="")
Construct StaticMemoryComponentBase object.
void bufferDeallocate_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferDeallocate.
Fw::Buffer bufferAllocate_handlerBase(FwIndexType portNum, U32 size)
Handler base-class function for input port bufferAllocate.
virtual ~StaticMemoryComponentBase()
Destroy StaticMemoryComponentBase object.
virtual Fw::Buffer bufferAllocate_handler(FwIndexType portNum, U32 size)=0
Handler for input port bufferAllocate.
Fw::InputBufferSendPort * get_bufferDeallocate_InputPort(FwIndexType portNum)
virtual void lock()
Lock the guarded mutex.
virtual void unLock()
Unlock the guarded mutex.
FwIndexType getNum_bufferDeallocate_InputPorts() const