10#if FW_ENABLE_TEXT_LOGGING
20 void StaticMemoryComponentBase ::
29 port < static_cast<FwIndexType>(this->getNum_bufferAllocate_InputPorts());
32 this->m_bufferAllocate_InputPort[port].init();
33 this->m_bufferAllocate_InputPort[port].addCallComp(
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());
53 port < static_cast<FwIndexType>(this->getNum_bufferDeallocate_InputPorts());
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());
83 portNum < this->getNum_bufferAllocate_InputPorts(),
87 return &this->m_bufferAllocate_InputPort[portNum];
94 portNum < this->getNum_bufferDeallocate_InputPorts(),
98 return &this->m_bufferDeallocate_InputPort[portNum];
105 StaticMemoryComponentBase ::
106 StaticMemoryComponentBase(
const char* compName) :
107 Fw::PassiveComponentBase(compName)
112 StaticMemoryComponentBase ::
113 ~StaticMemoryComponentBase()
123 getNum_bufferAllocate_InputPorts()
const
129 getNum_bufferDeallocate_InputPorts()
const
141 bufferAllocate_handlerBase(
148 portNum < this->getNum_bufferAllocate_InputPorts(),
158 retVal = this->bufferAllocate_handler(
169 void StaticMemoryComponentBase ::
170 bufferDeallocate_handlerBase(
177 portNum < this->getNum_bufferDeallocate_InputPorts(),
185 this->bufferDeallocate_handler(
201 void StaticMemoryComponentBase ::
204 this->m_guardedPortMutex.lock();
207 void StaticMemoryComponentBase ::
210 this->m_guardedPortMutex.unLock();
218 m_p_bufferAllocate_in(
232 void StaticMemoryComponentBase ::
233 m_p_bufferDeallocate_in(
240 StaticMemoryComponentBase* compPtr =
static_cast<StaticMemoryComponentBase*
>(callComp);
#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
Auto-generated base for StaticMemory component.
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.