GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCM / V1-4-6

Constituent: lcm_lcp     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LCM_lcpside.c File Reference

Some useful LCM commands (LCP side). More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "PBI/Endianness.h"
#include "PBS/MBA.h"
#include "PBS/WCT.h"
#include "MSG/MSG_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_dump.h"
#include "ITC/ITC_pubdefs.h"
#include "LCM/LCM_msgs.h"
#include "LCM/LCM_pubdefs.h"
#include "CLI/CLI_pubdefs.h"

Include dependency graph for LCM_lcpside.c:


Defines

#define LCM_L_TESTPKT   (4096)

Functions

void freePacket (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2)
 Free the LCM command "buffer".
unsigned int LCM_dumpCounts (ITC_TaskID tid)
 Dump ITC command counts for task tid.
unsigned int LCM_sendCommand (unsigned int apid, unsigned int func, unsigned int qilen)
 Send a pattern telecommand packet to the spacecraft.
unsigned int LCM_sendTelemetry (unsigned int apid, unsigned int prio, unsigned int qilen)
 Send a pattern telemetry packet to the spacecraft.
unsigned int LCM_errors ()
 Print RAD750 error counter values.
unsigned int LCM_cpuRegs ()
 Print CPU register values.
static unsigned int LCM_dumpCounts_cli (CLI_Control *cli, void *prm)
 CLI callback for "LCM_dumpCounts" command.
static unsigned int LCM_sendCommand_cli (CLI_Control *cli, void *prm)
 CLI callback for "LCM_sendCommand" command.
static unsigned int LCM_sendTelemetry_cli (CLI_Control *cli, void *prm)
 Handle the verb/call LCM_sendTelemetry.
unsigned int LCM_addSyntaxLCP (CLI_Syntax *syntax)
 Contribute the LCM section to the command line syntax.

Variables

static unsigned int lock
 Test packet interlock control.
static char pkt [LCM_L_TESTPKT]
 Test packet buffer.
const char * d_0 = "$0"
 The string "$0".

Detailed Description

Some useful LCM commands (LCP side).

CVS $Id: LCM_lcpside.c,v 1.4 2007/08/27 19:08:08 apw Exp $
Author:
A.P.Waite

Function Documentation

void freePacket ITC_QueueItem *  qitem,
unsigned int  status,
void *  prm0,
void *  prm1,
void *  prm2
 

Free the LCM command "buffer".

Parameters:
qitem (in) Queue item (unused)
status (in) Processing completion code (unused)
prm0 (in) User parameter 0 (unused)
prm1 (in) User parameter 1 (unused)
prm2 (in) User parameter 2 (unused)
Return values:
LCM_SUCCESS Success
freePacket() frees a test packet.

unsigned int LCM_addSyntaxLCP CLI_Syntax *  syntax  ) 
 

Contribute the LCM section to the command line syntax.

Parameters:
syntax Syntax handle
Returns:
CLI_SUCCESS

unsigned int LCM_cpuRegs void   ) 
 

Print CPU register values.

Return values:
LCM_SUCCESS Success

unsigned int LCM_dumpCounts ITC_TaskID  tid  ) 
 

Dump ITC command counts for task tid.

Parameters:
tid (in) Task ID
Return values:
LCM_SUCCESS Always

static unsigned int LCM_dumpCounts_cli CLI_Control *  cli,
void *  prm
[static]
 

CLI callback for "LCM_dumpCounts" command.

Parameters:
cli (in) CLI control handle
prm (in) User parameter (unused)
Returns:
CLI_SUCCESS

unsigned int LCM_errors void   ) 
 

Print RAD750 error counter values.

Return values:
LCM_SUCCESS Success

unsigned int LCM_sendCommand unsigned int  apid,
unsigned int  func,
unsigned int  qilen
 

Send a pattern telecommand packet to the spacecraft.

Parameters:
apid APID
func Function code
qilen Size of packet to send (even number of bytes)
Return values:
LCM_GENERROR Failure
LCM_SUCCESS Success

static unsigned int LCM_sendCommand_cli CLI_Control *  cli,
void *  prm
[static]
 

CLI callback for "LCM_sendCommand" command.

Parameters:
cli CLI control handle
prm User parameter (unused)
Returns:
CLI_SUCCESS

unsigned int LCM_sendTelemetry unsigned int  apid,
unsigned int  prio,
unsigned int  qilen
 

Send a pattern telemetry packet to the spacecraft.

Parameters:
apid APID
prio Priority (zero/not-zero low/high)
qilen Size of packet to send
Return values:
LCM_GENERROR Failure
LCM_SUCCESS Success

static unsigned int LCM_sendTelemetry_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call LCM_sendTelemetry.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 


Generated on Fri Feb 1 01:30:20 2008 by  doxygen 1.4.4