7 #ifndef Svc_OsTimeComponentAc_HPP 8 #define Svc_OsTimeComponentAc_HPP 20 #if FW_ENABLE_TEXT_LOGGING == 1 23 #if !FW_DIRECT_PORT_CALLS 26 #if !FW_DIRECT_PORT_CALLS 98 #if !FW_DIRECT_PORT_CALLS 115 #if !FW_DIRECT_PORT_CALLS 139 #if !FW_DIRECT_PORT_CALLS 165 #if FW_ENABLE_TEXT_LOGGING == 1 168 void set_LogText_OutputPort(
183 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 194 Fw::InputSerializePort* port
200 Fw::InputSerializePort* port
206 Fw::InputSerializePort* port
209 #if FW_ENABLE_TEXT_LOGGING == 1 212 void set_LogText_OutputPort(
214 Fw::InputSerializePort* port
222 Fw::InputSerializePort* port
246 const char* compName =
"" 312 #if FW_ENABLE_TEXT_LOGGING == 1 317 static constexpr
FwIndexType getNum_LogText_OutputPorts() {
357 #if FW_ENABLE_TEXT_LOGGING == 1 362 bool isConnected_LogText_OutputPort(
375 #if FW_DIRECT_PORT_CALLS 414 #if FW_DIRECT_PORT_CALLS 511 static void m_p_CmdDisp_in(
526 static void m_p_setEpoch_in(
534 static void m_p_timeGetPort_in(
569 #if FW_ENABLE_TEXT_LOGGING 588 #if !FW_DIRECT_PORT_CALLS 601 #if !FW_DIRECT_PORT_CALLS 617 #if !FW_DIRECT_PORT_CALLS 634 #if FW_ENABLE_TEXT_LOGGING == 1 static constexpr FwIndexType getNum_setEpoch_InputPorts()
bool isConnected_CmdReg_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_EventOut_OutputPorts()
Svc::InputOsTimeEpochPort * get_setEpoch_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_CmdDisp_InputPorts()
FwIdType FwOpcodeType
The type of a command opcode.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
virtual void SetCurrentTime_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, U32 seconds_now)=0
Handler for command SetCurrentTime.
void set_CmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to CmdStatus[portNum].
Fw::InputCmdPort * get_CmdDisp_InputPort(FwIndexType portNum)
void log_WARNING_HI_SetCurrentTimeError(U32 status) const
An error occurred while attempting to set the current time.
void CmdDisp_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port CmdDisp.
static constexpr FwIndexType getNum_CmdStatus_OutputPorts()
Enum representing a command response.
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
virtual void setEpoch_handler(FwIndexType portNum, const Fw::Time &fw_time, const Os::RawTime &os_time)=0
Handler for input port setEpoch.
void init()
Object initializer.
FwIdType FwEventIdType
The type of an event identifier.
void setEpoch_handlerBase(FwIndexType portNum, const Fw::Time &fw_time, const Os::RawTime &os_time)
Handler base-class function for input port setEpoch.
static constexpr FwIndexType getNum_timeGetPort_InputPorts()
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void SetCurrentTime_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Base-class handler function for command SetCurrentTime.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
Enum representing event severity.
bool isConnected_EventOut_OutputPort(FwIndexType portNum) const
void timeGetPort_handlerBase(FwIndexType portNum, Fw::Time &time)
Handler base-class function for input port timeGetPort.
Auto-generated base for OsTime component.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
PlatformIndexType FwIndexType
friend class OsTimeTesterBase
Friend class tester to support autocoded test harness.
void set_EventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to EventOut[portNum].
virtual ~OsTimeComponentBase()
Destroy OsTimeComponentBase object.
RateGroupDivider component implementation.
virtual void timeGetPort_handler(FwIndexType portNum, Fw::Time &time)=0
Handler for input port timeGetPort.
Fw::InputTimePort * get_timeGetPort_InputPort(FwIndexType portNum)
void regCommands()
Register commands with the Command Dispatcher.
friend class OsTimeTester
Friend class tester implementation to support white-box testing.
OsTimeComponentBase(const char *compName="")
Construct OsTimeComponentBase object.
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_CmdReg_OutputPorts()