GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSEC / dev > lsec / rhel5-64
#include <compact.h>
#include <compress.ic>
#include <LSEC_p.h>
#include <LSEC/LSEC_msgs.h>
#include <LDT/HDE.h>
#include <EDS/EBF_cal.h>
#include <EDS/EBF_cid.h>
#include <EDS/EBF_tem.h>
#include <EDS/EBF_tkr.h>
#include <LCBD/LATP.h>
#include <PBS/WCT.h>
#include <PBI/PTR.h>
#include <string.h>
Functions | |
unsigned int * | LSEC_encodeCal (LSEC_compaction *cpc, const LSEC_calEvent *event, unsigned int *buf) |
Encode the CAL portion of the event. | |
unsigned int * | LSEC_encodeTkr (LSEC_compaction *cpc, const EBF_dir *dir, unsigned int *buf) |
Encode the TKR portion of the event. |
$Id: encode.c,v 1.16 2011/03/27 17:46:42 saxton Exp $
unsigned int* LSEC_encodeCal | ( | LSEC_compaction * | cpc, | |
const LSEC_calEvent * | event, | |||
unsigned int * | buf | |||
) |
Encode the CAL portion of the event.
cpc | Compaction structure | |
event | Pointer to the saved event | |
buf | Pointer to the buffer receiving the encoded data |
References _LSEC_compaction::cal, _LSEC_calEvent::dgnMap, _LSEC_calEvent::diag, FR_LENG, _LSEC_calEvent::frstRng, _LSEC_calEvent::gem, getBit(), getNib(), LM_LENG, _LSEC_calEvent::logMap, LSEC_calCompaction::logs, LSEC_CAL_M_END, LSEC_CAL_P_END, LSEC_compressH(), LSEC_N_CAL_COL, LSEC_N_CAL_LAY, LSEC_N_TWR, _LSEC_calEvent::size, and _LSEC_calEvent::twrMap.
unsigned int* LSEC_encodeTkr | ( | LSEC_compaction * | cpc, | |
const EBF_dir * | dir, | |||
unsigned int * | buf | |||
) |
Encode the TKR portion of the event.
cpc | Compaction structure | |
dir | Pointer to the event directory | |
buf | Pointer to the buffer receiving the encoded data |
References LSEC_tkr::channel, _LSEC_compaction::ctx, LSEC_channel::flags, LSEC_N_TKR_CC, LSEC_N_TKR_CHNL, LSEC_N_TKR_FE, LSEC_N_TKR_RC, LSEC_N_TWR, LSEC_channel::number, LSEC_ctx::specific, and LSEC_specific::tkr.