GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSE / V1-3-6
Constituent: lsew_stream     Tag: sun-gcc
#include "LSE/CCSDS_ostream.h"
#include "CCSDS/CCSDS_pkt.h"
#include "EDS/io/EBF_swap.h"
#include "dprintf.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for CCSDS_ostream.c:
Data Structures | |
struct | _CCSDS_ostream |
The Post Control Block. More... | |
Defines | |
#define | RND_TO(_x, _r) ((((_x) + (_r) -1) / (_r)) * (_r)) |
Rounds the specified number, _x up to the nearest multiple of _r. | |
#define | MAX_WRITE (4096 - 32) |
The maximum size, in bytes, of an LCB packet. | |
Typedefs | |
typedef _CCSDS_ostream | CCSDS_ostream |
Typedef for struct _CCSDS_stream. | |
Functions | |
static __inline void | setUnused (unsigned char *cur, int offset, unsigned short int unused_bytes) |
Sets the last short integer before the start of the data proper to the number of unused bytes written to the output packet. | |
static void | post (void *buf, int nbytes, int nhdr, int nunused, CCSDS_ostreamPoster postRtn, void *postPrm) |
Posts the specified buffer using the specified posting routine and parameter. The CCSDS header and data are appropriately byte-swapped to big-endian style if necessary. | |
int | CCSDS_ostreamDestroy (CCSDS_ostream *ostream) |
Frees any resources associated with the specified stream. | |
CCSDS_ostream * | CCSDS_ostreamNew (void) |
Allocates enough memory for, but does not initialize an CCSDS_ostream structure. | |
int | CCSDS_ostreamSizeof (void) |
Returns the size, in bytes, of the CCSDS output stream control structure CCSDS_ostream. | |
void | CCSDS_ostreamConstruct (CCSDS_ostream *ostream, CCSDS_ostreamPoster postRtn, void *postPrm, unsigned short int sequence, unsigned short int max_write) |
Constructs/Initializes the Post Control Block. | |
void * | CCSDS_ostreamPost (CCSDS_ostream *ostream, void *buf, int nbytes) |
Routine to write the data to post the data. The buffer is broken in multiple CCSDS packets, with the size limited to 4096-128 bytes. |
CVS $Id: CCSDS_ostream.c,v 1.6 2006/01/06 00:21:44 russell Exp $
|
Rounds the specified number, _x up to the nearest multiple of _r.
|
|
Constructs/Initializes the Post Control Block.
|
|
Frees any resources associated with the specified stream.
|
|
Allocates enough memory for, but does not initialize an CCSDS_ostream structure.
|
|
Routine to write the data to post the data. The buffer is broken in multiple CCSDS packets, with the size limited to 4096-128 bytes.
|
|
Returns the size, in bytes, of the CCSDS output stream control structure CCSDS_ostream.
|
|
Posts the specified buffer using the specified posting routine and parameter. The CCSDS header and data are appropriately byte-swapped to big-endian style if necessary.
|
|
Sets the last short integer before the start of the data proper to the number of unused bytes written to the output packet.
|