![]() |
Doxygen Documentation |
|||||
Package: |
CCSDS |
|||||
Version: |
V3-2-1 |
Marked: |
(not marked) |
|||
Constituent: |
ccsds_unit_test |
Tag: |
sun-gcc |
#include "CCSDS/CCSDS_msg.h"
Include dependency graph for CCSDS_pri.h:
This graph shows which files directly or indirectly include this file:
Functions | |
unsigned int | CCSDS_priHdrSizeof (void) |
Get the size of a CCSDS packet primary header. | |
unsigned int | CCSDS_priHdrVerify (const void *pkt) |
Verify the prescience of a valid CCSDS packet primary header. | |
unsigned int | CCSDS_priHdrGetLength (const void *pkt, unsigned short *length) |
Get the packet length value in a CCSDS packet primary header. | |
unsigned int | CCSDS_priHdrGetType (const void *pkt, unsigned short *type) |
Get the packet type value in a CCSDS packet header. | |
unsigned int | CCSDS_priHdrGetApid (const void *pkt, unsigned short *apid) |
Get the application ID value in a CCSDS packet primary header. | |
unsigned int | CCSDS_priHdrGetSeqCount (const void *pkt, unsigned short *seqCount) |
Get the packet sequence count value in a CCSDS packet primary header. | |
unsigned int | CCSDS_priHdrGetSeqFlags (const void *pkt, unsigned short *seqFlags) |
Get the packet grouping value in a CCSDS packet primary header. |
The specifications for the CCSDS Packet header formats may be found in the following documents:
Telecommand - CCSDS Telecommand Part 3 (203.0-B-1 Blue Book)
Telemetry - CCSDS Packet Telemetry (102.0-B-5 Blue Book)
The functions in this library are generic, and do not suppose any peculiar fomatting for the secondary header. Thus, they may be used to examine SC or GBM packets in mixed telemetry streams. No support is given for creating packet headers, or for examining secondary header contents. The CCSDS_priGetLength() only accounts for the size of the primary header, so the size of the secondary header is included in the returned length value.