GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSD / V0-3-0
Constituent: qsd_print     Tag: sun-gcc
#include "PBI/Endianness.h"
#include <netinet/in.h>
Include dependency graph for CCSDS_header.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _CCSDS_headerPid_bf |
The primary header's packet identifier word as bit fields. More... | |
union | _CCSDS_headerPid |
Union of the primary header's packet identifier word representation as a bit field and a uninterpretted 16-bit integer. More... | |
struct | _CCSDS_headerSeq_bf |
The CCSDS primary header sequence control word as bit fields. More... | |
union | _CCSDS_headerSeq |
Union of the primary header's sequence control word representation as a bit field and a uninterpretted 16-bit integer. More... | |
struct | _CCSDS_header |
Standard 6-byte CCSDS header. More... | |
Typedefs | |
typedef enum _CCSDS_HEADER_VERSION_K | CCSDS_HEADER_VERSION_K |
Typedef for _CCSDS_HEADER_VERSION_K. | |
typedef enum _CCSDS_HEADER_TYPE_K | CCSDS_HEADER_TYPE_K |
Typedef for _CCSDS_HEADER_TYPE_K. | |
typedef _CCSDS_headerPid_bf | CCSDS_headerPid_bf |
Typedef for struct _CCSDS_headerPid_bf. | |
typedef _CCSDS_headerPid | CCSDS_headerPid |
Typedef for union _CCSDS_headerPid. | |
typedef enum _CCSDS_SEQUENCE_FLAGS_M | CCSDS_SEQUENCE_FLAGS_M |
Typedef for enum _CCSDS_SEQUENCE_FLAGS_M. | |
typedef enum _CCSDS_SEQUENCE_FLAGS_K | CCSDS_SEQUENCE_FLAGS_K |
Typedef for CCSDS_SEQUENCE_FLAGS_K. | |
typedef _CCSDS_headerSeq_bf | CCSDS_headerSeq_bf |
Typedef for struct _CCSDS_headerSeq_bf. | |
typedef _CCSDS_headerSeq | CCSDS_headerSeq |
Typedef for union _CCSDS_headerSeq. | |
typedef _CCSDS_header | CCSDS_header |
Typedef for struct _CCSDS_header. | |
typedef enum _CCSDS_VERIFY_ERR_V | CCSDS_VERIFY_ERR_V |
Typedef for _CCSDS_VERIFY_ERR_V. | |
typedef enum _CCSDS_VERIFY_ERR_M | CCSDS_VERIFY_ERR_M |
Typedef for _CCSDS_VERIFY_ERR_M. | |
Enumerations | |
enum | _CCSDS_HEADER_VERSION_K { CCSDS_HEADER_VERSION_K_1 = 0x0 } |
Enumeration of the current version. More... | |
enum | _CCSDS_HEADER_TYPE_K { CCSDS_HEADER_TYPE_K_TELEMETRY = 0, CCSDS_HEADER_TYPE_K_COMMAND = 1 } |
Enumeration of the packet types (telemetry and command). More... | |
enum | _CCSDS_SEQUENCE_FLAGS_M { CCSDS_SEQUENCE_FLAGS_M_FIRST = 1 << 0, CCSDS_SEQUENCE_FLAGS_M_LAST = 1 << 1 } |
The CCSDS sequence flags. This is really a 2 bit a value with bit 0 indicating whether this is the first CCSDS packet and bit 1 indicating whether this is the last CCSDS packet. More... | |
enum | _CCSDS_SEQUENCE_FLAGS_K { CCSDS_SEQUENCE_FLAGS_K_MIDDLE = 0, CCSDS_SEQUENCE_FLAGS_K_FIRST = CCSDS_SEQUENCE_FLAGS_M_FIRST, CCSDS_SEQUENCE_FLAGS_K_LAST = CCSDS_SEQUENCE_FLAGS_M_LAST, CCSDS_SEQUENCE_FLAGS_K_ONLY } |
Enumerates the state value represented by the sequence flags. More... | |
enum | _CCSDS_VERIFY_ERR_V { CCSDS_VERIFY_ERR_V_VERSION = 0, CCSDS_VERIFY_ERR_V_TYPE = 1, CCSDS_VERIFY_ERR_V_SECONDARY = 2, CCSDS_VERIFY_ERR_V_FUNCTION = 3 } |
Enumeration of the verification error bits as right justified bit offsets. More... | |
enum | _CCSDS_VERIFY_ERR_M { CCSDS_VERIFY_ERR_M_VERSION = (1 << CCSDS_VERIFY_ERR_V_VERSION), CCSDS_VERIFY_ERR_M_TYPE = (1 << CCSDS_VERIFY_ERR_V_TYPE), CCSDS_VERIFY_ERR_M_SECONDARY = (1 << CCSDS_VERIFY_ERR_V_SECONDARY), CCSDS_VERIFY_ERR_M_FUNCTION = (1 << CCSDS_VERIFY_ERR_V_FUNCTION) } |
Enumeration of the verification error bits as in place masks. More... | |
Functions | |
static __inline unsigned | CCSDS__headerVersionIsWrong (const CCSDS_header *header) |
Checks if the CCSDS header format version matches the expectation. | |
static __inline unsigned | CCSDS__headerApid (const CCSDS_header *header) |
Returns the application identifier. | |
static __inline unsigned | CCSDS__headerSecondaryFlag (const CCSDS_header *header) |
Returns the value of the secondary header present flag. | |
static __inline unsigned | CCSDS__headerType (const CCSDS_header *header) |
Returns the type of the packet. | |
static __inline unsigned | CCSDS__headerVersion (const CCSDS_header *header) |
Returns the CCSDS header format version. | |
static __inline unsigned | CCSDS__headerSequenceNumber (const CCSDS_header *header) |
Returns the packet sequence number. | |
static __inline unsigned | CCSDS__headerSequenceFlags (const CCSDS_header *header) |
Returns the packet sequence flagnumber. | |
static __inline unsigned | CCSDS__headerLength_m1 (const CCSDS_header *header) |
Returns the value of length_m1 field, in bytes. | |
static __inline const void | ccsds_bswp1_16 (void *buf, int nshorts) |
On little-endian machines, swaps the buffer to big-endian format. On big-endian machines, this is a NOOP. | |
static __inline const void | ccsds_bswp2_16 (void *dst, const void *src, int nshorts) |
On little-endian machines, swaps the buffer to big-endian format. On big-endian machines, this is a copy. |
CVS $Id: CCSDS_header.h,v 1.3 2008/04/04 21:22:35 russell Exp $
|
Typedef for _CCSDS_HEADER_VERSION_K.
|
|
Typedef for CCSDS_SEQUENCE_FLAGS_K.
|
|
Typedef for _CCSDS_VERIFY_ERR_M.
|
|
Typedef for _CCSDS_VERIFY_ERR_V.
|
|
Enumeration of the packet types (telemetry and command).
|
|
Enumeration of the current version.
|
|
|
The CCSDS sequence flags. This is really a 2 bit a value with bit 0 indicating whether this is the first CCSDS packet and bit 1 indicating whether this is the last CCSDS packet.
|
|
Enumeration of the verification error bits as in place masks.
|
|
Enumeration of the verification error bits as right justified bit offsets.
|
|
Returns the application identifier.
|
|
Returns the value of length_m1 field, in bytes.
|
|
Returns the value of the secondary header present flag.
|
|
Returns the packet sequence flagnumber.
|
|
Returns the packet sequence number.
|
|
Returns the type of the packet.
|
|
Returns the CCSDS header format version.
|
|
Checks if the CCSDS header format version matches the expectation.
|
|
On little-endian machines, swaps the buffer to big-endian format. On big-endian machines, this is a NOOP.
|
|
On little-endian machines, swaps the buffer to big-endian format. On big-endian machines, this is a copy.
|