11 #if FW_ENABLE_TEXT_LOGGING
27 BYTE TextQueueIntIfSize[
34 class ComponentIpcSerializableBuffer :
49 return sizeof(m_buff);
56 const U8* getBuffAddr()
const {
62 U8 m_buff[SERIALIZATION_SIZE];
86 this->m_TextLogger_InputPort[port].
init();
91 this->m_TextLogger_InputPort[port].
setPortNum(port);
93 #if FW_OBJECT_NAMES == 1
108 this->m_TextLogger_InputPort[port].setObjName(portName);
114 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
134 return &this->m_TextLogger_InputPort[portNum];
143 Fw::ActiveComponentBase(compName)
202 ComponentIpcSerializableBuffer msg;
206 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(INT_IF_TEXTQUEUE));
219 _status = msg.serialize(text);
247 ComponentIpcSerializableBuffer msg;
270 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
272 if (msgType == ACTIVETEXTLOGGER_COMPONENT_EXIT) {
277 deserStatus = msg.deserialize(portNum);
285 case INT_IF_TEXTQUEUE: {
298 msg.getBuffLeft() == 0,
321 void ActiveTextLoggerComponentBase ::
333 compPtr->TextLogger_handlerBase(
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
PlatformUIntType NATIVE_UINT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
#define FW_OBJ_NAME_MAX_SIZE
Size of object name (if object names enabled). AC Limits to 80, truncation occurs above 80.
@ ACTIVE_COMPONENT_EXIT
message to exit active component task
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void init()
Initialization function.
@ SERIALIZED_SIZE
Serialized size is size of buffer + size field.
Enum representing event severity.
void init()
Object initializer.
Os::Queue::QueueStatus createQueue(NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize)
Os::Queue m_queue
queue object for active component
void incNumMsgDropped()
increment the number of messages dropped
@ MSG_DISPATCH_OK
Dispatch was normal.
@ MSG_DISPATCH_EXIT
A message was sent requesting an exit of the loop.
@ MSG_DISPATCH_ERROR
Errors dispatching messages.
virtual SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialization function
@ QUEUE_OK
message sent/received okay
@ QUEUE_FULL
queue was full when attempting to send a message
QueueStatus send(const Fw::SerializeBufferBase &buffer, NATIVE_INT_TYPE priority, QueueBlocking block)
send a message
QueueStatus receive(Fw::SerializeBufferBase &buffer, NATIVE_INT_TYPE &priority, QueueBlocking block)
receive a message
@ QUEUE_BLOCKING
Queue receive blocks until a message arrives.
@ QUEUE_NONBLOCKING
Queue receive always returns even if there is no message.
ActiveTextLoggerComponentBase(const char *compName="")
Construct ActiveTextLoggerComponentBase object.
void TextLogger_handlerBase(NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)
Handler base-class function for input port TextLogger.
Fw::InputLogTextPort * get_TextLogger_InputPort(NATIVE_INT_TYPE portNum)
void TextQueue_internalInterfaceInvoke(const Fw::InternalInterfaceString &text)
Internal interface base-class function for TextQueue.
NATIVE_INT_TYPE getNum_TextLogger_InputPorts() const
virtual ~ActiveTextLoggerComponentBase()
Destroy ActiveTextLoggerComponentBase object.
virtual void TextLogger_handler(NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)=0
Handler for input port TextLogger.
virtual void TextQueue_internalInterfaceHandler(const Fw::InternalInterfaceString &text)=0
Internal interface handler for TextQueue.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.