7 #ifndef Drv_LinuxUartDriverComponentAc_HPP 8 #define Drv_LinuxUartDriverComponentAc_HPP 20 #if FW_ENABLE_TEXT_LOGGING == 1 143 #if FW_ENABLE_TEXT_LOGGING == 1 146 void set_LogText_OutputPort(
201 #if FW_PORT_SERIALIZATION 212 Fw::InputSerializePort* port
215 #if FW_ENABLE_TEXT_LOGGING == 1 218 void set_LogText_OutputPort(
220 Fw::InputSerializePort* port
228 Fw::InputSerializePort* port
234 Fw::InputSerializePort* port
239 #if FW_PORT_SERIALIZATION 250 Fw::InputSerializePort* port
256 Fw::InputSerializePort* port
262 Fw::InputSerializePort* port
268 Fw::InputSerializePort* port
281 const char* compName =
"" 314 #if FW_ENABLE_TEXT_LOGGING == 1 377 #if FW_ENABLE_TEXT_LOGGING == 1 382 bool isConnected_LogText_OutputPort(
650 static void m_p_recvReturnIn_in(
657 static void m_p_send_in(
684 #if FW_ENABLE_TEXT_LOGGING == 1 725 std::atomic<FwIndexType> m_WriteErrorThrottle;
728 std::atomic<FwIndexType> m_ReadErrorThrottle;
731 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 sendReturnOut_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status)
Invoke output port sendReturnOut.
void recvReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port recvReturnIn.
bool isConnected_allocate_OutputPort(FwIndexType portNum)
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
bool isConnected_sendReturnOut_OutputPort(FwIndexType portNum)
Throttle reset count for ReadError.
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.
Channel ID for BytesRecv.
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
FwIndexType getNum_send_InputPorts() const
LinuxUartDriverComponentBase(const char *compName="")
Construct LinuxUartDriverComponentBase object.
Auto-generated base for LinuxUartDriver component.
Throttle reset count for WriteError.
void log_WARNING_HI_WriteError(const Fw::StringBase &device, I32 error)
void set_sendReturnOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to sendReturnOut[portNum].
virtual void send_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port send.
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 tlmWrite_BytesRecv(U32 arg, Fw::Time _tlmTime=Fw::Time()) 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.
Channel ID for BytesSent.
void log_WARNING_HI_OpenError(const Fw::StringBase &device, I32 error, const Fw::StringBase &name) const
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
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)
void tlmWrite_BytesSent(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
bool isConnected_recv_OutputPort(FwIndexType portNum)
FwIndexType getNum_sendReturnOut_OutputPorts() const
FwIndexType getNum_Tlm_OutputPorts() const
FwIndexType getNum_allocate_OutputPorts() const
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
PlatformIndexType FwIndexType
Fw::InputBufferSendPort * get_send_InputPort(FwIndexType portNum)
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)
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].
Throttle reset count for NoBuffers.
void log_WARNING_HI_ReadError_ThrottleClear()
Reset throttle value for ReadError.
void send_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port send.
void log_WARNING_HI_ConfigError(const Fw::StringBase &device, I32 error) const