Auto-generated base for BufferManager component.
More...
#include <Svc/BufferManager/BufferManagerComponentAc.hpp>
|
| enum | { NUM_BUFFERGETCALLEE_INPUT_PORTS = 1,
NUM_BUFFERSENDIN_INPUT_PORTS = 1,
NUM_SCHEDIN_INPUT_PORTS = 1
} |
| | Enumerations for numbers of typed input ports. More...
|
| |
| enum | { NUM_EVENTOUT_OUTPUT_PORTS = 1,
NUM_TEXTEVENTOUT_OUTPUT_PORTS = 1,
NUM_TIMECALLER_OUTPUT_PORTS = 1,
NUM_TLMOUT_OUTPUT_PORTS = 1
} |
| | Enumerations for numbers of special output ports. More...
|
| |
| enum | { EVENTID_NOBUFFSAVAILABLE = 0x0,
EVENTID_NULLEMPTYBUFFER = 0x1
} |
| | Event IDs. More...
|
| |
| enum | { EVENTID_NOBUFFSAVAILABLE_THROTTLE = 10,
EVENTID_NULLEMPTYBUFFER_THROTTLE = 10
} |
| | Event throttle values: sets initial value of countdown variables. More...
|
| |
| enum | {
CHANNELID_TOTALBUFFS = 0x0,
CHANNELID_CURRBUFFS = 0x1,
CHANNELID_HIBUFFS = 0x2,
CHANNELID_NOBUFFS = 0x3,
CHANNELID_EMPTYBUFFS = 0x4
} |
| | Channel IDs. More...
|
| |
|
| | BufferManagerComponentBase (const char *compName="") |
| | Construct BufferManagerComponentBase object. More...
|
| |
| virtual | ~BufferManagerComponentBase () |
| | Destroy BufferManagerComponentBase object. More...
|
| |
| bool | isConnected_eventOut_OutputPort (FwIndexType portNum) const |
| |
| bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) const |
| |
| bool | isConnected_tlmOut_OutputPort (FwIndexType portNum) const |
| |
| virtual Fw::Buffer | bufferGetCallee_handler (FwIndexType portNum, FwSizeType size)=0 |
| | Handler for input port bufferGetCallee. More...
|
| |
| virtual void | bufferSendIn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
| | Handler for input port bufferSendIn. More...
|
| |
| virtual void | schedIn_handler (FwIndexType portNum, U32 context)=0 |
| | Handler for input port schedIn. More...
|
| |
| Fw::Buffer | bufferGetCallee_handlerBase (FwIndexType portNum, FwSizeType size) |
| | Handler base-class function for input port bufferGetCallee. More...
|
| |
| void | bufferSendIn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| | Handler base-class function for input port bufferSendIn. More...
|
| |
| void | schedIn_handlerBase (FwIndexType portNum, U32 context) |
| | Handler base-class function for input port schedIn. More...
|
| |
| void | log_WARNING_HI_NoBuffsAvailable (FwSizeType size) |
| |
| void | log_WARNING_HI_NullEmptyBuffer () |
| |
| void | log_WARNING_HI_NoBuffsAvailable_ThrottleClear () |
| | Reset throttle value for NoBuffsAvailable. More...
|
| |
| void | log_WARNING_HI_NullEmptyBuffer_ThrottleClear () |
| | Reset throttle value for NullEmptyBuffer. More...
|
| |
| void | tlmWrite (FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const |
| |
| void | tlmWrite_TotalBuffs (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
| |
| void | tlmWrite_CurrBuffs (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
| |
| void | tlmWrite_HiBuffs (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
| |
| void | tlmWrite_NoBuffs (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
| |
| void | tlmWrite_EmptyBuffs (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
| |
| Fw::Time | getTime () const |
| |
| virtual void | lock () |
| | Lock the guarded mutex. More...
|
| |
| virtual void | unLock () |
| | Unlock the guarded mutex. More...
|
| |
| | PassiveComponentBase (const char *name) |
| | Named constructor. More...
|
| |
| virtual | ~PassiveComponentBase () |
| | Destructor. More...
|
| |
| void | init (FwEnumStoreType instance) |
| | Initialization function. More...
|
| |
| FwEnumStoreType | getInstance () const |
| |
| | ObjBase (const char *name) |
| | ObjBase constructor. More...
|
| |
| virtual | ~ObjBase () |
| | Destructor. More...
|
| |
| void | init () |
| | Object initializer. More...
|
| |
Auto-generated base for BufferManager component.
A component for managing memory buffers
Definition at line 40 of file BufferManagerComponentAc.hpp.
◆ anonymous enum
Enumerations for numbers of typed input ports.
| Enumerator |
|---|
| NUM_BUFFERGETCALLEE_INPUT_PORTS | |
| NUM_BUFFERSENDIN_INPUT_PORTS | |
| NUM_SCHEDIN_INPUT_PORTS | |
Definition at line 60 of file BufferManagerComponentAc.hpp.
◆ anonymous enum
Enumerations for numbers of special output ports.
| Enumerator |
|---|
| NUM_EVENTOUT_OUTPUT_PORTS | |
| NUM_TEXTEVENTOUT_OUTPUT_PORTS | |
| NUM_TIMECALLER_OUTPUT_PORTS | |
| NUM_TLMOUT_OUTPUT_PORTS | |
Definition at line 67 of file BufferManagerComponentAc.hpp.
◆ anonymous enum
Event IDs.
| Enumerator |
|---|
| EVENTID_NOBUFFSAVAILABLE | The BufferManager was unable to allocate a requested buffer.
|
| EVENTID_NULLEMPTYBUFFER | The buffer manager received a null pointer and zero-sized buffer as a return. Probably undetected failed buffer allocation.
|
Definition at line 75 of file BufferManagerComponentAc.hpp.
◆ anonymous enum
Event throttle values: sets initial value of countdown variables.
| Enumerator |
|---|
| EVENTID_NOBUFFSAVAILABLE_THROTTLE | Throttle reset count for NoBuffsAvailable.
|
| EVENTID_NULLEMPTYBUFFER_THROTTLE | Throttle reset count for NullEmptyBuffer.
|
Definition at line 81 of file BufferManagerComponentAc.hpp.
◆ anonymous enum
Channel IDs.
| Enumerator |
|---|
| CHANNELID_TOTALBUFFS | Channel ID for TotalBuffs.
|
| CHANNELID_CURRBUFFS | Channel ID for CurrBuffs.
|
| CHANNELID_HIBUFFS | Channel ID for HiBuffs.
|
| CHANNELID_NOBUFFS | Channel ID for NoBuffs.
|
| CHANNELID_EMPTYBUFFS | Channel ID for EmptyBuffs.
|
Definition at line 87 of file BufferManagerComponentAc.hpp.
◆ BufferManagerComponentBase()
| Svc::BufferManagerComponentBase::BufferManagerComponentBase |
( |
const char * |
compName = "" | ) |
|
|
protected |
◆ ~BufferManagerComponentBase()
| Svc::BufferManagerComponentBase::~BufferManagerComponentBase |
( |
| ) |
|
|
protectedvirtual |
◆ bufferGetCallee_handler()
Handler for input port bufferGetCallee.
- Parameters
-
| portNum | The port number |
| size | The requested size |
◆ bufferGetCallee_handlerBase()
Handler base-class function for input port bufferGetCallee.
- Parameters
-
| portNum | The port number |
| size | The requested size |
Definition at line 447 of file BufferManagerComponentAc.cpp.
◆ bufferSendIn_handler()
| virtual void Svc::BufferManagerComponentBase::bufferSendIn_handler |
( |
FwIndexType |
portNum, |
|
|
Fw::Buffer & |
fwBuffer |
|
) |
| |
|
protectedpure virtual |
Handler for input port bufferSendIn.
- Parameters
-
| portNum | The port number |
| fwBuffer | The buffer |
◆ bufferSendIn_handlerBase()
| void Svc::BufferManagerComponentBase::bufferSendIn_handlerBase |
( |
FwIndexType |
portNum, |
|
|
Fw::Buffer & |
fwBuffer |
|
) |
| |
|
protected |
Handler base-class function for input port bufferSendIn.
- Parameters
-
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 476 of file BufferManagerComponentAc.cpp.
◆ get_bufferGetCallee_InputPort()
◆ get_bufferSendIn_InputPort()
◆ get_schedIn_InputPort()
◆ getNum_bufferGetCallee_InputPorts()
| static constexpr FwIndexType Svc::BufferManagerComponentBase::getNum_bufferGetCallee_InputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of bufferGetCallee input ports
- Returns
- The number of bufferGetCallee input ports
Definition at line 236 of file BufferManagerComponentAc.hpp.
◆ getNum_bufferSendIn_InputPorts()
| static constexpr FwIndexType Svc::BufferManagerComponentBase::getNum_bufferSendIn_InputPorts |
( |
| ) |
|
|
inlinestaticprotected |
◆ getNum_eventOut_OutputPorts()
| static constexpr FwIndexType Svc::BufferManagerComponentBase::getNum_eventOut_OutputPorts |
( |
| ) |
|
|
inlinestaticprotected |
◆ getNum_schedIn_InputPorts()
| static constexpr FwIndexType Svc::BufferManagerComponentBase::getNum_schedIn_InputPorts |
( |
| ) |
|
|
inlinestaticprotected |
◆ getNum_timeCaller_OutputPorts()
| static constexpr FwIndexType Svc::BufferManagerComponentBase::getNum_timeCaller_OutputPorts |
( |
| ) |
|
|
inlinestaticprotected |
◆ getNum_tlmOut_OutputPorts()
| static constexpr FwIndexType Svc::BufferManagerComponentBase::getNum_tlmOut_OutputPorts |
( |
| ) |
|
|
inlinestaticprotected |
◆ getTime()
| Fw::Time Svc::BufferManagerComponentBase::getTime |
( |
| ) |
const |
|
protected |
◆ init()
◆ isConnected_eventOut_OutputPort()
| bool Svc::BufferManagerComponentBase::isConnected_eventOut_OutputPort |
( |
FwIndexType |
portNum | ) |
const |
|
protected |
◆ isConnected_timeCaller_OutputPort()
| bool Svc::BufferManagerComponentBase::isConnected_timeCaller_OutputPort |
( |
FwIndexType |
portNum | ) |
const |
|
protected |
Check whether port timeCaller is connected
- Returns
- Whether port timeCaller is connected
- Parameters
-
Definition at line 417 of file BufferManagerComponentAc.cpp.
◆ isConnected_tlmOut_OutputPort()
| bool Svc::BufferManagerComponentBase::isConnected_tlmOut_OutputPort |
( |
FwIndexType |
portNum | ) |
const |
|
protected |
◆ lock()
| void Svc::BufferManagerComponentBase::lock |
( |
| ) |
|
|
protectedvirtual |
◆ log_WARNING_HI_NoBuffsAvailable()
| void Svc::BufferManagerComponentBase::log_WARNING_HI_NoBuffsAvailable |
( |
FwSizeType |
size | ) |
|
|
protected |
Log event NoBuffsAvailable
The BufferManager was unable to allocate a requested buffer
- Parameters
-
Definition at line 524 of file BufferManagerComponentAc.cpp.
◆ log_WARNING_HI_NoBuffsAvailable_ThrottleClear()
| void Svc::BufferManagerComponentBase::log_WARNING_HI_NoBuffsAvailable_ThrottleClear |
( |
| ) |
|
|
protected |
◆ log_WARNING_HI_NullEmptyBuffer()
| void Svc::BufferManagerComponentBase::log_WARNING_HI_NullEmptyBuffer |
( |
| ) |
|
|
protected |
Log event NullEmptyBuffer
The buffer manager received a null pointer and zero-sized buffer as a return. Probably undetected failed buffer allocation
Definition at line 614 of file BufferManagerComponentAc.cpp.
◆ log_WARNING_HI_NullEmptyBuffer_ThrottleClear()
| void Svc::BufferManagerComponentBase::log_WARNING_HI_NullEmptyBuffer_ThrottleClear |
( |
| ) |
|
|
protected |
◆ schedIn_handler()
| virtual void Svc::BufferManagerComponentBase::schedIn_handler |
( |
FwIndexType |
portNum, |
|
|
U32 |
context |
|
) |
| |
|
protectedpure virtual |
Handler for input port schedIn.
- Parameters
-
| portNum | The port number |
| context | The call order |
◆ schedIn_handlerBase()
| void Svc::BufferManagerComponentBase::schedIn_handlerBase |
( |
FwIndexType |
portNum, |
|
|
U32 |
context |
|
) |
| |
|
protected |
Handler base-class function for input port schedIn.
- Parameters
-
| portNum | The port number |
| context | The call order |
Definition at line 501 of file BufferManagerComponentAc.cpp.
◆ set_eventOut_OutputPort()
◆ set_timeCaller_OutputPort()
◆ set_tlmOut_OutputPort()
◆ tlmWrite()
Write telemetry channel given its local id and serialized value. Warning: This is a low level telemetry interface that does not guarentee channel type safety. It is up to the caller to make sure the serialized data matches the definition in the model. Update on change semantics are ignored, this telemetry is always written
- Parameters
-
| id | The channel id |
| _tlmBuff | The serialized telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 709 of file BufferManagerComponentAc.cpp.
◆ tlmWrite_CurrBuffs()
| void Svc::BufferManagerComponentBase::tlmWrite_CurrBuffs |
( |
U32 |
arg, |
|
|
Fw::Time |
_tlmTime = Fw::Time() |
|
) |
| |
|
protected |
Write telemetry channel CurrBuffs
The current number of allocated buffers
- Parameters
-
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 777 of file BufferManagerComponentAc.cpp.
◆ tlmWrite_EmptyBuffs()
| void Svc::BufferManagerComponentBase::tlmWrite_EmptyBuffs |
( |
U32 |
arg, |
|
|
Fw::Time |
_tlmTime = Fw::Time() |
|
) |
| |
|
protected |
Write telemetry channel EmptyBuffs
The number of empty buffers returned
- Parameters
-
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 888 of file BufferManagerComponentAc.cpp.
◆ tlmWrite_HiBuffs()
| void Svc::BufferManagerComponentBase::tlmWrite_HiBuffs |
( |
U32 |
arg, |
|
|
Fw::Time |
_tlmTime = Fw::Time() |
|
) |
| |
|
protected |
Write telemetry channel HiBuffs
The high water mark of allocated buffers
- Parameters
-
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 814 of file BufferManagerComponentAc.cpp.
◆ tlmWrite_NoBuffs()
| void Svc::BufferManagerComponentBase::tlmWrite_NoBuffs |
( |
U32 |
arg, |
|
|
Fw::Time |
_tlmTime = Fw::Time() |
|
) |
| |
|
protected |
Write telemetry channel NoBuffs
The number of requests that couldn't return a buffer
- Parameters
-
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 851 of file BufferManagerComponentAc.cpp.
◆ tlmWrite_TotalBuffs()
| void Svc::BufferManagerComponentBase::tlmWrite_TotalBuffs |
( |
U32 |
arg, |
|
|
Fw::Time |
_tlmTime = Fw::Time() |
|
) |
| |
|
protected |
Write telemetry channel TotalBuffs
The total buffers allocated
- Parameters
-
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 740 of file BufferManagerComponentAc.cpp.
◆ unLock()
| void Svc::BufferManagerComponentBase::unLock |
( |
| ) |
|
|
protectedvirtual |
◆ BufferManagerTester
| friend class BufferManagerTester |
|
friend |
◆ BufferManagerTesterBase
| friend class BufferManagerTesterBase |
|
friend |
The documentation for this class was generated from the following files: