![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for BufferRepeater component. More...
#include <Svc/BufferRepeater/BufferRepeaterComponentAc.hpp>
Public Member Functions | |
void | init (FwEnumStoreType instance=0) |
Initialize BufferRepeaterComponentBase object. | |
Fw::InputBufferSendPort * | get_portIn_InputPort (FwIndexType portNum) |
void | set_Log_OutputPort (FwIndexType portNum, Fw::InputLogPort *port) |
Connect port to Log[portNum]. | |
void | set_Time_OutputPort (FwIndexType portNum, Fw::InputTimePort *port) |
Connect port to Time[portNum]. | |
void | set_allocate_OutputPort (FwIndexType portNum, Fw::InputBufferGetPort *port) |
Connect port to allocate[portNum]. | |
void | set_deallocate_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port) |
Connect port to deallocate[portNum]. | |
void | set_portOut_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port) |
Connect port to portOut[portNum]. | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. | |
U32 | getIdBase () const |
Protected Types | |
enum | { NUM_PORTIN_INPUT_PORTS = 1 } |
Enumerations for numbers of typed input ports. More... | |
enum | { NUM_LOG_OUTPUT_PORTS = 1 , NUM_LOGTEXT_OUTPUT_PORTS = 1 , NUM_TIME_OUTPUT_PORTS = 1 } |
Enumerations for numbers of special output ports. More... | |
enum | { NUM_ALLOCATE_OUTPUT_PORTS = 1 , NUM_DEALLOCATE_OUTPUT_PORTS = 1 , NUM_PORTOUT_OUTPUT_PORTS = 10 } |
Enumerations for numbers of typed output ports. More... | |
enum | { EVENTID_ALLOCATIONSOFTFAILURE = 0x0 , EVENTID_ALLOCATIONHARDFAILURE = 0x1 } |
Event IDs. More... | |
Protected Member Functions | |
BufferRepeaterComponentBase (const char *compName="") | |
Construct BufferRepeaterComponentBase object. | |
virtual | ~BufferRepeaterComponentBase () |
Destroy BufferRepeaterComponentBase object. | |
FwIndexType | getNum_portIn_InputPorts () const |
FwIndexType | getNum_Log_OutputPorts () const |
FwIndexType | getNum_Time_OutputPorts () const |
FwIndexType | getNum_allocate_OutputPorts () const |
FwIndexType | getNum_deallocate_OutputPorts () const |
FwIndexType | getNum_portOut_OutputPorts () const |
bool | isConnected_Log_OutputPort (FwIndexType portNum) |
bool | isConnected_Time_OutputPort (FwIndexType portNum) |
bool | isConnected_allocate_OutputPort (FwIndexType portNum) |
bool | isConnected_deallocate_OutputPort (FwIndexType portNum) |
bool | isConnected_portOut_OutputPort (FwIndexType portNum) |
virtual void | portIn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
Handler for input port portIn. | |
void | portIn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Handler base-class function for input port portIn. | |
Fw::Buffer | allocate_out (FwIndexType portNum, U32 size) |
Invoke output port allocate. | |
void | deallocate_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port deallocate. | |
void | portOut_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port portOut. | |
void | log_WARNING_HI_AllocationSoftFailure (I32 port, U32 size) const |
void | log_FATAL_AllocationHardFailure (I32 port, U32 size) const |
Fw::Time | getTime () |
![]() | |
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. | |
Friends | |
class | BufferRepeaterComponentBaseFriend |
Friend class for white-box testing. | |
Auto-generated base for BufferRepeater component.
A component for repeating Fw.BufferSend calls to multiple consumers
Definition at line 29 of file BufferRepeaterComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_PORTIN_INPUT_PORTS |
Definition at line 47 of file BufferRepeaterComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
Enumerator | |
---|---|
NUM_LOG_OUTPUT_PORTS | |
NUM_LOGTEXT_OUTPUT_PORTS | |
NUM_TIME_OUTPUT_PORTS |
Definition at line 52 of file BufferRepeaterComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_ALLOCATE_OUTPUT_PORTS | |
NUM_DEALLOCATE_OUTPUT_PORTS | |
NUM_PORTOUT_OUTPUT_PORTS |
Definition at line 59 of file BufferRepeaterComponentAc.hpp.
|
protected |
Event IDs.
Enumerator | |
---|---|
EVENTID_ALLOCATIONSOFTFAILURE | Soft failure in allocation. |
EVENTID_ALLOCATIONHARDFAILURE | Hard failure in allocation. |
Definition at line 66 of file BufferRepeaterComponentAc.hpp.
|
protected |
Construct BufferRepeaterComponentBase object.
compName | The component name |
Definition at line 372 of file BufferRepeaterComponentAc.cpp.
|
protectedvirtual |
Destroy BufferRepeaterComponentBase object.
Definition at line 379 of file BufferRepeaterComponentAc.cpp.
|
protected |
Invoke output port allocate.
portNum | The port number |
size | The requested size |
Definition at line 550 of file BufferRepeaterComponentAc.cpp.
|
protected |
Invoke output port deallocate.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 565 of file BufferRepeaterComponentAc.cpp.
Fw::InputBufferSendPort * Svc::BufferRepeaterComponentBase::get_portIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 171 of file BufferRepeaterComponentAc.cpp.
|
protected |
Get the number of allocate output ports
Definition at line 425 of file BufferRepeaterComponentAc.cpp.
|
protected |
Get the number of deallocate output ports
Definition at line 431 of file BufferRepeaterComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 399 of file BufferRepeaterComponentAc.cpp.
|
protected |
Get the number of portIn input ports
Definition at line 389 of file BufferRepeaterComponentAc.cpp.
|
protected |
Get the number of portOut output ports
Definition at line 437 of file BufferRepeaterComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 415 of file BufferRepeaterComponentAc.cpp.
|
protected |
void Svc::BufferRepeaterComponentBase::init | ( | FwEnumStoreType | instance = 0 | ) |
Initialize BufferRepeaterComponentBase object.
instance | The instance number |
Definition at line 20 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port allocate is connected
portNum | The port number |
Definition at line 488 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port deallocate is connected
portNum | The port number |
Definition at line 499 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port Log is connected
portNum | The port number |
Definition at line 447 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port portOut is connected
portNum | The port number |
Definition at line 510 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port Time is connected
portNum | The port number |
Definition at line 473 of file BufferRepeaterComponentAc.cpp.
|
protected |
Log event AllocationHardFailure
Hard failure in allocation
port | The port index that needed an allocation |
size | The requested allocation size |
Definition at line 701 of file BufferRepeaterComponentAc.cpp.
|
protected |
Log event AllocationSoftFailure
Soft failure in allocation
port | The port index that needed an allocation |
size | The requested allocation size |
Definition at line 599 of file BufferRepeaterComponentAc.cpp.
|
protectedpure virtual |
Handler for input port portIn.
portNum | The port number |
fwBuffer | The buffer |
|
protected |
Handler base-class function for input port portIn.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 527 of file BufferRepeaterComponentAc.cpp.
|
protected |
Invoke output port portOut.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 580 of file BufferRepeaterComponentAc.cpp.
void Svc::BufferRepeaterComponentBase::set_allocate_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferGetPort * | port | ||
) |
Connect port to allocate[portNum].
portNum | The port number |
port | The input port |
Definition at line 236 of file BufferRepeaterComponentAc.cpp.
void Svc::BufferRepeaterComponentBase::set_deallocate_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferSendPort * | port | ||
) |
Connect port to deallocate[portNum].
portNum | The port number |
port | The input port |
Definition at line 250 of file BufferRepeaterComponentAc.cpp.
void Svc::BufferRepeaterComponentBase::set_Log_OutputPort | ( | FwIndexType | portNum, |
Fw::InputLogPort * | port | ||
) |
Connect port to Log[portNum].
portNum | The port number |
port | The input port |
Definition at line 186 of file BufferRepeaterComponentAc.cpp.
void Svc::BufferRepeaterComponentBase::set_portOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferSendPort * | port | ||
) |
Connect port to portOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 264 of file BufferRepeaterComponentAc.cpp.
void Svc::BufferRepeaterComponentBase::set_Time_OutputPort | ( | FwIndexType | portNum, |
Fw::InputTimePort * | port | ||
) |
Connect port to Time[portNum].
portNum | The port number |
port | The input port |
Definition at line 218 of file BufferRepeaterComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 38 of file BufferRepeaterComponentAc.hpp.