![]() |
F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Svc/TlmChan/TlmChan.hpp>
Public Member Functions | |
TlmChan (const char *compName) | |
virtual | ~TlmChan () |
void | init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance) |
![]() | |
void | init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance=0) |
Initialize TlmChanComponentBase object. | |
Svc::InputSchedPort * | get_Run_InputPort (NATIVE_INT_TYPE portNum) |
Fw::InputTlmGetPort * | get_TlmGet_InputPort (NATIVE_INT_TYPE portNum) |
Fw::InputTlmPort * | get_TlmRecv_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputPingPort * | get_pingIn_InputPort (NATIVE_INT_TYPE portNum) |
void | set_PktSend_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputComPort *port) |
Connect port to PktSend[portNum]. | |
void | set_pingOut_OutputPort (NATIVE_INT_TYPE portNum, Svc::InputPingPort *port) |
Connect port to pingOut[portNum]. | |
![]() | |
void | start (NATIVE_UINT_TYPE priority=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE stackSize=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE identifier=Os::Task::TASK_DEFAULT) |
called by instantiator when task is to be started | |
DEPRECATED (void start(NATIVE_INT_TYPE identifier, NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, NATIVE_INT_TYPE cpuAffinity=-1), "Please switch to start(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity, NATIVE_UINT_TYPE identifier)") | |
called by instantiator when task is to be started | |
void | exit () |
exit task in active component | |
Os::Task::TaskStatus | join (void **value_ptr) |
provide return value of thread if value_ptr is not NULL | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. | |
U32 | getIdBase () const |
Protected Member Functions | |
virtual NATIVE_UINT_TYPE | doHash (FwChanIdType id) |
![]() | |
TlmChanComponentBase (const char *compName="") | |
Construct TlmChanComponentBase object. | |
virtual | ~TlmChanComponentBase () |
Destroy TlmChanComponentBase object. | |
NATIVE_INT_TYPE | getNum_Run_InputPorts () const |
NATIVE_INT_TYPE | getNum_TlmGet_InputPorts () const |
NATIVE_INT_TYPE | getNum_TlmRecv_InputPorts () const |
NATIVE_INT_TYPE | getNum_pingIn_InputPorts () const |
NATIVE_INT_TYPE | getNum_PktSend_OutputPorts () const |
NATIVE_INT_TYPE | getNum_pingOut_OutputPorts () const |
bool | isConnected_PktSend_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_pingOut_OutputPort (NATIVE_INT_TYPE portNum) |
void | Run_handlerBase (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context) |
Handler base-class function for input port Run. | |
void | TlmGet_handlerBase (NATIVE_INT_TYPE portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) |
Handler base-class function for input port TlmGet. | |
void | TlmRecv_handlerBase (NATIVE_INT_TYPE portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) |
Handler base-class function for input port TlmRecv. | |
void | pingIn_handlerBase (NATIVE_INT_TYPE portNum, U32 key) |
Handler base-class function for input port pingIn. | |
virtual void | Run_preMsgHook (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context) |
Pre-message hook for async input port Run. | |
virtual void | pingIn_preMsgHook (NATIVE_INT_TYPE portNum, U32 key) |
Pre-message hook for async input port pingIn. | |
void | PktSend_out (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context) |
Invoke output port PktSend. | |
void | pingOut_out (NATIVE_INT_TYPE portNum, U32 key) |
Invoke output port pingOut. | |
virtual void | lock () |
Lock the guarded mutex. | |
virtual void | unLock () |
Unlock the guarded mutex. | |
![]() | |
ActiveComponentBase (const char *name) | |
Constructor. | |
virtual | ~ActiveComponentBase () |
Destructor. | |
void | init (NATIVE_INT_TYPE instance) |
initialization code | |
virtual void | preamble () |
A function that will be called before the event loop is entered. | |
virtual void | loop () |
The function that will loop dispatching messages. | |
virtual void | finalizer () |
A function that will be called after exiting the loop. | |
![]() | |
QueuedComponentBase (const char *name) | |
Constructor. | |
virtual | ~QueuedComponentBase () |
Destructor. | |
void | init (NATIVE_INT_TYPE instance) |
initialization function | |
Os::Queue::QueueStatus | createQueue (NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize) |
NATIVE_INT_TYPE | getNumMsgsDropped () |
return number of messages dropped | |
void | incNumMsgDropped () |
increment the number of messages dropped | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
enum | { ACTIVE_COMPONENT_EXIT } |
![]() | |
enum | MsgDispatchStatus { MSG_DISPATCH_OK , MSG_DISPATCH_EMPTY , MSG_DISPATCH_ERROR , MSG_DISPATCH_EXIT } |
![]() | |
enum | { NUM_RUN_INPUT_PORTS = 1 , NUM_TLMGET_INPUT_PORTS = 1 , NUM_TLMRECV_INPUT_PORTS = 1 , NUM_PINGIN_INPUT_PORTS = 1 } |
Enumerations for numbers of typed input ports. More... | |
enum | { NUM_PKTSEND_OUTPUT_PORTS = 1 , NUM_PINGOUT_OUTPUT_PORTS = 1 } |
Enumerations for numbers of typed output ports. More... | |
![]() | |
Os::Task | m_task |
task object for active component | |
![]() | |
Os::Queue | m_queue |
queue object for active component | |
Definition at line 22 of file TlmChan.hpp.
Svc::TlmChan::TlmChan | ( | const char * | compName | ) |
Definition at line 19 of file TlmChan.cpp.
|
virtual |
Definition at line 43 of file TlmChan.cpp.
|
protectedvirtual |
Definition at line 51 of file TlmChan.cpp.
void Svc::TlmChan::init | ( | NATIVE_INT_TYPE | queueDepth, |
NATIVE_INT_TYPE | instance ) |
queueDepth | The queue depth |
instance | The instance number |
Definition at line 45 of file TlmChan.cpp.