![]() |
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... | |
| 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 Fw::TlmValid | TlmGet_handler (FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)=0 |
| Handler for input port TlmGet. 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... | |
| Fw::TlmValid | TlmGet_handlerBase (FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) |
| Handler base-class function for input port TlmGet. 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, FwChanIdType 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 (FwChanIdType Id) const |
| void | log_ACTIVITY_HI_LevelSet (FwChanIdType id) const |
| void | log_WARNING_LO_MaxLevelExceed (FwChanIdType level, FwChanIdType max) const |
| void | log_ACTIVITY_LO_PacketSent (U32 id) const |
| void | log_WARNING_LO_PacketNotFound (U32 id) const |
| void | tlmWrite_SendLevel (FwChanIdType arg, Fw::Time _tlmTime=Fw::Time()) const |
| Fw::Time | getTime () const |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
| 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... | |
Protected Member Functions inherited from Fw::QueuedComponentBase | |
| 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... | |
Protected Member Functions inherited from Fw::PassiveComponentBase | |
| PassiveComponentBase (const char *name) | |
| Named constructor. More... | |
| virtual | ~PassiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| Initialization function. More... | |
| FwEnumStoreType | 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... | |
Static Protected Member Functions | |
| static constexpr FwIndexType | getNum_cmdIn_InputPorts () |
| static constexpr FwIndexType | getNum_Run_InputPorts () |
| static constexpr FwIndexType | getNum_TlmGet_InputPorts () |
| static constexpr FwIndexType | getNum_TlmRecv_InputPorts () |
| static constexpr FwIndexType | getNum_pingIn_InputPorts () |
| static constexpr FwIndexType | getNum_cmdRegOut_OutputPorts () |
| static constexpr FwIndexType | getNum_cmdResponseOut_OutputPorts () |
| static constexpr FwIndexType | getNum_eventOut_OutputPorts () |
| static constexpr FwIndexType | getNum_timeGetOut_OutputPorts () |
| static constexpr FwIndexType | getNum_tlmOut_OutputPorts () |
| static constexpr FwIndexType | getNum_PktSend_OutputPorts () |
| static constexpr FwIndexType | getNum_pingOut_OutputPorts () |
Friends | |
| class | TlmPacketizerTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | TlmPacketizerTester |
| Friend class tester implementation to support white-box testing. More... | |
Additional Inherited Members | |
Public Types inherited from Fw::ActiveComponentBase | |
| enum | { ACTIVE_COMPONENT_EXIT } |
Public Types inherited from Fw::QueuedComponentBase | |
| enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
Protected Attributes inherited from Fw::ActiveComponentBase | |
| Os::Task | m_task |
| task object for active component More... | |
Protected Attributes inherited from Fw::QueuedComponentBase | |
| Os::Queue | m_queue |
| queue object for active component More... | |
Auto-generated base for TlmPacketizer component.
A component for storing telemetry
Definition at line 40 of file TlmPacketizerComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
| Enumerator | |
|---|---|
| NUM_CMDIN_INPUT_PORTS | |
Definition at line 60 of file TlmPacketizerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_RUN_INPUT_PORTS | |
| NUM_TLMGET_INPUT_PORTS | |
| NUM_TLMRECV_INPUT_PORTS | |
| NUM_PINGIN_INPUT_PORTS | |
Definition at line 65 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 73 of file TlmPacketizerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_PKTSEND_OUTPUT_PORTS | |
| NUM_PINGOUT_OUTPUT_PORTS | |
Definition at line 83 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 89 of file TlmPacketizerComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 95 of file TlmPacketizerComponentAc.hpp.
|
protected |
Channel IDs.
| Enumerator | |
|---|---|
| CHANNELID_SENDLEVEL | Channel ID for SendLevel. |
Definition at line 104 of file TlmPacketizerComponentAc.hpp.
|
protected |
Construct TlmPacketizerComponentBase object.
| compName | The component name |
Definition at line 709 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Destroy TlmPacketizerComponentBase object.
Definition at line 716 of file TlmPacketizerComponentAc.cpp.
|
protected |
Emit command response.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 1060 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 372 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 420 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 387 of file TlmPacketizerComponentAc.cpp.
| Fw::InputTlmGetPort * Svc::TlmPacketizerComponentBase::get_TlmGet_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 398 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 409 of file TlmPacketizerComponentAc.cpp.
|
inlinestaticprotected |
Get the number of cmdIn input ports
Definition at line 337 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdRegOut output ports
Definition at line 384 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdResponseOut output ports
Definition at line 391 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of eventOut output ports
Definition at line 398 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingIn input ports
Definition at line 371 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingOut output ports
Definition at line 443 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of PktSend output ports
Definition at line 436 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Run input ports
Definition at line 350 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of timeGetOut output ports
Definition at line 416 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of TlmGet input ports
Definition at line 357 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of tlmOut output ports
Definition at line 423 of file TlmPacketizerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of TlmRecv input ports
Definition at line 364 of file TlmPacketizerComponentAc.hpp.
|
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 726 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port cmdResponseOut is connected
| portNum | The port number |
Definition at line 737 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port eventOut is connected
| portNum | The port number |
Definition at line 748 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
| portNum | The port number |
Definition at line 811 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port PktSend is connected
| portNum | The port number |
Definition at line 800 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port timeGetOut is connected
| portNum | The port number |
Definition at line 774 of file TlmPacketizerComponentAc.cpp.
|
protected |
Check whether port tlmOut is connected
| portNum | The port number |
Definition at line 785 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event LevelSet
Telemetry send level set
| id | The level |
Definition at line 1311 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event PacketSent
Packet manually sent
| id | The packet ID |
Definition at line 1495 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event MaxLevelExceed
Telemetry send level set
| level | The level |
| max | The max packet level |
Definition at line 1393 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event NoChan
Telemetry channel is not part of a telemetry packet.
| Id | The telemetry ID |
Definition at line 1229 of file TlmPacketizerComponentAc.cpp.
|
protected |
Log event PacketNotFound
Couldn't find the packet to send
| id | The packet ID |
Definition at line 1577 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 931 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 1001 of file TlmPacketizerComponentAc.cpp.
|
protected |
Invoke output port pingOut.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1036 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 1014 of file TlmPacketizerComponentAc.cpp.
| void Svc::TlmPacketizerComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 691 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 828 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port Run.
| portNum | The port number |
| context | The call order |
Definition at line 992 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 1136 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SEND_PKT.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1214 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 435 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 449 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 463 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 1077 of file TlmPacketizerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SET_LEVEL.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1203 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 541 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 527 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 495 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 509 of file TlmPacketizerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port TlmGet.
| portNum | The port number |
| id | Telemetry Channel ID |
| timeTag | Time Tag |
| val | Buffer containing serialized telemetry value. Size set to 0 if channel not found, or if no value has been received for this channel yet. |
|
protected |
Handler base-class function for input port TlmGet.
| portNum | The port number |
| id | Telemetry Channel ID |
| timeTag | Time Tag |
| val | Buffer containing serialized telemetry value. Size set to 0 if channel not found, or if no value has been received for this channel yet. |
Definition at line 881 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 908 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 1663 of file TlmPacketizerComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 51 of file TlmPacketizerComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 49 of file TlmPacketizerComponentAc.hpp.