![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for ComStub component. More...
#include <Svc/ComStub/ComStubComponentAc.hpp>
Public Member Functions | |
void | init (NATIVE_INT_TYPE instance=0) |
Initialize ComStubComponentBase object. More... | |
Drv::InputByteStreamSendPort * | get_comDataIn_InputPort (NATIVE_INT_TYPE portNum) |
Drv::InputByteStreamReadyPort * | get_drvConnected_InputPort (NATIVE_INT_TYPE portNum) |
Drv::InputByteStreamRecvPort * | get_drvDataIn_InputPort (NATIVE_INT_TYPE portNum) |
void | set_comDataOut_OutputPort (NATIVE_INT_TYPE portNum, Drv::InputByteStreamRecvPort *port) |
Connect port to comDataOut[portNum]. More... | |
void | set_comStatus_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputSuccessConditionPort *port) |
Connect port to comStatus[portNum]. More... | |
void | set_drvDataOut_OutputPort (NATIVE_INT_TYPE portNum, Drv::InputByteStreamSendPort *port) |
Connect port to drvDataOut[portNum]. More... | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. More... | |
U32 | getIdBase () const |
Protected Types | |
enum | { NUM_COMDATAIN_INPUT_PORTS = 1 , NUM_DRVCONNECTED_INPUT_PORTS = 1 , NUM_DRVDATAIN_INPUT_PORTS = 1 } |
Enumerations for numbers of typed input ports. More... | |
enum | { NUM_COMDATAOUT_OUTPUT_PORTS = 1 , NUM_COMSTATUS_OUTPUT_PORTS = 1 , NUM_DRVDATAOUT_OUTPUT_PORTS = 1 } |
Enumerations for numbers of typed output ports. More... | |
Protected Member Functions | |
ComStubComponentBase (const char *compName="") | |
Construct ComStubComponentBase object. More... | |
virtual | ~ComStubComponentBase () |
Destroy ComStubComponentBase object. More... | |
NATIVE_INT_TYPE | getNum_comDataIn_InputPorts () const |
NATIVE_INT_TYPE | getNum_drvConnected_InputPorts () const |
NATIVE_INT_TYPE | getNum_drvDataIn_InputPorts () const |
NATIVE_INT_TYPE | getNum_comDataOut_OutputPorts () const |
NATIVE_INT_TYPE | getNum_comStatus_OutputPorts () const |
NATIVE_INT_TYPE | getNum_drvDataOut_OutputPorts () const |
bool | isConnected_comDataOut_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_comStatus_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_drvDataOut_OutputPort (NATIVE_INT_TYPE portNum) |
virtual Drv::SendStatus | comDataIn_handler (NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer)=0 |
Handler for input port comDataIn. More... | |
virtual void | drvConnected_handler (NATIVE_INT_TYPE portNum)=0 |
Handler for input port drvConnected. More... | |
virtual void | drvDataIn_handler (NATIVE_INT_TYPE portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)=0 |
Handler for input port drvDataIn. More... | |
Drv::SendStatus | comDataIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer) |
Handler base-class function for input port comDataIn. More... | |
void | drvConnected_handlerBase (NATIVE_INT_TYPE portNum) |
Handler base-class function for input port drvConnected. More... | |
void | drvDataIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus) |
Handler base-class function for input port drvDataIn. More... | |
void | comDataOut_out (NATIVE_INT_TYPE portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus) |
Invoke output port comDataOut. More... | |
void | comStatus_out (NATIVE_INT_TYPE portNum, Fw::Success &condition) |
Invoke output port comStatus. More... | |
Drv::SendStatus | drvDataOut_out (NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer) |
Invoke output port drvDataOut. More... | |
![]() | |
PassiveComponentBase (const char *name) | |
Named constructor. More... | |
virtual | ~PassiveComponentBase () |
Destructor. More... | |
void | init (NATIVE_INT_TYPE instance) |
Initialization function. More... | |
NATIVE_INT_TYPE | getInstance () const |
![]() | |
ObjBase (const char *name) | |
ObjBase constructor. More... | |
virtual | ~ObjBase () |
Destructor. More... | |
void | init () |
Object initializer. More... | |
Friends | |
class | ComStubComponentBaseFriend |
Friend class for white-box testing. More... | |
Auto-generated base for ComStub component.
Communication adapter interface implementing communication adapter interface via a Drv.ByteStreamDriverModel.
Definition at line 25 of file ComStubComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_COMDATAIN_INPUT_PORTS | |
NUM_DRVCONNECTED_INPUT_PORTS | |
NUM_DRVDATAIN_INPUT_PORTS |
Definition at line 43 of file ComStubComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_COMDATAOUT_OUTPUT_PORTS | |
NUM_COMSTATUS_OUTPUT_PORTS | |
NUM_DRVDATAOUT_OUTPUT_PORTS |
Definition at line 50 of file ComStubComponentAc.hpp.
|
protected |
Construct ComStubComponentBase object.
compName | The component name |
Definition at line 328 of file ComStubComponentAc.cpp.
|
protectedvirtual |
Destroy ComStubComponentBase object.
Definition at line 335 of file ComStubComponentAc.cpp.
|
protectedpure virtual |
Handler for input port comDataIn.
portNum | The port number |
sendBuffer | Data to send |
|
protected |
Handler base-class function for input port comDataIn.
portNum | The port number |
sendBuffer | Data to send |
Definition at line 428 of file ComStubComponentAc.cpp.
|
protected |
Invoke output port comDataOut.
portNum | The port number |
Definition at line 489 of file ComStubComponentAc.cpp.
|
protected |
Invoke output port comStatus.
portNum | The port number |
condition | Condition success/failure |
Definition at line 506 of file ComStubComponentAc.cpp.
|
protectedpure virtual |
Handler for input port drvConnected.
portNum | The port number |
|
protected |
Handler base-class function for input port drvConnected.
portNum | The port number |
Definition at line 451 of file ComStubComponentAc.cpp.
|
protectedpure virtual |
Handler for input port drvDataIn.
portNum | The port number |
|
protected |
Handler base-class function for input port drvDataIn.
portNum | The port number |
Definition at line 464 of file ComStubComponentAc.cpp.
|
protected |
Invoke output port drvDataOut.
portNum | The port number |
sendBuffer | Data to send |
Definition at line 521 of file ComStubComponentAc.cpp.
Drv::InputByteStreamSendPort * Svc::ComStubComponentBase::get_comDataIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 209 of file ComStubComponentAc.cpp.
Drv::InputByteStreamReadyPort * Svc::ComStubComponentBase::get_drvConnected_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 220 of file ComStubComponentAc.cpp.
Drv::InputByteStreamRecvPort * Svc::ComStubComponentBase::get_drvDataIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 231 of file ComStubComponentAc.cpp.
|
protected |
Get the number of comDataIn input ports
Definition at line 345 of file ComStubComponentAc.cpp.
|
protected |
Get the number of comDataOut output ports
Definition at line 367 of file ComStubComponentAc.cpp.
|
protected |
Get the number of comStatus output ports
Definition at line 373 of file ComStubComponentAc.cpp.
|
protected |
Get the number of drvConnected input ports
Definition at line 351 of file ComStubComponentAc.cpp.
|
protected |
Get the number of drvDataIn input ports
Definition at line 357 of file ComStubComponentAc.cpp.
|
protected |
Get the number of drvDataOut output ports
Definition at line 379 of file ComStubComponentAc.cpp.
void Svc::ComStubComponentBase::init | ( | NATIVE_INT_TYPE | instance = 0 | ) |
Initialize ComStubComponentBase object.
instance | The instance number |
Definition at line 21 of file ComStubComponentAc.cpp.
|
protected |
Check whether port comDataOut is connected
portNum | The port number |
Definition at line 389 of file ComStubComponentAc.cpp.
|
protected |
Check whether port comStatus is connected
portNum | The port number |
Definition at line 400 of file ComStubComponentAc.cpp.
|
protected |
Check whether port drvDataOut is connected
portNum | The port number |
Definition at line 411 of file ComStubComponentAc.cpp.
void Svc::ComStubComponentBase::set_comDataOut_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Drv::InputByteStreamRecvPort * | port | ||
) |
Connect port to comDataOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 246 of file ComStubComponentAc.cpp.
void Svc::ComStubComponentBase::set_comStatus_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputSuccessConditionPort * | port | ||
) |
Connect port to comStatus[portNum].
portNum | The port number |
port | The input port |
Definition at line 260 of file ComStubComponentAc.cpp.
void Svc::ComStubComponentBase::set_drvDataOut_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Drv::InputByteStreamSendPort * | port | ||
) |
Connect port to drvDataOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 274 of file ComStubComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 34 of file ComStubComponentAc.hpp.