7 #ifndef Drv_LinuxUartDriverComponentAc_HPP
8 #define Drv_LinuxUartDriverComponentAc_HPP
19 #if FW_ENABLE_TEXT_LOGGING == 1
131 #if FW_ENABLE_TEXT_LOGGING == 1
134 void set_LogText_OutputPort(
183 #if FW_PORT_SERIALIZATION
194 Fw::InputSerializePort* port
197 #if FW_ENABLE_TEXT_LOGGING == 1
200 void set_LogText_OutputPort(
202 Fw::InputSerializePort* port
210 Fw::InputSerializePort* port
216 Fw::InputSerializePort* port
221 #if FW_PORT_SERIALIZATION
232 Fw::InputSerializePort* port
238 Fw::InputSerializePort* port
244 Fw::InputSerializePort* port
257 const char* compName =
""
285 #if FW_ENABLE_TEXT_LOGGING == 1
343 #if FW_ENABLE_TEXT_LOGGING == 1
348 bool isConnected_LogText_OutputPort(
614 #if FW_ENABLE_TEXT_LOGGING == 1
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
Auto-generated base for LinuxUartDriver component.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
void log_WARNING_HI_WriteError_ThrottleClear()
Reset throttle value for WriteError.
@ EVENTID_WRITEERROR_THROTTLE
Throttle reset count for WriteError.
@ EVENTID_READERROR_THROTTLE
Throttle reset count for ReadError.
@ EVENTID_NOBUFFERS_THROTTLE
Throttle reset count for NoBuffers.
@ EVENTID_CONFIGERROR
UART config error.
@ EVENTID_WRITEERROR
UART write error.
@ EVENTID_BUFFERTOOSMALL
UART ran out of buffers.
@ EVENTID_OPENERROR
UART open error.
@ EVENTID_PORTOPENED
UART port opened event.
@ EVENTID_NOBUFFERS
UART ran out of buffers.
@ EVENTID_READERROR
UART read error.
LinuxUartDriverComponentBase(const char *compName="")
Construct LinuxUartDriverComponentBase object.
void log_WARNING_HI_OpenError(const Fw::StringBase &device, I32 error, const Fw::StringBase &name)
bool isConnected_Time_OutputPort(FwIndexType portNum)
FwIndexType getNum_allocate_OutputPorts() const
void log_WARNING_HI_BufferTooSmall(const Fw::StringBase &device, U32 size, U32 needed)
FwIndexType getNum_Tlm_OutputPorts() const
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
FwIndexType getNum_send_InputPorts() const
void log_WARNING_HI_NoBuffers_ThrottleClear()
Reset throttle value for NoBuffers.
@ NUM_DEALLOCATE_OUTPUT_PORTS
@ NUM_ALLOCATE_OUTPUT_PORTS
bool isConnected_Tlm_OutputPort(FwIndexType portNum)
void ready_out(FwIndexType portNum)
Invoke output port ready.
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
void tlmWrite_BytesSent(U32 arg, Fw::Time _tlmTime=Fw::Time())
Drv::SendStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void log_WARNING_HI_ReadError_ThrottleClear()
Reset throttle value for ReadError.
void log_WARNING_HI_WriteError(const Fw::StringBase &device, I32 error)
void recv_out(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke output port recv.
bool isConnected_Log_OutputPort(FwIndexType portNum)
void log_WARNING_HI_ConfigError(const Fw::StringBase &device, I32 error)
void tlmWrite_BytesRecv(U32 arg, Fw::Time _tlmTime=Fw::Time())
void log_WARNING_HI_NoBuffers(const Fw::StringBase &device)
void log_ACTIVITY_HI_PortOpened(const Fw::StringBase &device)
friend class LinuxUartDriverComponentBaseFriend
Friend class for white-box testing.
@ CHANNELID_BYTESRECV
Channel ID for BytesRecv.
@ CHANNELID_BYTESSENT
Channel ID for BytesSent.
FwIndexType getNum_Time_OutputPorts() const
bool isConnected_recv_OutputPort(FwIndexType portNum)
FwIndexType getNum_ready_OutputPorts() const
bool isConnected_allocate_OutputPort(FwIndexType portNum)
bool isConnected_ready_OutputPort(FwIndexType portNum)
virtual Drv::SendStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
FwIndexType getNum_deallocate_OutputPorts() const
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
FwIndexType getNum_recv_OutputPorts() const
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamRecvPort *port)
Connect port to recv[portNum].
virtual ~LinuxUartDriverComponentBase()
Destroy LinuxUartDriverComponentBase object.
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
virtual void lock()
Lock the guarded mutex.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
virtual void unLock()
Unlock the guarded mutex.
@ NUM_LOGTEXT_OUTPUT_PORTS
FwIndexType getNum_Log_OutputPorts() const
void log_WARNING_HI_ReadError(const Fw::StringBase &device, I32 error)
Status associated with the received data.
Status returned by the send call.
void init()
Object initializer.