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_ZEROSIZEBUFFER = 0x1
} |
| Event IDs. More...
|
|
enum | { EVENTID_NOBUFFSAVAILABLE_THROTTLE = 10
, EVENTID_ZEROSIZEBUFFER_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.
|
|
virtual | ~BufferManagerComponentBase () |
| Destroy BufferManagerComponentBase object.
|
|
FwIndexType | getNum_bufferGetCallee_InputPorts () const |
|
FwIndexType | getNum_bufferSendIn_InputPorts () const |
|
FwIndexType | getNum_schedIn_InputPorts () const |
|
FwIndexType | getNum_eventOut_OutputPorts () const |
|
FwIndexType | getNum_timeCaller_OutputPorts () const |
|
FwIndexType | getNum_tlmOut_OutputPorts () const |
|
bool | isConnected_eventOut_OutputPort (FwIndexType portNum) |
|
bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) |
|
bool | isConnected_tlmOut_OutputPort (FwIndexType portNum) |
|
virtual Fw::Buffer | bufferGetCallee_handler (FwIndexType portNum, U32 size)=0 |
| Handler for input port bufferGetCallee.
|
|
virtual void | bufferSendIn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
| Handler for input port bufferSendIn.
|
|
virtual void | schedIn_handler (FwIndexType portNum, U32 context)=0 |
| Handler for input port schedIn.
|
|
Fw::Buffer | bufferGetCallee_handlerBase (FwIndexType portNum, U32 size) |
| Handler base-class function for input port bufferGetCallee.
|
|
void | bufferSendIn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Handler base-class function for input port bufferSendIn.
|
|
void | schedIn_handlerBase (FwIndexType portNum, U32 context) |
| Handler base-class function for input port schedIn.
|
|
void | log_WARNING_HI_NoBuffsAvailable (U32 size) |
|
void | log_WARNING_HI_ZeroSizeBuffer () |
|
void | log_WARNING_HI_NoBuffsAvailable_ThrottleClear () |
| Reset throttle value for NoBuffsAvailable.
|
|
void | log_WARNING_HI_ZeroSizeBuffer_ThrottleClear () |
| Reset throttle value for ZeroSizeBuffer.
|
|
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 () |
|
virtual void | lock () |
| Lock the guarded mutex.
|
|
virtual void | unLock () |
| Unlock the guarded mutex.
|
|
| PassiveComponentBase (const char *name) |
| Named constructor.
|
|
virtual | ~PassiveComponentBase () |
| Destructor.
|
|
void | init (NATIVE_INT_TYPE instance) |
| Initialization function.
|
|
NATIVE_INT_TYPE | getInstance () const |
|
| ObjBase (const char *name) |
| ObjBase constructor.
|
|
virtual | ~ObjBase () |
| Destructor.
|
|
void | init () |
| Object initializer.
|
|
Auto-generated base for BufferManager component.
A component for managing memory buffers
Definition at line 33 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 51 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 58 of file BufferManagerComponentAc.hpp.
◆ anonymous enum
Event IDs.
Enumerator |
---|
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 allocation.
|
Definition at line 66 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_ZEROSIZEBUFFER_THROTTLE | Throttle reset count for ZeroSizeBuffer.
|
Definition at line 72 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 78 of file BufferManagerComponentAc.hpp.
◆ BufferManagerComponentBase()
Svc::BufferManagerComponentBase::BufferManagerComponentBase |
( |
const char * |
compName = "" | ) |
|
|
protected |
◆ ~BufferManagerComponentBase()
Svc::BufferManagerComponentBase::~BufferManagerComponentBase |
( |
| ) |
|
|
protectedvirtual |
◆ bufferGetCallee_handler()
virtual Fw::Buffer Svc::BufferManagerComponentBase::bufferGetCallee_handler |
( |
FwIndexType |
portNum, |
|
|
U32 |
size |
|
) |
| |
|
protectedpure virtual |
Handler for input port bufferGetCallee.
- Parameters
-
portNum | The port number |
size | The requested size |
◆ bufferGetCallee_handlerBase()
Fw::Buffer Svc::BufferManagerComponentBase::bufferGetCallee_handlerBase |
( |
FwIndexType |
portNum, |
|
|
U32 |
size |
|
) |
| |
|
protected |
Handler base-class function for input port bufferGetCallee.
- Parameters
-
portNum | The port number |
size | The requested size |
Definition at line 496 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 525 of file BufferManagerComponentAc.cpp.
◆ get_bufferGetCallee_InputPort()
◆ get_bufferSendIn_InputPort()
◆ get_schedIn_InputPort()
◆ getNum_bufferGetCallee_InputPorts()
FwIndexType Svc::BufferManagerComponentBase::getNum_bufferGetCallee_InputPorts |
( |
| ) |
const |
|
protected |
Get the number of bufferGetCallee input ports
- Returns
- The number of bufferGetCallee input ports
Definition at line 388 of file BufferManagerComponentAc.cpp.
◆ getNum_bufferSendIn_InputPorts()
FwIndexType Svc::BufferManagerComponentBase::getNum_bufferSendIn_InputPorts |
( |
| ) |
const |
|
protected |
◆ getNum_eventOut_OutputPorts()
FwIndexType Svc::BufferManagerComponentBase::getNum_eventOut_OutputPorts |
( |
| ) |
const |
|
protected |
◆ getNum_schedIn_InputPorts()
FwIndexType Svc::BufferManagerComponentBase::getNum_schedIn_InputPorts |
( |
| ) |
const |
|
protected |
◆ getNum_timeCaller_OutputPorts()
FwIndexType Svc::BufferManagerComponentBase::getNum_timeCaller_OutputPorts |
( |
| ) |
const |
|
protected |
◆ getNum_tlmOut_OutputPorts()
FwIndexType Svc::BufferManagerComponentBase::getNum_tlmOut_OutputPorts |
( |
| ) |
const |
|
protected |
◆ getTime()
Fw::Time Svc::BufferManagerComponentBase::getTime |
( |
| ) |
|
|
protected |
◆ init()
◆ isConnected_eventOut_OutputPort()
bool Svc::BufferManagerComponentBase::isConnected_eventOut_OutputPort |
( |
FwIndexType |
portNum | ) |
|
|
protected |
◆ isConnected_timeCaller_OutputPort()
bool Svc::BufferManagerComponentBase::isConnected_timeCaller_OutputPort |
( |
FwIndexType |
portNum | ) |
|
|
protected |
Check whether port timeCaller is connected
- Returns
- Whether port timeCaller is connected
- Parameters
-
Definition at line 468 of file BufferManagerComponentAc.cpp.
◆ isConnected_tlmOut_OutputPort()
bool Svc::BufferManagerComponentBase::isConnected_tlmOut_OutputPort |
( |
FwIndexType |
portNum | ) |
|
|
protected |
◆ lock()
void Svc::BufferManagerComponentBase::lock |
( |
| ) |
|
|
protectedvirtual |
◆ log_WARNING_HI_NoBuffsAvailable()
void Svc::BufferManagerComponentBase::log_WARNING_HI_NoBuffsAvailable |
( |
U32 |
size | ) |
|
|
protected |
Log event NoBuffsAvailable
The BufferManager was unable to allocate a requested buffer
- Parameters
-
Definition at line 573 of file BufferManagerComponentAc.cpp.
◆ log_WARNING_HI_NoBuffsAvailable_ThrottleClear()
void Svc::BufferManagerComponentBase::log_WARNING_HI_NoBuffsAvailable_ThrottleClear |
( |
| ) |
|
|
protected |
◆ log_WARNING_HI_ZeroSizeBuffer()
void Svc::BufferManagerComponentBase::log_WARNING_HI_ZeroSizeBuffer |
( |
| ) |
|
|
protected |
Log event ZeroSizeBuffer
The buffer manager received a zero-sized buffer as a return. Probably undetected empty buffer allocation
Definition at line 663 of file BufferManagerComponentAc.cpp.
◆ log_WARNING_HI_ZeroSizeBuffer_ThrottleClear()
void Svc::BufferManagerComponentBase::log_WARNING_HI_ZeroSizeBuffer_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 550 of file BufferManagerComponentAc.cpp.
◆ set_eventOut_OutputPort()
◆ set_timeCaller_OutputPort()
◆ set_tlmOut_OutputPort()
◆ 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 806 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 950 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 854 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 902 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 758 of file BufferManagerComponentAc.cpp.
◆ unLock()
void Svc::BufferManagerComponentBase::unLock |
( |
| ) |
|
|
protectedvirtual |
◆ BufferManagerComponentBaseFriend
friend class BufferManagerComponentBaseFriend |
|
friend |
The documentation for this class was generated from the following files: