7 #ifndef Svc_OsTimeComponentAc_HPP 8 #define Svc_OsTimeComponentAc_HPP 21 #if !FW_DIRECT_PORT_CALLS 24 #if !FW_DIRECT_PORT_CALLS 96 #if !FW_DIRECT_PORT_CALLS 113 #if !FW_DIRECT_PORT_CALLS 137 #if !FW_DIRECT_PORT_CALLS 163 #if FW_ENABLE_TEXT_LOGGING == 1 166 void set_LogText_OutputPort(
181 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 192 Fw::InputSerializePort* port
198 Fw::InputSerializePort* port
204 Fw::InputSerializePort* port
207 #if FW_ENABLE_TEXT_LOGGING == 1 210 void set_LogText_OutputPort(
212 Fw::InputSerializePort* port
220 Fw::InputSerializePort* port
244 const char* compName =
"" 310 #if FW_ENABLE_TEXT_LOGGING == 1 315 static constexpr
FwIndexType getNum_LogText_OutputPorts() {
355 #if FW_ENABLE_TEXT_LOGGING == 1 360 bool isConnected_LogText_OutputPort(
373 #if FW_DIRECT_PORT_CALLS 412 #if FW_DIRECT_PORT_CALLS 509 static void m_p_CmdDisp_in(
524 static void m_p_setEpoch_in(
532 static void m_p_timeGetPort_in(
567 #if FW_ENABLE_TEXT_LOGGING 586 #if !FW_DIRECT_PORT_CALLS 599 #if !FW_DIRECT_PORT_CALLS 615 #if !FW_DIRECT_PORT_CALLS 632 #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
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.
An error occurred while attempting to set the current time.
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()