GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRB / V1-3-0
Constituent: grb_doc     Tag: linux-gcc
#include "PBI/Endianness.h"
#include "PBS/BSWP.ih"
#include "GRB/GRB_msgdef.h"
Include dependency graph for GRB_pktdef.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _GRB_pktHdr |
The packet header. More... | |
Typedefs | |
typedef enum _GRB_PKT_OPEN_REASON | GRB_PKT_OPEN_REASON |
Typedef for enum _GRB_PKT_OPEN_REASON. | |
typedef enum _GRB_PKT_OPEN_REASON | GRB_pktOpenReason |
Typedef for enum _GRB_PKT_OPEN_REASON. | |
typedef enum _GRB_PKT_CLOSE_REASON | GRB_PKT_CLOSE_REASON |
Typedef for enum _GRB_PKT_CLOSE_REASON. | |
typedef enum _GRB_PKT_CLOSE_REASON | GRB_pktCloseReason |
Typedef for enum _GRB_PKT_CLOSE_REASON. | |
typedef _GRB_pktHdr | GRB_pktHdr |
Typedef for struct _GRB_pktHdr. | |
Enumerations | |
enum | _GRB_PKT_OPEN_REASON { GRB_PKT_OPEN_REASON_START = 0x0, GRB_PKT_OPEN_REASON_TIME = 0x1, GRB_PKT_OPEN_REASON_COUNT = 0x2, GRB_PKT_OPEN_REASON_FULL = 0x3 } |
These are the open reasons for a GRB_pkt. More... | |
enum | _GRB_PKT_CLOSE_REASON { GRB_PKT_CLOSE_REASON_STOP = 0x0, GRB_PKT_CLOSE_REASON_TIME = 0x1, GRB_PKT_CLOSE_REASON_COUNT = 0x2, GRB_PKT_CLOSE_REASON_FULL = 0x3 } |
These are the close reasons for a GRB_pkt. More... | |
Functions | |
static __inline void | GRB__pktConstruct (GRB_pktHdr *hdr, unsigned char src, GRB_pktOpenReason reason, unsigned int seq) |
Constructs a packet header. | |
static __inline void | GRB__pktConstructNext (GRB_pktHdr *hdr, GRB_pktOpenReason reason) |
Constructs the next packet header. This is just a short-hand routine that can be used when constructing subsequent packets. It presumes that GRBP__pktConstruct has already been called, thus establishing the source and sequence values. This routine retains the source field and increments the sequence field. | |
static __inline int | GRB__pktMsgDeclare (GRB_pktHdr *hdr, unsigned int len32) |
Declares that a new message of length len32 has been added to packet. | |
static __inline void | GRB__pktClose (GRB_pktHdr *hdr, GRB_pktCloseReason reason) |
Declares that a packet is closed. | |
static __inline void | GRB__pktHdrSwap (GRB_pktHdr *dst, const GRB_pktHdr *hdr) |
Ensures the packet header is in big-endian style. | |
static __inline unsigned int | GRB__pktLength (const GRB_pktHdr *hdr) |
Accessor function to return the length in 32-bit words. | |
static __inline unsigned int | GRB__pktSequence (const GRB_pktHdr *hdr) |
Accessor function to return the packet's sequence number. This is primarily used as an integrity check, ensuring that all packets from a given source ID have been seen. | |
static __inline unsigned short int | GRB__pktMsgCount (const GRB_pktHdr *hdr) |
Accessor function to return the number of messages in the packet. | |
static __inline unsigned char | GRB__pktSource (const GRB_pktHdr *hdr) |
Accessor function to return the source CPU identifier. | |
static __inline GRB_pktOpenReason | GRB__pktOpenReason (const GRB_pktHdr *hdr) |
Accessor function to return the packet's open reason. | |
static __inline GRB_pktCloseReason | GRB__pktCloseReason (const GRB_pktHdr *hdr) |
Accessor function to return the packet's close reason. | |
static __inline GRB_msgHdr * | GRB__pktFirstMsg (const GRB_pktHdr *hdr) |
Accessor function to return the packet's first message. | |
static __inline GRB_pktHdr * | GRB__pktNext (const GRB_pktHdr *hdr) |
Returns a pointer to the next packet. | |
static __inline GRB_pktHdr * | GRB__pktAdvance (const GRB_pktHdr *hdr, unsigned int len32) |
Advances the packet header pointer by the specified number of 32-bit words. This is function can be used instead of GRB__pktNext when the length of the packet has already been extracted or when advancing by more than 1 packet. It is assumed the len32 came from adding one or more packet lengths. If not, there is no guarantee that what is returned has anything to do with a packet header. |
CVS $Id: GRB_pktdef.h,v 1.5 2007/06/17 18:12:47 russell Exp $
|
Typedef for struct _GRB_pktHdr.
|
|
|
These are the open reasons for a GRB_pkt.
|
|
Advances the packet header pointer by the specified number of 32-bit words. This is function can be used instead of GRB__pktNext when the length of the packet has already been extracted or when advancing by more than 1 packet. It is assumed the len32 came from adding one or more packet lengths. If not, there is no guarantee that what is returned has anything to do with a packet header.
|
|
Declares that a packet is closed.
|
|
Accessor function to return the packet's close reason.
|
|
Constructs a packet header.
|
|
Constructs the next packet header. This is just a short-hand routine that can be used when constructing subsequent packets. It presumes that GRBP__pktConstruct has already been called, thus establishing the source and sequence values. This routine retains the source field and increments the sequence field.
|
|
Accessor function to return the packet's first message.
|
|
Ensures the packet header is in big-endian style.
|
|
Accessor function to return the length in 32-bit words.
|
|
Accessor function to return the number of messages in the packet.
|
|
Declares that a new message of length len32 has been added to packet.
|
|
Returns a pointer to the next packet.
|
|
Accessor function to return the packet's open reason.
|
|
Accessor function to return the packet's sequence number. This is primarily used as an integrity check, ensuring that all packets from a given source ID have been seen.
|
|
Accessor function to return the source CPU identifier.
|