![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for TlmPacketizer component. More...
#include <Svc/TlmPacketizer/TlmPacketizerComponentAc.hpp>
Protected Member Functions | |
TlmPacketizerComponentBase (const char *compName="") | |
Construct TlmPacketizerComponentBase object. More... | |
virtual | ~TlmPacketizerComponentBase () |
Destroy TlmPacketizerComponentBase object. More... | |
FwIndexType | getNum_cmdIn_InputPorts () const |
FwIndexType | getNum_Run_InputPorts () const |
FwIndexType | getNum_TlmRecv_InputPorts () const |
FwIndexType | getNum_pingIn_InputPorts () const |
FwIndexType | getNum_cmdRegOut_OutputPorts () const |
FwIndexType | getNum_cmdResponseOut_OutputPorts () const |
FwIndexType | getNum_eventOut_OutputPorts () const |
FwIndexType | getNum_timeGetOut_OutputPorts () const |
FwIndexType | getNum_tlmOut_OutputPorts () const |
FwIndexType | getNum_PktSend_OutputPorts () const |
FwIndexType | getNum_pingOut_OutputPorts () const |
bool | isConnected_cmdRegOut_OutputPort (FwIndexType portNum) |
bool | isConnected_cmdResponseOut_OutputPort (FwIndexType portNum) |
bool | isConnected_eventOut_OutputPort (FwIndexType portNum) |
bool | isConnected_timeGetOut_OutputPort (FwIndexType portNum) |
bool | isConnected_tlmOut_OutputPort (FwIndexType portNum) |
bool | isConnected_PktSend_OutputPort (FwIndexType portNum) |
bool | isConnected_pingOut_OutputPort (FwIndexType portNum) |
virtual void | Run_handler (FwIndexType portNum, U32 context)=0 |
Handler for input port Run. More... | |
virtual void | TlmRecv_handler (FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)=0 |
Handler for input port TlmRecv. More... | |
virtual void | pingIn_handler (FwIndexType portNum, U32 key)=0 |
Handler for input port pingIn. More... | |
void | Run_handlerBase (FwIndexType portNum, U32 context) |
Handler base-class function for input port Run. More... | |
void | TlmRecv_handlerBase (FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) |
Handler base-class function for input port TlmRecv. More... | |
void | pingIn_handlerBase (FwIndexType portNum, U32 key) |
Handler base-class function for input port pingIn. More... | |
virtual void | Run_preMsgHook (FwIndexType portNum, U32 context) |
Pre-message hook for async input port Run. More... | |
virtual void | pingIn_preMsgHook (FwIndexType portNum, U32 key) |
Pre-message hook for async input port pingIn. More... | |
void | PktSend_out (FwIndexType portNum, Fw::ComBuffer &data, U32 context) |
Invoke output port PktSend. More... | |
void | pingOut_out (FwIndexType portNum, U32 key) |
Invoke output port pingOut. More... | |
void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
Emit command response. More... | |
virtual void | SET_LEVEL_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, U32 level)=0 |
virtual void | SEND_PKT_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, U32 id)=0 |
void | SET_LEVEL_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
void | SEND_PKT_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
virtual void | SET_LEVEL_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
Pre-message hook for command SET_LEVEL. More... | |
virtual void | SEND_PKT_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
Pre-message hook for command SEND_PKT. More... | |
void | log_WARNING_LO_NoChan (U32 Id) const |
void | log_ACTIVITY_HI_LevelSet (U32 id) const |
void | log_WARNING_LO_MaxLevelExceed (U32 level, U32 max) const |
void | log_ACTIVITY_LO_PacketSent (U32 id) const |
void | log_WARNING_LO_PacketNotFound (U32 id) const |
void | tlmWrite_SendLevel (U32 arg, Fw::Time _tlmTime=Fw::Time()) const |
Fw::Time | getTime () |
![]() | |
ActiveComponentBase (const char *name) | |
Constructor. More... | |
virtual | ~ActiveComponentBase () |
Destructor. More... | |
void | init (FwEnumStoreType instance) |
initialization code More... | |
virtual void | preamble () |
A function that will be called before the event loop is entered. More... | |
MsgDispatchStatus | dispatch () |
The function that will dispatching messages. More... | |
virtual void | finalizer () |
A function that will be called after exiting the loop. More... | |
![]() | |
QueuedComponentBase (const char *name) | |
Constructor. More... | |
virtual | ~QueuedComponentBase () |
Destructor. More... | |
void | init (FwEnumStoreType instance) |
initialization function More... | |
Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
FwSizeType | getNumMsgsDropped () |
return number of messages dropped More... | |
void | incNumMsgDropped () |
increment the number of messages dropped 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... | |
Friends | |
class | TlmPacketizerComponentBaseFriend |
Friend class for white-box testing. More... | |
Additional Inherited Members | |
![]() | |
enum | { ACTIVE_COMPONENT_EXIT } |
![]() | |
enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
![]() | |
Os::Task | m_task |
task object for active component More... | |
![]() | |
Os::Queue | m_queue |
queue object for active component More... | |
Auto-generated base for TlmPacketizer component.
A component for storing telemetry
Definition at line 36 of file TlmPacketizerComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
Enumerator | |
---|---|
NUM_CMDIN_INPUT_PORTS |
Definition at line 54 of file TlmPacketizerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_RUN_INPUT_PORTS | |
NUM_TLMRECV_INPUT_PORTS | |
NUM_PINGIN_INPUT_PORTS |
Definition at line 59 of file TlmPacketizerComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
Enumerator | |
---|---|
NUM_CMDREGOUT_OUTPUT_PORTS | |
NUM_CMDRESPONSEOUT_OUTPUT_PORTS | |
NUM_EVENTOUT_OUTPUT_PORTS | |
NUM_TEXTEVENTOUT_OUTPUT_PORTS | |
NUM_TIMEGETOUT_OUTPUT_PORTS | |
NUM_TLMOUT_OUTPUT_PORTS |
Definition at line 66 of file TlmPacketizerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_PKTSEND_OUTPUT_PORTS | |
NUM_PINGOUT_OUTPUT_PORTS |
Definition at line 76 of file TlmPacketizerComponentAc.hpp.
|
protected |
Command opcodes.
Enumerator | |
---|---|
OPCODE_SET_LEVEL | Set telemetry send level. |
OPCODE_SEND_PKT | Force a packet to be sent. |
Definition at line 82 of file TlmPacketizerComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 88 of file TlmPacketizerComponentAc.hpp.
|
protected |
Channel IDs.
Enumerator | |
---|---|
CHANNELID_SENDLEVEL | Channel ID for SendLevel. |
Definition at line 97 of file TlmPacketizerComponentAc.hpp.
|
protected |
Construct TlmPacketizerComponentBase object.
compName | The component name |
Definition at line 674 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Destroy TlmPacketizerComponentBase object.
Definition at line 681 of file TlmPacketizerComponentAc.cpp.
|
protected |
Emit command response.
opCode | The opcode |
cmdSeq | The command sequence number |
response | The command response |
Definition at line 1090 of file TlmPacketizerComponentAc.cpp.
Fw::InputCmdPort * Svc::TlmPacketizerComponentBase::get_cmdIn_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
portNum | The port number |
Definition at line 348 of file TlmPacketizerComponentAc.cpp.
Svc::InputPingPort * Svc::TlmPacketizerComponentBase::get_pingIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 385 of file TlmPacketizerComponentAc.cpp.
Svc::InputSchedPort * Svc::TlmPacketizerComponentBase::get_Run_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 363 of file TlmPacketizerComponentAc.cpp.
Fw::InputTlmPort * Svc::TlmPacketizerComponentBase::get_TlmRecv_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 374 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of cmdIn input ports
Definition at line 691 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of cmdRegOut output ports
Definition at line 723 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of cmdResponseOut output ports
Definition at line 729 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of eventOut output ports
Definition at line 735 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of pingIn input ports
Definition at line 713 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of pingOut output ports
Definition at line 773 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of PktSend output ports
Definition at line 767 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of Run input ports
Definition at line 701 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of timeGetOut output ports
Definition at line 751 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of tlmOut output ports
Definition at line 757 of file TlmPacketizerComponentAc.cpp.
|
protected |
Get the number of TlmRecv input ports
Definition at line 707 of file TlmPacketizerComponentAc.cpp.
|
protected |
void Svc::TlmPacketizerComponentBase::init | ( | FwSizeType | queueDepth, |
FwEnumStoreType | instance = 0 |
||
) |
Initialize TlmPacketizerComponentBase object.
queueDepth | The queue depth |
instance | The instance number |
Definition at line 74 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port cmdRegOut is connected
portNum | The port number |
Definition at line 783 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port cmdResponseOut is connected
portNum | The port number |
Definition at line 794 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port eventOut is connected
portNum | The port number |
Definition at line 805 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
portNum | The port number |
Definition at line 868 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port PktSend is connected
portNum | The port number |
Definition at line 857 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port timeGetOut is connected
portNum | The port number |
Definition at line 831 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port tlmOut is connected
portNum | The port number |
Definition at line 842 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event LevelSet
Telemetry send level set
id | The level |
Definition at line 1341 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event PacketSent
Packet manually sent
id | The packet ID |
Definition at line 1525 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event MaxLevelExceed
Telemetry send level set
level | The level |
max | The max packet level |
Definition at line 1423 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event NoChan
Telemetry channel is not part of a telemetry packet.
Id | The telemetry ID |
Definition at line 1259 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event PacketNotFound
Couldn't find the packet to send
id | The packet ID |
Definition at line 1607 of file TlmPacketizerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port pingIn.
portNum | The port number |
key | Value to return to pinger |
|
protected |
Handler base-class function for input port pingIn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 961 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port pingIn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1031 of file TlmPacketizerComponentAc.cpp.
|
protected |
Invoke output port pingOut.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1066 of file TlmPacketizerComponentAc.cpp.
|
protected |
Invoke output port PktSend.
portNum | The port number |
data | Buffer containing packet data |
context | Call context value; meaning chosen by user |
Definition at line 1044 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 656 of file TlmPacketizerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port Run.
portNum | The port number |
context | The call order |
|
protected |
Handler base-class function for input port Run.
portNum | The port number |
context | The call order |
Definition at line 885 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port Run.
portNum | The port number |
context | The call order |
Definition at line 1022 of file TlmPacketizerComponentAc.cpp.
|
protectedpure virtual |
Handler for command SEND_PKT
Force a packet to be sent
opCode | The opcode |
cmdSeq | The command sequence number |
id | The packet ID |
|
protected |
Base-class handler function for command SEND_PKT
Force a packet to be sent
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1166 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SEND_PKT.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1244 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::set_cmdRegOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputCmdRegPort * | port | ||
) |
Connect port to cmdRegOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 400 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::set_cmdResponseOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputCmdResponsePort * | port | ||
) |
Connect port to cmdResponseOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 414 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::set_eventOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputLogPort * | port | ||
) |
Connect port to eventOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 428 of file TlmPacketizerComponentAc.cpp.
|
protectedpure virtual |
Handler for command SET_LEVEL
Set telemetry send level
opCode | The opcode |
cmdSeq | The command sequence number |
level | The I32 command argument |
|
protected |
Base-class handler function for command SET_LEVEL
Set telemetry send level
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1107 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SET_LEVEL.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1233 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::set_pingOut_OutputPort | ( | FwIndexType | portNum, |
Svc::InputPingPort * | port | ||
) |
Connect port to pingOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 506 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::set_PktSend_OutputPort | ( | FwIndexType | portNum, |
Fw::InputComPort * | port | ||
) |
Connect port to PktSend[portNum].
portNum | The port number |
port | The input port |
Definition at line 492 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::set_timeGetOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputTimePort * | port | ||
) |
Connect port to timeGetOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 460 of file TlmPacketizerComponentAc.cpp.
void Svc::TlmPacketizerComponentBase::set_tlmOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputTlmPort * | port | ||
) |
Connect port to tlmOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 474 of file TlmPacketizerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port TlmRecv.
portNum | The port number |
id | Telemetry Channel ID |
timeTag | Time Tag |
val | Buffer containing serialized telemetry value |
|
protected |
Handler base-class function for input port TlmRecv.
portNum | The port number |
id | Telemetry Channel ID |
timeTag | Time Tag |
val | Buffer containing serialized telemetry value |
Definition at line 938 of file TlmPacketizerComponentAc.cpp.
|
protected |
Write telemetry channel SendLevel
Telemetry send level
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1693 of file TlmPacketizerComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 45 of file TlmPacketizerComponentAc.hpp.