![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for TimeConverter component. More...
#include <Svc/TimeConverter/TimeConverterComponentAc.hpp>
Protected Member Functions | |
| TimeConverterComponentBase (const char *compName="") | |
| Construct TimeConverterComponentBase object. More... | |
| virtual | ~TimeConverterComponentBase () |
| Destroy TimeConverterComponentBase object. More... | |
| bool | isConnected_cmdRegOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_cmdResponseOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_eventOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) const |
| void | cmdIn_handlerBase (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| Handler base-class function for input port cmdIn. More... | |
| virtual Svc::ConvertTimeStatus | convertTime_handler (FwIndexType portNum, const Fw::Time &in_time, Fw::Time &out_time)=0 |
| Handler for input port convertTime. More... | |
| virtual void | offsetUpdate_handler (FwIndexType portNum, const Svc::TimeOffset &offset)=0 |
| Handler for input port offsetUpdate. More... | |
| Svc::ConvertTimeStatus | convertTime_handlerBase (FwIndexType portNum, const Fw::Time &in_time, Fw::Time &out_time) |
| Handler base-class function for input port convertTime. More... | |
| void | offsetUpdate_handlerBase (FwIndexType portNum, const Svc::TimeOffset &offset) |
| Handler base-class function for input port offsetUpdate. More... | |
| void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
| Emit command response. More... | |
| virtual void | SET_OFFSET_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const TimeBase &from, const TimeBase &to, I64 offset_us)=0 |
| virtual void | CLEAR_OFFSETS_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0 |
| virtual void | GET_OFFSET_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const TimeBase &from, const TimeBase &to)=0 |
| virtual void | DUMP_OFFSETS_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0 |
| void | SET_OFFSET_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | CLEAR_OFFSETS_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | GET_OFFSET_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | DUMP_OFFSETS_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | log_WARNING_LO_NoConversionAvailable (const TimeBase &in_tb, const TimeBase &out_tb) |
| void | log_WARNING_LO_InvalidTime (const TimeBase &in_tb, const TimeBase &out_tb, I64 offset_us, I64 in_time_us) |
| void | log_ACTIVITY_HI_OffsetSet (const TimeBase &from, const TimeBase &to, I64 offset_us) const |
| void | log_WARNING_HI_OffsetTableFull (const TimeBase &from, const TimeBase &to, U32 capacity) |
| void | log_ACTIVITY_HI_OffsetsCleared (U32 entries) const |
| void | log_ACTIVITY_HI_OffsetReport (const TimeBase &from, const TimeBase &to, I64 offset_us) const |
| void | log_WARNING_LO_NoOffsetStored (const TimeBase &from, const TimeBase &to) const |
| void | log_ACTIVITY_HI_OffsetTableEmpty () const |
| void | log_WARNING_LO_IdenticalTimeBases (const TimeBase &tb) |
| void | log_WARNING_HI_OffsetOutOfRange (const TimeBase &from, const TimeBase &to, I64 offset_us) |
| void | log_WARNING_HI_UnusableTimeBase (const TimeBase &tb) |
| void | log_WARNING_LO_NoConversionAvailable_ThrottleClear () |
| Reset throttle value for NoConversionAvailable. More... | |
| void | log_WARNING_LO_InvalidTime_ThrottleClear () |
| Reset throttle value for InvalidTime. More... | |
| void | log_WARNING_HI_OffsetTableFull_ThrottleClear () |
| Reset throttle value for OffsetTableFull. More... | |
| void | log_WARNING_LO_IdenticalTimeBases_ThrottleClear () |
| Reset throttle value for IdenticalTimeBases. More... | |
| void | log_WARNING_HI_OffsetOutOfRange_ThrottleClear () |
| Reset throttle value for OffsetOutOfRange. More... | |
| void | log_WARNING_HI_UnusableTimeBase_ThrottleClear () |
| Reset throttle value for UnusableTimeBase. More... | |
| Fw::Time | getTime () const |
| 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 (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_convertTime_InputPorts () |
| static constexpr FwIndexType | getNum_offsetUpdate_InputPorts () |
| static constexpr FwIndexType | getNum_cmdRegOut_OutputPorts () |
| static constexpr FwIndexType | getNum_cmdResponseOut_OutputPorts () |
| static constexpr FwIndexType | getNum_eventOut_OutputPorts () |
| static constexpr FwIndexType | getNum_timeCaller_OutputPorts () |
Friends | |
| class | TimeConverterTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | TimeConverterTester |
| Friend class tester implementation to support white-box testing. More... | |
Auto-generated base for TimeConverter component.
Converts Fw::Time objects between time bases using offsets supplied at runtime
Definition at line 39 of file TimeConverterComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
| Enumerator | |
|---|---|
| NUM_CMDIN_INPUT_PORTS | |
Definition at line 59 of file TimeConverterComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_CONVERTTIME_INPUT_PORTS | |
| NUM_OFFSETUPDATE_INPUT_PORTS | |
Definition at line 64 of file TimeConverterComponentAc.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_TIMECALLER_OUTPUT_PORTS | |
Definition at line 70 of file TimeConverterComponentAc.hpp.
|
protected |
Command opcodes.
Definition at line 79 of file TimeConverterComponentAc.hpp.
|
protected |
Event IDs.
| Enumerator | |
|---|---|
| EVENTID_NOCONVERSIONAVAILABLE | No offset is stored for the requested pair of time bases. |
| EVENTID_INVALIDTIME | Conversion result is not representable as an Fw::Time. |
| EVENTID_OFFSETSET | An offset was stored for a pair of time bases by command. |
| EVENTID_OFFSETTABLEFULL | An offset could not be stored because the offset table is full. |
| EVENTID_OFFSETSCLEARED | Every stored offset was discarded. |
| EVENTID_OFFSETREPORT | Report of a stored offset. |
| EVENTID_NOOFFSETSTORED | No offset is stored for the requested pair of time bases. |
| EVENTID_OFFSETTABLEEMPTY | The offset table holds no entries. |
| EVENTID_IDENTICALTIMEBASES | An offset was supplied for a single time base rather than a pair. |
| EVENTID_OFFSETOUTOFRANGE | An offset was rejected because no time can be shifted that far. |
| EVENTID_UNUSABLETIMEBASE | A time base that denotes no clock was supplied as an end of a pair. |
Definition at line 87 of file TimeConverterComponentAc.hpp.
|
protected |
Event throttle values: sets initial value of countdown variables.
Definition at line 102 of file TimeConverterComponentAc.hpp.
|
protected |
Construct TimeConverterComponentBase object.
| compName | The component name |
Definition at line 458 of file TimeConverterComponentAc.cpp.
|
protectedvirtual |
Destroy TimeConverterComponentBase object.
Definition at line 470 of file TimeConverterComponentAc.cpp.
|
protectedpure virtual |
Handler for command CLEAR_OFFSETS
Discard every stored offset
| opCode | The opcode |
| cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command CLEAR_OFFSETS
Discard every stored offset
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 770 of file TimeConverterComponentAc.cpp.
|
protected |
Handler base-class function for input port cmdIn.
| portNum | The port number |
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 549 of file TimeConverterComponentAc.cpp.
|
protected |
Emit command response.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 670 of file TimeConverterComponentAc.cpp.
|
protectedpure virtual |
Handler for input port convertTime.
| portNum | The port number |
| in_time | time to convert |
| out_time | carries the requested time base in; carries the converted time out |
|
protected |
Handler base-class function for input port convertTime.
| portNum | The port number |
| in_time | time to convert |
| out_time | carries the requested time base in; carries the converted time out |
Definition at line 610 of file TimeConverterComponentAc.cpp.
|
protectedpure virtual |
Handler for command DUMP_OFFSETS
Report every stored offset as events
| opCode | The opcode |
| cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command DUMP_OFFSETS
Report every stored offset as events
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 868 of file TimeConverterComponentAc.cpp.
| Fw::InputCmdPort * Svc::TimeConverterComponentBase::get_cmdIn_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
| portNum | The port number |
Definition at line 217 of file TimeConverterComponentAc.cpp.
| Svc::InputConvertTimePort * Svc::TimeConverterComponentBase::get_convertTime_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 236 of file TimeConverterComponentAc.cpp.
|
protectedpure virtual |
Handler for command GET_OFFSET
Report the offset stored for a pair of time bases as an event
| opCode | The opcode |
| cmdSeq | The command sequence number |
| from | time base the offset converts from |
| to | time base the offset converts to |
|
protected |
Base-class handler function for command GET_OFFSET
Report the offset stored for a pair of time bases as an event
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 800 of file TimeConverterComponentAc.cpp.
| Svc::InputTimeOffsetSendPort * Svc::TimeConverterComponentBase::get_offsetUpdate_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 247 of file TimeConverterComponentAc.cpp.
|
inlinestaticprotected |
Get the number of cmdIn input ports
Definition at line 285 of file TimeConverterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdRegOut output ports
Definition at line 318 of file TimeConverterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdResponseOut output ports
Definition at line 325 of file TimeConverterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of convertTime input ports
Definition at line 298 of file TimeConverterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of eventOut output ports
Definition at line 332 of file TimeConverterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of offsetUpdate input ports
Definition at line 305 of file TimeConverterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of timeCaller output ports
Definition at line 350 of file TimeConverterComponentAc.hpp.
|
protected |
| void Svc::TimeConverterComponentBase::init | ( | FwEnumStoreType | instance = 0 | ) |
Initialize TimeConverterComponentBase object.
| instance | The instance number |
Definition at line 21 of file TimeConverterComponentAc.cpp.
|
protected |
Check whether port cmdRegOut is connected
| portNum | The port number |
Definition at line 482 of file TimeConverterComponentAc.cpp.
|
protected |
Check whether port cmdResponseOut is connected
| portNum | The port number |
Definition at line 493 of file TimeConverterComponentAc.cpp.
|
protected |
Check whether port eventOut is connected
| portNum | The port number |
Definition at line 504 of file TimeConverterComponentAc.cpp.
|
protected |
Check whether port timeCaller is connected
| portNum | The port number |
Definition at line 530 of file TimeConverterComponentAc.cpp.
|
protectedvirtual |
Lock the guarded mutex.
Definition at line 2194 of file TimeConverterComponentAc.cpp.
|
protected |
Log event OffsetReport
Report of a stored offset
| from | time base the offset converts from |
| to | time base the offset converts to |
| offset_us | offset stored |
Definition at line 1508 of file TimeConverterComponentAc.cpp.
|
protected |
Log event OffsetsCleared
Every stored offset was discarded
| entries | number of entries discarded |
Definition at line 1426 of file TimeConverterComponentAc.cpp.
|
protected |
Log event OffsetSet
An offset was stored for a pair of time bases by command
| from | time base the offset converts from |
| to | time base the offset converts to |
| offset_us | offset stored |
Definition at line 1168 of file TimeConverterComponentAc.cpp.
|
protected |
Log event OffsetTableEmpty
The offset table holds no entries
Definition at line 1740 of file TimeConverterComponentAc.cpp.
|
protected |
Log event OffsetOutOfRange
An offset was rejected because no time can be shifted that far
| from | time base the offset converts from |
| to | time base the offset converts to |
| offset_us | offset supplied |
Definition at line 1898 of file TimeConverterComponentAc.cpp.
|
protected |
Reset throttle value for OffsetOutOfRange.
Definition at line 2156 of file TimeConverterComponentAc.cpp.
|
protected |
Log event OffsetTableFull
An offset could not be stored because the offset table is full
| from | time base the offset converts from |
| to | time base the offset converts to |
| capacity | configured offset table capacity |
Definition at line 1293 of file TimeConverterComponentAc.cpp.
|
protected |
Reset throttle value for OffsetTableFull.
Definition at line 2142 of file TimeConverterComponentAc.cpp.
|
protected |
Log event UnusableTimeBase
A time base that denotes no clock was supplied as an end of a pair
| tb | time base supplied |
Definition at line 2031 of file TimeConverterComponentAc.cpp.
|
protected |
Reset throttle value for UnusableTimeBase.
Definition at line 2163 of file TimeConverterComponentAc.cpp.
|
protected |
Log event IdenticalTimeBases
An offset was supplied for a single time base rather than a pair
| tb | time base supplied as both ends of the pair |
Definition at line 1805 of file TimeConverterComponentAc.cpp.
|
protected |
Reset throttle value for IdenticalTimeBases.
Definition at line 2149 of file TimeConverterComponentAc.cpp.
|
protected |
Log event InvalidTime
Conversion result is not representable as an Fw::Time
| in_tb | time base converted from |
| out_tb | time base converted to |
| offset_us | offset applied |
| in_time_us | time converted, in microseconds |
Definition at line 1017 of file TimeConverterComponentAc.cpp.
|
protected |
Reset throttle value for InvalidTime.
Definition at line 2135 of file TimeConverterComponentAc.cpp.
|
protected |
Log event NoConversionAvailable
No offset is stored for the requested pair of time bases
| in_tb | time base converted from |
| out_tb | time base converted to |
Definition at line 902 of file TimeConverterComponentAc.cpp.
|
protected |
Reset throttle value for NoConversionAvailable.
Definition at line 2128 of file TimeConverterComponentAc.cpp.
|
protected |
Log event NoOffsetStored
No offset is stored for the requested pair of time bases
| from | time base the offset converts from |
| to | time base the offset converts to |
Definition at line 1633 of file TimeConverterComponentAc.cpp.
|
protectedpure virtual |
Handler for input port offsetUpdate.
| portNum | The port number |
|
protected |
Handler base-class function for input port offsetUpdate.
| portNum | The port number |
Definition at line 641 of file TimeConverterComponentAc.cpp.
| void Svc::TimeConverterComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 428 of file TimeConverterComponentAc.cpp.
| void Svc::TimeConverterComponentBase::set_cmdRegOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdRegPort * | port | ||
| ) |
Connect port to cmdRegOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 266 of file TimeConverterComponentAc.cpp.
| void Svc::TimeConverterComponentBase::set_cmdResponseOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdResponsePort * | port | ||
| ) |
Connect port to cmdResponseOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 280 of file TimeConverterComponentAc.cpp.
| void Svc::TimeConverterComponentBase::set_eventOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to eventOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 294 of file TimeConverterComponentAc.cpp.
|
protectedpure virtual |
Handler for command SET_OFFSET
Set the offset between a pair of time bases
| opCode | The opcode |
| cmdSeq | The command sequence number |
| from | time base the offset converts from |
| to | time base the offset converts to |
| offset_us | microseconds added to a "from" time to produce a "to" time |
|
protected |
Base-class handler function for command SET_OFFSET
Set the offset between a pair of time bases
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 687 of file TimeConverterComponentAc.cpp.
| void Svc::TimeConverterComponentBase::set_timeCaller_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to timeCaller[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 326 of file TimeConverterComponentAc.cpp.
|
protectedvirtual |
Unlock the guarded mutex.
Definition at line 2200 of file TimeConverterComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 50 of file TimeConverterComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 48 of file TimeConverterComponentAc.hpp.