7 #ifndef Drv_LinuxUartDriverComponentAc_HPP 8 #define Drv_LinuxUartDriverComponentAc_HPP 21 #if FW_ENABLE_TEXT_LOGGING == 1 153 #if FW_ENABLE_TEXT_LOGGING == 1 156 void set_LogText_OutputPort(
205 #if FW_PORT_SERIALIZATION 216 Fw::InputSerializePort* port
219 #if FW_ENABLE_TEXT_LOGGING == 1 222 void set_LogText_OutputPort(
224 Fw::InputSerializePort* port
232 Fw::InputSerializePort* port
238 Fw::InputSerializePort* port
243 #if FW_PORT_SERIALIZATION 254 Fw::InputSerializePort* port
260 Fw::InputSerializePort* port
266 Fw::InputSerializePort* port
279 const char* compName =
"" 317 #if FW_ENABLE_TEXT_LOGGING == 1 375 #if FW_ENABLE_TEXT_LOGGING == 1 380 bool isConnected_LogText_OutputPort(
646 static void m_p_recvReturnIn_in(
653 static void m_p_run_in(
690 #if FW_ENABLE_TEXT_LOGGING == 1 728 std::atomic<FwIndexType> m_WriteErrorThrottle;
731 std::atomic<FwIndexType> m_ReadErrorThrottle;
734 std::atomic<FwIndexType> m_NoBuffersThrottle;
virtual void lock()
Lock the guarded mutex.
virtual void unLock()
Unlock the guarded mutex.
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
void log_WARNING_HI_BufferTooSmall(const Fw::StringBase &device, U32 size, U32 needed) const
bool isConnected_Time_OutputPort(FwIndexType portNum)
void recvReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port recvReturnIn.
PlatformSizeType FwSizeType
Drv::ByteStreamStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
bool isConnected_allocate_OutputPort(FwIndexType portNum)
Throttle reset count for ReadError.
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
FwIndexType getNum_deallocate_OutputPorts() const
friend class LinuxUartDriverTesterBase
Friend class tester to support autocoded test harness.
virtual void recvReturnIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port recvReturnIn.
void tlmWrite_BytesRecv(FwSizeType arg, Fw::Time _tlmTime=Fw::Time()) const
FwIndexType getNum_send_InputPorts() const
LinuxUartDriverComponentBase(const char *compName="")
Construct LinuxUartDriverComponentBase object.
Auto-generated base for LinuxUartDriver component.
void log_WARNING_HI_WriteError(const Fw::StringBase &device, I32 error)
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
void init()
Object initializer.
void log_WARNING_HI_ReadError(const Fw::StringBase &device, I32 error)
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
Fw::InputBufferSendPort * get_recvReturnIn_InputPort(FwIndexType portNum)
Status returned by the send call.
FwIndexType getNum_recv_OutputPorts() const
FwIndexType getNum_ready_OutputPorts() const
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void recv_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status)
Invoke output port recv.
void log_WARNING_HI_WriteError_ThrottleClear()
Reset throttle value for WriteError.
void log_WARNING_HI_OpenError(const Fw::StringBase &device, I32 error, const Fw::StringBase &name) const
virtual Drv::ByteStreamStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
bool isConnected_Log_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_PortOpened(const Fw::StringBase &device) const
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
FwIndexType getNum_Log_OutputPorts() const
Channel ID for BytesSent.
void log_WARNING_HI_NoBuffers(const Fw::StringBase &device)
friend class LinuxUartDriverTester
Friend class tester implementation to support white-box testing.
bool isConnected_Tlm_OutputPort(FwIndexType portNum)
Channel ID for BytesRecv.
bool isConnected_recv_OutputPort(FwIndexType portNum)
virtual void run_handler(FwIndexType portNum, U32 context)=0
Handler for input port run.
Svc::InputSchedPort * get_run_InputPort(FwIndexType portNum)
void run_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port run.
FwIndexType getNum_Tlm_OutputPorts() const
Throttle reset count for NoBuffers.
FwIndexType getNum_allocate_OutputPorts() const
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
PlatformIndexType FwIndexType
void ready_out(FwIndexType portNum)
Invoke output port ready.
FwIndexType getNum_recvReturnIn_InputPorts() const
FwIndexType getNum_Time_OutputPorts() const
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
virtual ~LinuxUartDriverComponentBase()
Destroy LinuxUartDriverComponentBase object.
bool isConnected_ready_OutputPort(FwIndexType portNum)
Throttle reset count for WriteError.
void log_WARNING_HI_NoBuffers_ThrottleClear()
Reset throttle value for NoBuffers.
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to recv[portNum].
void tlmWrite_BytesSent(FwSizeType arg, Fw::Time _tlmTime=Fw::Time()) const
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size)
Invoke output port allocate.
void log_WARNING_HI_ReadError_ThrottleClear()
Reset throttle value for ReadError.
void log_WARNING_HI_ConfigError(const Fw::StringBase &device, I32 error) const
FwIndexType getNum_run_InputPorts() const