GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCI / V6-0-4 > lci_test_cnt / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

test_cmd.c File Reference

Functions that form and send commands to the LCI task. More...

#include <test_p.h>
#include <LCI/LCI_msgs.h>
#include <LCI/LCI_cmdxtrn.h>
#include <LCI/LCI_cmddefs.h>
#include <PBS/BSWP.h>
#include <PBS/MBA.h>
#include <MSG/MSG_pubdefs.h>
#include <CCSDS/CCSDS_pkt.h>

Functions

static unsigned cmd (LCI_Apid67cFcodes fcode, unsigned pay0, unsigned pay1)
 Build a CCSDS packet and send it to the LCI task.
unsigned cmd_calibrate (unsigned latccfg, unsigned lcicfg)
 Allocate, form and send a calibrate command to the LCI task.
unsigned cmd_abort (void)
 Allocate, form and send an abort command to the LCI task.

Variables

static unsigned char buffer [128]


Detailed Description

Functions that form and send commands to the LCI task.

Author:
James Swain & Owen Saxton
$Id: test_cmd.c,v 1.5 2011/03/29 20:06:25 saxton Exp $

Function Documentation

unsigned cmd ( LCI_Apid67cFcodes  fcode,
unsigned  pay0,
unsigned  pay1 
) [static]

Build a CCSDS packet and send it to the LCI task.

Parameters:
fcode Function code of the command.
pay0 First word of CCSDS pkt payload
pay1 Second word of CCSDS pkt payload

Referenced by cmd_abort(), and cmd_calibrate().

unsigned cmd_abort ( void   ) 

Allocate, form and send an abort command to the LCI task.

Returns:
Error code if any part of the command formation or transmission fails

References cmd(), and LCI_ABORT_FCODE.

unsigned cmd_calibrate ( unsigned  latccfg,
unsigned  lcicfg 
)

Allocate, form and send a calibrate command to the LCI task.

Parameters:
latccfg File ID for the LATC configuration file
lcicfg File ID for the LCI configuration file
Returns:
Error code if any part of the command formation or transmission fails

References cmd(), and LCI_CALIBRATE_FCODE.

Referenced by kick_test().


Generated on Wed Nov 21 20:50:41 2012 by  doxygen 1.5.8