GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LMC / V0-9-1

Constituent: lmc     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LMC_decode.c File Reference

LAT Multiplexed Counters data decoding routines. More...

#include "LMC_prvdefs.h"
#include "LMC/LMC_msgs.h"
#include "LMC/LMC_tlmdefs.h"
#include "LEM/defs.h"
#include "LEM/encode.h"
#include "LEM/decode.h"
#include "ITC/ITC_pubdefs.h"
#include "ITC/ITC_msgs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "LSF/LSF.h"
#include "LSF/LSF_ids.h"
#include <string.h>

Include dependency graph for LMC_decode.c:


Functions

static void freeBuff (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2, unsigned int tx)
static unsigned int getDelta (unsigned int aDelta, unsigned int tRead, unsigned int tClear)
static unsigned int sendDiag (LMC_Counter *cnt)
static unsigned int sendPacket (LMC_Counter *cnt, int last)
static unsigned int sendSSR (LMC_Counter *cnt)
unsigned int LMC_decodeCal (LMC_Counter *cnt)
 CAL data decode routine.
unsigned int LMC_decodeTkr (LMC_Counter *cnt)
 TKR data decode routine.
unsigned int LMC_decodeAcd (LMC_Counter *cnt)
 ACD tile data decode routine.
unsigned int LMC_decodeDead (LMC_Counter *cnt)
 TEM deadtime data decode routine.
unsigned int LMC_getBuffer (LMC_Counter *cnt)
 Get a buffer for telemetry data.
unsigned int LMC_freeBuffer (LMC_Counter *cnt)
 Free a telemetry data buffer.
void LMC_sendLastPkt (LMC_Counter *cnt)
 Send the last packet of a set of data.

Detailed Description

LAT Multiplexed Counters data decoding routines.

Author:
S.Maldonado & Owen Saxton
Id
LMC_decode.c,v 1.1 2007/07/20 21:37:03 saxton Exp

Function Documentation

unsigned int LMC_decodeAcd LMC_Counter cnt  ) 
 

ACD tile data decode routine.

Parameters:
cnt Counter control handle
Return values:
LMC_SUCCESS Success

unsigned int LMC_decodeCal LMC_Counter cnt  ) 
 

CAL data decode routine.

Parameters:
cnt Counter control handle
Return values:
LMC_SUCCESS Success

unsigned int LMC_decodeDead LMC_Counter cnt  ) 
 

TEM deadtime data decode routine.

Parameters:
cnt Counter control handle
Return values:
LMC_SUCCESS Success

unsigned int LMC_decodeTkr LMC_Counter cnt  ) 
 

TKR data decode routine.

Parameters:
cnt Counter control handle
Return values:
LMC_SUCCESS Success

unsigned int LMC_freeBuffer LMC_Counter cnt  ) 
 

Free a telemetry data buffer.

Parameters:
cnt Counter control handle
Return values:
LMC_SUCCESS Success

unsigned int LMC_getBuffer LMC_Counter cnt  ) 
 

Get a buffer for telemetry data.

This routine allocates either a packet buffer or a datagram buffer depending on whether the diagnostic or science data stream is being used.

Parameters:
cnt Counter control handle
Return values:
LMC_SUCCESS Success
LMC_NODGPKT If diagnostic packet not available
LMC_NOSCIPKT If science datagram not available

void LMC_sendLastPkt LMC_Counter cnt  ) 
 

Send the last packet of a set of data.

This routine sends the last packet of an accumulated set of counter data, if there is a non-empty incomplete one. In addition, If the science stream is being used, the datagram is sent if it is non-empty. Finally, any remaining packet or datagram buffer is freed.

Parameters:
cnt Counter control handle


Generated on Tue Jul 1 01:18:55 2008 by  doxygen 1.4.4