38 status =
serialize.serializeFrom(static_cast<U32>(type));
40 status =
serialize.serializeFrom(static_cast<U32>(port));
42 status =
serialize.serializeFrom(data, static_cast<FwBuffSizeType>(size));
69 serializer.resetSer();
73 status = serializer.serializeFrom(context);
80 void GenericHub ::cmdRespIn_handler(
FwIndexType portNum,
87 serializer.resetSer();
89 status = serializer.serializeFrom(opCode);
91 status = serializer.serializeFrom(cmdSeq);
93 status = serializer.serializeFrom(response);
113 status = incoming.deserializeTo(type_in);
121 type =
static_cast<HubType>(type_in);
122 status = incoming.deserializeTo(port);
126 status = incoming.deserializeTo(size);
137 status = wrapper.setBuffLen(rawSize);
166 status = incoming.deserializeTo(timeTag);
169 status = incoming.deserializeTo(severity);
172 status = incoming.deserializeTo(args);
178 this->
eventOut_out(static_cast<FwIndexType>(port),
id, timeTag, severity, args);
190 status = incoming.deserializeTo(timeTag);
193 status = incoming.deserializeTo(val);
198 this->
tlmOut_out(static_cast<FwIndexType>(port),
id, timeTag, val);
214 status = wrapper.setBuffLen(rawSize -
sizeof(U32));
217 status = incoming.deserializeSkip(rawSize -
sizeof(U32));
219 status = incoming.deserializeTo(context);
223 this->
cmdDispOut_out(static_cast<FwIndexType>(port), wrapper, context);
234 status = incoming.deserializeTo(opCode);
236 status = incoming.deserializeTo(cmdSeq);
239 status = incoming.deserializeTo(response);
244 this->
cmdRespOut_out(static_cast<FwIndexType>(port), opCode, cmdSeq, response);
260 void GenericHub::eventIn_handler(
const FwIndexType portNum,
269 serializer.resetSer();
270 status = serializer.serializeFrom(
id);
272 status = serializer.serializeFrom(timeTag);
274 status = serializer.serializeFrom(severity);
276 status = serializer.serializeFrom(args);
279 this->send_data(HubType::HUB_TYPE_EVENT, portNum, buffer, size);
286 serializer.resetSer();
287 status = serializer.serializeFrom(
id);
289 status = serializer.serializeFrom(timeTag);
291 status = serializer.serializeFrom(val);
294 this->send_data(HubType::HUB_TYPE_CHANNEL, portNum, buffer, size);
301 void GenericHub::serialIn_handler(
FwIndexType portNum,
Serialization/Deserialization operation was successful.
FwIdType FwOpcodeType
The type of a command opcode.
void set(U8 *data, FwSizeType size, U32 context=NO_CONTEXT)
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
bool isConnected_cmdDispOut_OutputPort(FwIndexType portNum) const
PlatformSizeType FwSizeType
void setSize(FwSizeType size)
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port allocate.
static constexpr FwIndexType getNum_cmdDispOut_OutputPorts()
Serializable::SizeType getSize() const override
Get current buffer size.
static constexpr FwIndexType getNum_eventOut_OutputPorts()
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
Fw::SerializeStatus serialize(Fw::SerialBufferBase &serializer, FwSizeType size)
Serialize an idle packet of exactly size bytes (header and idle data) into serializer ...
bool isConnected_bufferOut_OutputPort(FwIndexType portNum) const
FwSizeStoreType FwBuffSizeType
static constexpr FwIndexType getNum_serialOut_OutputPorts()
Enum representing a command response.
static constexpr FwIndexType getNum_bufferOut_OutputPorts()
Auto-generated base for GenericHub component.
SerializeStatus
forward declaration for string
ExternalSerializeBufferWithMemberCopy getDeserializer()
FwIdType FwEventIdType
The type of an event identifier.
Buffer type transmission.
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
Omit length from serialization.
static constexpr FwIndexType getNum_cmdRespOut_OutputPorts()
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port deallocate.
bool isConnected_cmdRespOut_OutputPort(FwIndexType portNum) const
void bufferOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferOut.
Data was left in the buffer, but not enough to deserialize.
External serialize buffer with no copy semantics.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
FwSizeType FwSizeStoreType
void bufferInReturn_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferInReturn.
Enum representing event severity.
The size of the serial representation.
void cmdRespOut_out(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke output port cmdRespOut.
uint8_t U8
8-bit unsigned integer
void eventOut_out(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke output port eventOut.
Fw::SerializeStatus serialOut_out(FwIndexType portNum, Fw::LinearBufferBase &buffer)
Invoke output port serialOut.
FwSizeType getSize() const
bool isConnected_serialOut_OutputPort(FwIndexType portNum) const
void tlmOut_out(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke output port tlmOut.
PlatformIndexType FwIndexType
bool isConnected_eventOut_OutputPort(FwIndexType portNum) const
RateGroupDivider component implementation.
The size of the serial representation.
GenericHub(const char *const compName)
void toBufferDriver_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port toBufferDriver.
void cmdDispOut_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context) const
Invoke output port cmdDispOut.
ExternalSerializeBufferWithMemberCopy getSerializer()
#define FW_PORT_SERIALIZATION
calls for multi-note systems)
void fromBufferDriverReturn_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port fromBufferDriverReturn.