F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for Deframer component. More...
#include <Svc/Deframer/DeframerComponentAc.hpp>
Protected Types | |
enum | { NUM_CMDRESPONSEIN_INPUT_PORTS = 1 , NUM_FRAMEDIN_INPUT_PORTS = 1 , NUM_SCHEDIN_INPUT_PORTS = 1 } |
Enumerations for numbers of typed input ports. More... | |
enum | { NUM_BUFFERALLOCATE_OUTPUT_PORTS = 1 , NUM_BUFFERDEALLOCATE_OUTPUT_PORTS = 1 , NUM_BUFFEROUT_OUTPUT_PORTS = 1 , NUM_COMOUT_OUTPUT_PORTS = 1 , NUM_FRAMEDDEALLOCATE_OUTPUT_PORTS = 1 , NUM_FRAMEDPOLL_OUTPUT_PORTS = 1 } |
Enumerations for numbers of typed output ports. More... | |
Protected Member Functions | |
DeframerComponentBase (const char *compName="") | |
Construct DeframerComponentBase object. More... | |
virtual | ~DeframerComponentBase () |
Destroy DeframerComponentBase object. More... | |
FwIndexType | getNum_cmdResponseIn_InputPorts () const |
FwIndexType | getNum_framedIn_InputPorts () const |
FwIndexType | getNum_schedIn_InputPorts () const |
FwIndexType | getNum_bufferAllocate_OutputPorts () const |
FwIndexType | getNum_bufferDeallocate_OutputPorts () const |
FwIndexType | getNum_bufferOut_OutputPorts () const |
FwIndexType | getNum_comOut_OutputPorts () const |
FwIndexType | getNum_framedDeallocate_OutputPorts () const |
FwIndexType | getNum_framedPoll_OutputPorts () const |
bool | isConnected_bufferAllocate_OutputPort (FwIndexType portNum) |
bool | isConnected_bufferDeallocate_OutputPort (FwIndexType portNum) |
bool | isConnected_bufferOut_OutputPort (FwIndexType portNum) |
bool | isConnected_comOut_OutputPort (FwIndexType portNum) |
bool | isConnected_framedDeallocate_OutputPort (FwIndexType portNum) |
bool | isConnected_framedPoll_OutputPort (FwIndexType portNum) |
virtual void | cmdResponseIn_handler (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0 |
Handler for input port cmdResponseIn. More... | |
virtual void | framedIn_handler (FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)=0 |
Handler for input port framedIn. More... | |
virtual void | schedIn_handler (FwIndexType portNum, U32 context)=0 |
Handler for input port schedIn. More... | |
void | cmdResponseIn_handlerBase (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) |
Handler base-class function for input port cmdResponseIn. More... | |
void | framedIn_handlerBase (FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus) |
Handler base-class function for input port framedIn. More... | |
void | schedIn_handlerBase (FwIndexType portNum, U32 context) |
Handler base-class function for input port schedIn. More... | |
Fw::Buffer | bufferAllocate_out (FwIndexType portNum, U32 size) |
Invoke output port bufferAllocate. More... | |
void | bufferDeallocate_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port bufferDeallocate. More... | |
void | bufferOut_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port bufferOut. More... | |
void | comOut_out (FwIndexType portNum, Fw::ComBuffer &data, U32 context) |
Invoke output port comOut. More... | |
void | framedDeallocate_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port framedDeallocate. More... | |
Drv::PollStatus | framedPoll_out (FwIndexType portNum, Fw::Buffer &pollBuffer) |
Invoke output port framedPoll. More... | |
virtual void | lock () |
Lock the guarded mutex. More... | |
virtual void | unLock () |
Unlock the guarded mutex. More... | |
Protected Member Functions inherited from Fw::PassiveComponentBase | |
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 |
Protected Member Functions inherited from Fw::ObjBase | |
ObjBase (const char *name) | |
ObjBase constructor. More... | |
virtual | ~ObjBase () |
Destructor. More... | |
void | init () |
Object initializer. More... | |
Friends | |
class | DeframerComponentBaseFriend |
Friend class for white-box testing. More... | |
Auto-generated base for Deframer component.
A component for deframing input received from the ground via a byte stream driver, which may be active or passive
Definition at line 30 of file DeframerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_CMDRESPONSEIN_INPUT_PORTS | |
NUM_FRAMEDIN_INPUT_PORTS | |
NUM_SCHEDIN_INPUT_PORTS |
Definition at line 48 of file DeframerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_BUFFERALLOCATE_OUTPUT_PORTS | |
NUM_BUFFERDEALLOCATE_OUTPUT_PORTS | |
NUM_BUFFEROUT_OUTPUT_PORTS | |
NUM_COMOUT_OUTPUT_PORTS | |
NUM_FRAMEDDEALLOCATE_OUTPUT_PORTS | |
NUM_FRAMEDPOLL_OUTPUT_PORTS |
Definition at line 55 of file DeframerComponentAc.hpp.
|
protected |
Construct DeframerComponentBase object.
compName | The component name |
Definition at line 406 of file DeframerComponentAc.cpp.
|
protectedvirtual |
Destroy DeframerComponentBase object.
Definition at line 413 of file DeframerComponentAc.cpp.
|
protected |
Invoke output port bufferAllocate.
portNum | The port number |
size | The requested size |
Definition at line 636 of file DeframerComponentAc.cpp.
|
protected |
Invoke output port bufferDeallocate.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 651 of file DeframerComponentAc.cpp.
|
protected |
Invoke output port bufferOut.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 666 of file DeframerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port cmdResponseIn.
portNum | The port number |
opCode | Command Op Code |
cmdSeq | Command Sequence |
response | The command response argument |
|
protected |
Handler base-class function for input port cmdResponseIn.
portNum | The port number |
opCode | Command Op Code |
cmdSeq | Command Sequence |
response | The command response argument |
Definition at line 557 of file DeframerComponentAc.cpp.
|
protected |
Invoke output port comOut.
portNum | The port number |
data | Buffer containing packet data |
context | Call context value; meaning chosen by user |
Definition at line 681 of file DeframerComponentAc.cpp.
|
protected |
Invoke output port framedDeallocate.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 698 of file DeframerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port framedIn.
portNum | The port number |
|
protected |
Handler base-class function for input port framedIn.
portNum | The port number |
Definition at line 580 of file DeframerComponentAc.cpp.
|
protected |
Invoke output port framedPoll.
portNum | The port number |
Definition at line 713 of file DeframerComponentAc.cpp.
Fw::InputCmdResponsePort * Svc::DeframerComponentBase::get_cmdResponseIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 217 of file DeframerComponentAc.cpp.
Drv::InputByteStreamRecvPort * Svc::DeframerComponentBase::get_framedIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 228 of file DeframerComponentAc.cpp.
Svc::InputSchedPort * Svc::DeframerComponentBase::get_schedIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 239 of file DeframerComponentAc.cpp.
|
protected |
Get the number of bufferAllocate output ports
Definition at line 445 of file DeframerComponentAc.cpp.
|
protected |
Get the number of bufferDeallocate output ports
Definition at line 451 of file DeframerComponentAc.cpp.
|
protected |
Get the number of bufferOut output ports
Definition at line 457 of file DeframerComponentAc.cpp.
|
protected |
Get the number of cmdResponseIn input ports
Definition at line 423 of file DeframerComponentAc.cpp.
|
protected |
Get the number of comOut output ports
Definition at line 463 of file DeframerComponentAc.cpp.
|
protected |
Get the number of framedDeallocate output ports
Definition at line 469 of file DeframerComponentAc.cpp.
|
protected |
Get the number of framedIn input ports
Definition at line 429 of file DeframerComponentAc.cpp.
|
protected |
Get the number of framedPoll output ports
Definition at line 475 of file DeframerComponentAc.cpp.
|
protected |
Get the number of schedIn input ports
Definition at line 435 of file DeframerComponentAc.cpp.
void Svc::DeframerComponentBase::init | ( | FwEnumStoreType | instance = 0 | ) |
Initialize DeframerComponentBase object.
instance | The instance number |
Definition at line 20 of file DeframerComponentAc.cpp.
|
protected |
Check whether port bufferAllocate is connected
portNum | The port number |
Definition at line 485 of file DeframerComponentAc.cpp.
|
protected |
Check whether port bufferDeallocate is connected
portNum | The port number |
Definition at line 496 of file DeframerComponentAc.cpp.
|
protected |
Check whether port bufferOut is connected
portNum | The port number |
Definition at line 507 of file DeframerComponentAc.cpp.
|
protected |
Check whether port comOut is connected
portNum | The port number |
Definition at line 518 of file DeframerComponentAc.cpp.
|
protected |
Check whether port framedDeallocate is connected
portNum | The port number |
Definition at line 529 of file DeframerComponentAc.cpp.
|
protected |
Check whether port framedPoll is connected
portNum | The port number |
Definition at line 540 of file DeframerComponentAc.cpp.
|
protectedvirtual |
Lock the guarded mutex.
Definition at line 735 of file DeframerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port schedIn.
portNum | The port number |
context | The call order |
|
protected |
Handler base-class function for input port schedIn.
portNum | The port number |
context | The call order |
Definition at line 607 of file DeframerComponentAc.cpp.
void Svc::DeframerComponentBase::set_bufferAllocate_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferGetPort * | port | ||
) |
Connect port to bufferAllocate[portNum].
portNum | The port number |
port | The input port |
Definition at line 254 of file DeframerComponentAc.cpp.
void Svc::DeframerComponentBase::set_bufferDeallocate_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferSendPort * | port | ||
) |
Connect port to bufferDeallocate[portNum].
portNum | The port number |
port | The input port |
Definition at line 268 of file DeframerComponentAc.cpp.
void Svc::DeframerComponentBase::set_bufferOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferSendPort * | port | ||
) |
Connect port to bufferOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 282 of file DeframerComponentAc.cpp.
void Svc::DeframerComponentBase::set_comOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputComPort * | port | ||
) |
Connect port to comOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 296 of file DeframerComponentAc.cpp.
void Svc::DeframerComponentBase::set_framedDeallocate_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferSendPort * | port | ||
) |
Connect port to framedDeallocate[portNum].
portNum | The port number |
port | The input port |
Definition at line 310 of file DeframerComponentAc.cpp.
void Svc::DeframerComponentBase::set_framedPoll_OutputPort | ( | FwIndexType | portNum, |
Drv::InputByteStreamPollPort * | port | ||
) |
Connect port to framedPoll[portNum].
portNum | The port number |
port | The input port |
Definition at line 324 of file DeframerComponentAc.cpp.
|
protectedvirtual |
Unlock the guarded mutex.
Definition at line 741 of file DeframerComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 39 of file DeframerComponentAc.hpp.