GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-7-1

Constituent: mem_unit_test     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

mem_util_tlm.c File Reference

Handle MEM telemetry. More...

#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_pubdefs.h"
#include "MEM/MEM_msgs.h"
#include "MEM/MEM_tlmdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "mem_unit_test.h"
#include "mem_util_task.h"
#include "mem_util_tlm.h"

Include dependency graph for mem_util_tlm.c:


Data Structures

struct  _TLM_Control
 Control information for the telemetry handler. More...

Defines

#define TLM_APID_MEM_DATA_SIU   (788)

Typedefs

typedef _TLM_Control TLM_Control
 Typedef for _TLM_Control.

Functions

static unsigned int tlm_dispatch (void *prm, const ITC_QueueItem *qitem_p, void *pay_p, unsigned int len)
 Handle a packet sent to the spacecraft.
int TLM_init (test_Test_Descriptor *td_p)
 Initialize the telemetry handler task.
int TLM_start (test_Test_Descriptor *td_p)
 Start the telemetry handler task.
int TLM_stop (test_Test_Descriptor *td_p)
 Stop the telemetry handler task.
int TLM_shutdown (test_Test_Descriptor *td_p)
 Shutdown the telemetry handler task.
int TLM_tlm_rcvd (test_Test_Descriptor *td_p, int id)
 Check for received telemetry.
int TLM_check_tlm (test_Test_Descriptor *td_p, int id, TLM_Data *exp_tlm_p)
 Compare actual and expected packet data.
int TLM_check_no_tlm (test_Test_Descriptor *td_p)
 Verify that no packets were received.

Detailed Description

Handle MEM telemetry.

**  CVS $Id: mem_util_tlm.c,v 1.2 2006/05/10 19:37:19 dmay Exp $
**  

Function Documentation

int TLM_check_no_tlm test_Test_Descriptor td_p  ) 
 

Verify that no packets were received.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int TLM_check_tlm test_Test_Descriptor td_p,
int  id,
TLM_Data exp_tlm_p
 

Compare actual and expected packet data.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
exp_tlm_p Pointer to expected packet data.
Return values:
0 Success.
-1 Failure.

unsigned int tlm_dispatch void *  prm,
const ITC_QueueItem *  qitem_p,
void *  pay_p,
unsigned int  len
[static]
 

Handle a packet sent to the spacecraft.

Parameters:
prm Context parameter (pointer to task control info).
qitem_p Pointer to queue item.
pay_p Pointer to queue item payload (packet).
len Length of queue item payload, in bytes.
Returns:
MSG code.

int TLM_init test_Test_Descriptor td_p  ) 
 

Initialize the telemetry handler task.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int TLM_shutdown test_Test_Descriptor td_p  ) 
 

Shutdown the telemetry handler task.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int TLM_start test_Test_Descriptor td_p  ) 
 

Start the telemetry handler task.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int TLM_stop test_Test_Descriptor td_p  ) 
 

Stop the telemetry handler task.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int TLM_tlm_rcvd test_Test_Descriptor td_p,
int  id
 

Check for received telemetry.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
Returns:
Nonzero value if any telemetry packets have been received.


Generated on Tue Aug 8 23:24:52 2006 by  doxygen 1.4.4