GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSEC / dev

Constituent: lsec     Tag: mcp750


Interface   Data Structures   File List   Data Fields   Globals  

raw.c File Reference

Implementation of the LSEC_raw structure. More...

#include "raw_p.h"
#include "LSEC/LSEC_msgs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include <stdio.h>
#include <string.h>

Include dependency graph for raw.c:


Functions

void LSEC_addRaw (LSEC_raw *raw, void *src)
 Place the data in the next free slot.
unsigned LSEC_checkRaw (LSEC_raw *raw)
 Check the LSEC_raw structure.
void LSEC_clearRaw (LSEC_raw *raw)
 Clear the LSEC_raw structure.
void LSEC_deleteRaw (LSEC_raw *raw)
 Free memory associated with the LSEC_raw structure.
LSEC_rawLSEC_newRaw (unsigned wcnt, unsigned cap)
 Allocate memory for an LSEC_raw structure.
unsigned char * LSEC_packRaw (LSEC_raw *raw, unsigned char *buf)
 Copy the raw data to the output buffer.
void LSEC_reportRaw (LSEC_raw *raw, FILE *fp)
 Produce a formatted ASCII summary of the structure.

Detailed Description

Implementation of the LSEC_raw structure.

Author:
James Swain & Owen Saxton
Id
raw.c,v 1.2 2008/07/16 20:56:37 saxton Exp

Function Documentation

void LSEC_addRaw LSEC_raw raw,
void *  src
 

Place the data in the next free slot.

Parameters:
raw Pointer to an allocated, initialised, LSEC_raw structure
src Pointer to the data to be added to this structure

unsigned LSEC_checkRaw LSEC_raw raw  ) 
 

Check the LSEC_raw structure.

Parameters:
raw Pointer to an allocated, initialise, LSEC_raw structure
Return values:
LSEC_SUCCESS If there were no errors filling this structure
LSEC_RAWOVER If there was an attempt to add more entries than this structure can hold

void LSEC_clearRaw LSEC_raw raw  ) 
 

Clear the LSEC_raw structure.

Parameters:
raw Pointer to an allocated, initialised, LSEC_raw structure

void LSEC_deleteRaw LSEC_raw raw  ) 
 

Free memory associated with the LSEC_raw structure.

Parameters:
raw Pointer to an allocated, initialised, LSEC_raw structure

LSEC_raw* LSEC_newRaw unsigned  wcnt,
unsigned  cap
 

Allocate memory for an LSEC_raw structure.

Parameters:
wcnt Number of words in the data stored for each event
cap Capacity of the calibration task, the maximum number of events that can be collected each cycle
Returns:
Pointer to an allocated, initialised, LSEC_raw structure

unsigned char* LSEC_packRaw LSEC_raw raw,
unsigned char *  buf
 

Copy the raw data to the output buffer.

Parameters:
raw Pointer to an allocated, initialised LSEC_raw structure
buf Pointer to the buffer where the context should be placed
Returns:
Pointer to the next output location to be filled.

void LSEC_reportRaw LSEC_raw raw,
FILE *  fp
 

Produce a formatted ASCII summary of the structure.

Parameters:
raw Pointer to an allocated, initialised, LSEC_raw structure
fp Pointer to file to send the report


Generated on Thu Jul 17 01:16:44 2008 by  doxygen 1.4.4