GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-5 > pig_flying / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

record.c File Reference

Implementation of the data recording routines. More...

#include <pig_p.h>
#include <pig_macro_p.h>
#include <PIG/pig.h>
#include <PIG/PIG_msgs.h>
#include <LEM/defs.h>
#include <LEM/list.h>
#include <LSF/LSF.h>
#include <LSF/LSF_ids.h>
#include <PBS/BSWP.h>
#include <CCSDS/CCSDS_pkt.h>
#include <ITC/ITC_pubdefs.h>
#include <string.h>

Enumerations

enum  { PIG_SSR_APID = 0x3fe }

Functions

size_t PIG_sizeofRecord (void)
 Get the size of a PIG datagram.
unsigned PIG_record (void *buf, ITC_cb_Completion *rtn, void *prm0, void *prm1, void *prm2)
 Record the PIG registers to the SSR.


Detailed Description

Implementation of the data recording routines.

Author:
James Swain & Owen Saxton
$Id: record.c,v 1.10 2011/03/28 17:15:49 saxton Exp $

Function Documentation

unsigned PIG_record ( void *  buf,
ITC_cb_Completion *  rtn,
void *  prm0,
void *  prm1,
void *  prm2 
)

Record the PIG registers to the SSR.

Takes a snapshot of the registers controlled by PIG and sends the resulting record to the SSR

Parameters:
buf Pointer to a buffer to use for the record
rtn Completion routine
prm0 Completion routine user parameter 0
prm1 Completion routine user parameter 1
prm2 Completion routine user parameter 2

References PIG_sizeofRecord(), and readState().

size_t PIG_sizeofRecord ( void   ) 

Get the size of a PIG datagram.

Calculates the space required to send a record of the registers controlled by PIG to the SSR.

Returns:
Size of a record in bytes

Referenced by PIG_record().


Generated on Tue Nov 29 18:55:56 2011 by  doxygen 1.5.8