![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF. More...
#include <default/config/ApidEnumAc.hpp>
Public Types | |
enum | T { FW_PACKET_COMMAND = 0, FW_PACKET_TELEM = 1, FW_PACKET_LOG = 2, FW_PACKET_FILE = 3, FW_PACKET_PACKETIZED_TLM = 4, FW_PACKET_DP = 5, FW_PACKET_IDLE = 6, FW_PACKET_HAND = 254, FW_PACKET_UNKNOWN = 255, SPP_IDLE_PACKET = 2047, INVALID_UNINITIALIZED = 2048 } |
The raw enum type. More... | |
enum | { SERIALIZED_SIZE = sizeof(SerialType), NUM_CONSTANTS = 11 } |
typedef U16 | SerialType |
The serial representation type. More... | |
typedef T | t |
For backwards compatibility. More... | |
![]() | |
using | SizeType = FwSizeType |
Public Member Functions | |
Apid () | |
Constructor (default value of INVALID_UNINITIALIZED) More... | |
Apid (const T e1) | |
Constructor (user-provided value) More... | |
Apid (const Apid &obj) | |
Copy constructor. More... | |
Apid & | operator= (const Apid &obj) |
Copy assignment operator (object) More... | |
Apid & | operator= (T e1) |
Copy assignment operator (raw enum) More... | |
operator T () const | |
Conversion operator. More... | |
bool | operator== (T e1) const |
Equality operator. More... | |
bool | operator!= (T e1) const |
Inequality operator. More... | |
bool | isValid () const |
Check raw enum value for validity. More... | |
Fw::SerializeStatus | serializeTo (Fw::SerializeBufferBase &buffer) const |
Serialize raw enum value to SerialType. More... | |
Fw::SerializeStatus | deserializeFrom (Fw::SerializeBufferBase &buffer) |
Deserialize raw enum value from SerialType. More... | |
![]() | |
DEPRECATED (SerializeStatus serialize(SerializeBufferBase &buffer) const, "Use serializeTo(SerializeBufferBase& buffer) instead") | |
DEPRECATED (SerializeStatus deserialize(SerializeBufferBase &buffer), "Use deserializeFrom(SerializeBufferBase& buffer) instead") | |
Public Attributes | |
T | e |
The raw enum value. More... | |
Additional Inherited Members | |
![]() | |
Serializable () | |
Default constructor. More... | |
virtual | ~Serializable () |
destructor More... | |
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
Definition at line 17 of file ApidEnumAc.hpp.
typedef U16 ComCfg::Apid::SerialType |
The serial representation type.
Definition at line 28 of file ApidEnumAc.hpp.
typedef T ComCfg::Apid::t |
For backwards compatibility.
Definition at line 57 of file ApidEnumAc.hpp.
anonymous enum |
Enumerator | |
---|---|
SERIALIZED_SIZE | The size of the serial representation. |
NUM_CONSTANTS | The number of enumerated constants. |
Definition at line 65 of file ApidEnumAc.hpp.
enum ComCfg::Apid::T |
The raw enum type.
Definition at line 31 of file ApidEnumAc.hpp.
|
inline |
Constructor (default value of INVALID_UNINITIALIZED)
Definition at line 79 of file ApidEnumAc.hpp.
|
inline |
Constructor (user-provided value)
e1 | The raw enum value |
Definition at line 85 of file ApidEnumAc.hpp.
|
inline |
|
virtual |
Deserialize raw enum value from SerialType.
buffer | The serial buffer |
Implements Fw::Serializable.
Definition at line 66 of file ApidEnumAc.cpp.
bool ComCfg::Apid::isValid | ( | ) | const |
Check raw enum value for validity.
Definition at line 49 of file ApidEnumAc.cpp.
|
inline |
Conversion operator.
Definition at line 117 of file ApidEnumAc.hpp.
|
inline |
Inequality operator.
Definition at line 129 of file ApidEnumAc.hpp.
Copy assignment operator (object)
obj | The source object |
Definition at line 20 of file ApidEnumAc.cpp.
Copy assignment operator (raw enum)
e1 | The enum value |
Definition at line 27 of file ApidEnumAc.cpp.
|
inline |
Equality operator.
Definition at line 123 of file ApidEnumAc.hpp.
|
virtual |
Serialize raw enum value to SerialType.
buffer | The serial buffer |
Implements Fw::Serializable.
Definition at line 57 of file ApidEnumAc.cpp.
T ComCfg::Apid::e |
The raw enum value.
Definition at line 179 of file ApidEnumAc.hpp.