GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCFG / V1-2-3
Constituent: lcfg     Tag: mv2304
#include "LCFG_p.h"
#include "LCFG/LCFG_msgs.h"
#include "RIM/RIM.h"
#include "LSF/LSF_ids.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/WCT.h"
#include <string.h>
Include dependency graph for LCFG_record.c:
Data Structures | |
struct | SSR_pkt |
State information used whilst constructing a datagram. More... | |
Enumerations | |
enum | { LCFG_SSR_APID = 0x3fd } |
APID to use for data sent to the SSR. | |
Functions | |
static void | freeDgm (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2, unsigned int tx) |
Completion call-back for use with ITC when sending out a datagram. | |
static void | startDgm (SSR_pkt *pkt) |
Start a datagram. | |
static unsigned | endDgm (SSR_pkt *pkt) |
Finish a datagram. | |
static unsigned | startCtb (void *ctl, unsigned type, int size) |
Start a new contribution. | |
static unsigned | addData (void *ctl, void *data, int size) |
Copy data into the datagram. | |
unsigned | LCFG_record (RIM *rim, FPA_fcb *fpa) |
Send the RIM to the SSR. |
|
Copy data into the datagram. This routine is designed to work in conjunction with RIM_export and is called whenever there is data to be added to the current record. It just copies the data to the datagram after checking whether it overflows the record (contribution).
|
|
Finish a datagram. This routine sends the datagram to the SSR and reports any errors.
|
|
Completion call-back for use with ITC when sending out a datagram. It just returns the qitem to the pool.
|
|
Send the RIM to the SSR.
|
|
Start a new contribution. This routine is designed to work in conjunction with RIM_export and is called when a new record is to be started. A new contribution header is inserted into the datagram, possibly after sending out the current datagram and starting a new one if there is insufficient space in the current datagram for the new contribution
|
|
Start a datagram. This routine gets a new packet and fills in the header information
|