Auto-generated base for OsTime component.
More...
#include <Svc/OsTime/OsTimeComponentAc.hpp>
|
| | OsTimeComponentBase (const char *compName="") |
| | Construct OsTimeComponentBase object. More...
|
| |
| virtual | ~OsTimeComponentBase () |
| | Destroy OsTimeComponentBase object. More...
|
| |
| bool | isConnected_CmdReg_OutputPort (FwIndexType portNum) |
| |
| bool | isConnected_CmdStatus_OutputPort (FwIndexType portNum) |
| |
| bool | isConnected_EventOut_OutputPort (FwIndexType portNum) |
| |
| bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) |
| |
| virtual void | setEpoch_handler (FwIndexType portNum, const Fw::Time &fw_time, const Os::RawTime &os_time)=0 |
| | Handler for input port setEpoch. More...
|
| |
| virtual void | timeGetPort_handler (FwIndexType portNum, Fw::Time &time)=0 |
| | Handler for input port timeGetPort. More...
|
| |
| void | setEpoch_handlerBase (FwIndexType portNum, const Fw::Time &fw_time, const Os::RawTime &os_time) |
| | Handler base-class function for input port setEpoch. More...
|
| |
| void | timeGetPort_handlerBase (FwIndexType portNum, Fw::Time &time) |
| | Handler base-class function for input port timeGetPort. More...
|
| |
| void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
| | Emit command response. More...
|
| |
| virtual void | SetCurrentTime_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, U32 seconds_now)=0 |
| | Handler for command SetCurrentTime. More...
|
| |
| void | SetCurrentTime_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| | Base-class handler function for command SetCurrentTime. More...
|
| |
| void | log_WARNING_HI_SetCurrentTimeError (U32 status) const |
| |
| Fw::Time | getTime () const |
| |
| | 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...
|
| |
Auto-generated base for OsTime component.
A time component using OSAL RawTime abstractions
Definition at line 34 of file OsTimeComponentAc.hpp.
◆ anonymous enum
Enumerations for numbers of special input ports.
| Enumerator |
|---|
| NUM_CMDDISP_INPUT_PORTS | |
Definition at line 54 of file OsTimeComponentAc.hpp.
◆ anonymous enum
Enumerations for numbers of typed input ports.
| Enumerator |
|---|
| NUM_SETEPOCH_INPUT_PORTS | |
| NUM_TIMEGETPORT_INPUT_PORTS | |
Definition at line 59 of file OsTimeComponentAc.hpp.
◆ anonymous enum
Enumerations for numbers of special output ports.
| Enumerator |
|---|
| NUM_CMDREG_OUTPUT_PORTS | |
| NUM_CMDSTATUS_OUTPUT_PORTS | |
| NUM_EVENTOUT_OUTPUT_PORTS | |
| NUM_LOGTEXT_OUTPUT_PORTS | |
| NUM_TIMECALLER_OUTPUT_PORTS | |
Definition at line 65 of file OsTimeComponentAc.hpp.
◆ anonymous enum
◆ anonymous enum
Event IDs.
| Enumerator |
|---|
| EVENTID_SETCURRENTTIMEERROR | An error occurred while attempting to set the current time.
|
Definition at line 79 of file OsTimeComponentAc.hpp.
◆ OsTimeComponentBase()
| Svc::OsTimeComponentBase::OsTimeComponentBase |
( |
const char * |
compName = "" | ) |
|
|
protected |
◆ ~OsTimeComponentBase()
| Svc::OsTimeComponentBase::~OsTimeComponentBase |
( |
| ) |
|
|
protectedvirtual |
◆ cmdResponse_out()
Emit command response.
- Parameters
-
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 542 of file OsTimeComponentAc.cpp.
◆ get_CmdDisp_InputPort()
Get special input port at index
- Returns
- CmdDisp[portNum]
- Parameters
-
Definition at line 201 of file OsTimeComponentAc.cpp.
◆ get_setEpoch_InputPort()
◆ get_timeGetPort_InputPort()
Get typed input port at index
- Returns
- timeGetPort[portNum]
- Parameters
-
Definition at line 227 of file OsTimeComponentAc.cpp.
◆ getNum_CmdDisp_InputPorts()
| static constexpr FwIndexType Svc::OsTimeComponentBase::getNum_CmdDisp_InputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of CmdDisp input ports
- Returns
- The number of CmdDisp input ports
Definition at line 245 of file OsTimeComponentAc.hpp.
◆ getNum_CmdReg_OutputPorts()
| static constexpr FwIndexType Svc::OsTimeComponentBase::getNum_CmdReg_OutputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of CmdReg output ports
- Returns
- The number of CmdReg output ports
Definition at line 278 of file OsTimeComponentAc.hpp.
◆ getNum_CmdStatus_OutputPorts()
| static constexpr FwIndexType Svc::OsTimeComponentBase::getNum_CmdStatus_OutputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of CmdStatus output ports
- Returns
- The number of CmdStatus output ports
Definition at line 285 of file OsTimeComponentAc.hpp.
◆ getNum_EventOut_OutputPorts()
| static constexpr FwIndexType Svc::OsTimeComponentBase::getNum_EventOut_OutputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of EventOut output ports
- Returns
- The number of EventOut output ports
Definition at line 292 of file OsTimeComponentAc.hpp.
◆ getNum_setEpoch_InputPorts()
| static constexpr FwIndexType Svc::OsTimeComponentBase::getNum_setEpoch_InputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of setEpoch input ports
- Returns
- The number of setEpoch input ports
Definition at line 258 of file OsTimeComponentAc.hpp.
◆ getNum_timeCaller_OutputPorts()
| static constexpr FwIndexType Svc::OsTimeComponentBase::getNum_timeCaller_OutputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of timeCaller output ports
- Returns
- The number of timeCaller output ports
Definition at line 310 of file OsTimeComponentAc.hpp.
◆ getNum_timeGetPort_InputPorts()
| static constexpr FwIndexType Svc::OsTimeComponentBase::getNum_timeGetPort_InputPorts |
( |
| ) |
|
|
inlinestaticprotected |
Get the number of timeGetPort input ports
- Returns
- The number of timeGetPort input ports
Definition at line 265 of file OsTimeComponentAc.hpp.
◆ getTime()
| Fw::Time Svc::OsTimeComponentBase::getTime |
( |
| ) |
const |
|
protected |
◆ init()
◆ isConnected_CmdReg_OutputPort()
| bool Svc::OsTimeComponentBase::isConnected_CmdReg_OutputPort |
( |
FwIndexType |
portNum | ) |
|
|
protected |
Check whether port CmdReg is connected
- Returns
- Whether port CmdReg is connected
- Parameters
-
Definition at line 433 of file OsTimeComponentAc.cpp.
◆ isConnected_CmdStatus_OutputPort()
| bool Svc::OsTimeComponentBase::isConnected_CmdStatus_OutputPort |
( |
FwIndexType |
portNum | ) |
|
|
protected |
Check whether port CmdStatus is connected
- Returns
- Whether port CmdStatus is connected
- Parameters
-
Definition at line 444 of file OsTimeComponentAc.cpp.
◆ isConnected_EventOut_OutputPort()
| bool Svc::OsTimeComponentBase::isConnected_EventOut_OutputPort |
( |
FwIndexType |
portNum | ) |
|
|
protected |
Check whether port EventOut is connected
- Returns
- Whether port EventOut is connected
- Parameters
-
Definition at line 455 of file OsTimeComponentAc.cpp.
◆ isConnected_timeCaller_OutputPort()
| bool Svc::OsTimeComponentBase::isConnected_timeCaller_OutputPort |
( |
FwIndexType |
portNum | ) |
|
|
protected |
Check whether port timeCaller is connected
- Returns
- Whether port timeCaller is connected
- Parameters
-
Definition at line 481 of file OsTimeComponentAc.cpp.
◆ log_WARNING_HI_SetCurrentTimeError()
| void Svc::OsTimeComponentBase::log_WARNING_HI_SetCurrentTimeError |
( |
U32 |
status | ) |
const |
|
protected |
Log event SetCurrentTimeError
An error occurred while attempting to set the current time
- Parameters
-
Definition at line 610 of file OsTimeComponentAc.cpp.
◆ regCommands()
| void Svc::OsTimeComponentBase::regCommands |
( |
| ) |
|
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 402 of file OsTimeComponentAc.cpp.
◆ set_CmdReg_OutputPort()
Connect port to CmdReg[portNum].
- Parameters
-
| portNum | The port number |
| port | The input port |
Definition at line 242 of file OsTimeComponentAc.cpp.
◆ set_CmdStatus_OutputPort()
Connect port to CmdStatus[portNum].
- Parameters
-
| portNum | The port number |
| port | The input port |
Definition at line 256 of file OsTimeComponentAc.cpp.
◆ set_EventOut_OutputPort()
Connect port to EventOut[portNum].
- Parameters
-
| portNum | The port number |
| port | The input port |
Definition at line 270 of file OsTimeComponentAc.cpp.
◆ set_timeCaller_OutputPort()
Connect port to timeCaller[portNum].
- Parameters
-
| portNum | The port number |
| port | The input port |
Definition at line 302 of file OsTimeComponentAc.cpp.
◆ SetCurrentTime_cmdHandler()
| virtual void Svc::OsTimeComponentBase::SetCurrentTime_cmdHandler |
( |
FwOpcodeType |
opCode, |
|
|
U32 |
cmdSeq, |
|
|
U32 |
seconds_now |
|
) |
| |
|
protectedpure virtual |
Handler for command SetCurrentTime.
- Parameters
-
| opCode | The opcode |
| cmdSeq | The command sequence number |
◆ SetCurrentTime_cmdHandlerBase()
Base-class handler function for command SetCurrentTime.
- Parameters
-
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 559 of file OsTimeComponentAc.cpp.
◆ setEpoch_handler()
Handler for input port setEpoch.
- Parameters
-
◆ setEpoch_handlerBase()
◆ timeGetPort_handler()
| virtual void Svc::OsTimeComponentBase::timeGetPort_handler |
( |
FwIndexType |
portNum, |
|
|
Fw::Time & |
time |
|
) |
| |
|
protectedpure virtual |
Handler for input port timeGetPort.
- Parameters
-
| portNum | The port number |
| time | Reference to Time object |
◆ timeGetPort_handlerBase()
| void Svc::OsTimeComponentBase::timeGetPort_handlerBase |
( |
FwIndexType |
portNum, |
|
|
Fw::Time & |
time |
|
) |
| |
|
protected |
Handler base-class function for input port timeGetPort.
- Parameters
-
| portNum | The port number |
| time | Reference to Time object |
Definition at line 519 of file OsTimeComponentAc.cpp.
◆ OsTimeTester
| friend class OsTimeTester |
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 45 of file OsTimeComponentAc.hpp.
◆ OsTimeTesterBase
| friend class OsTimeTesterBase |
|
friend |
The documentation for this class was generated from the following files: