35 std::ostream& operator<<(std::ostream& os,
const Apid& obj) {
60 static_cast<SerialType>(this->
e)
71 this->
e =
static_cast<T>(es);
79 #if FW_SERIALIZABLE_TO_STRING 87 s =
"FW_PACKET_COMMAND";
90 s =
"FW_PACKET_TELEM";
99 s =
"FW_PACKET_PACKETIZED_TLM";
105 s =
"FW_PACKET_IDLE";
108 s =
"FW_PACKET_HAND";
111 s =
"FW_PACKET_UNKNOWN";
114 s =
"SPP_IDLE_PACKET";
117 s =
"INVALID_UNINITIALIZED";
126 #elif FW_ENABLE_TEXT_LOGGING Serialization/Deserialization operation was successful.
Packetized telemetry packet type.
const char * toChar() const
Deserialization data had incorrect values (unexpected data types)
SerializeStatus
forward declaration for string
Telemetry packet type - outgoing.
U16 SerialType
The serial representation type.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Apid & operator=(const Apid &obj)
Copy assignment operator (object)
Data Product packet type.
Anything equal or higher value is invalid and should not be used.
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
bool isValid() const
Check raw enum value for validity.
SerializeStatus serializeFrom(U8 val)
serialize 8-bit unsigned int
Per Space Packet Standard, all 1s (11bits) is reserved for Idle Packets.
File type - incoming and outgoing.
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
SerializeStatus deserializeTo(U8 &val)
deserialize 8-bit unsigned int
Command packet type - incoming.