GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSM / dev > lsm_scp / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LSM_scpside.c File Reference

Packet send routines for LSM commands. More...

#include <LSM/LSM_cmddefs.h>
#include <LSM/LSM_dump.h>
#include <LSM/LSM_msgs.h>
#include <LSM_prvdefs.h>
#include <THS/THS.h>
#include <THS/THS_sntpReader.h>
#include <CCSDS/CCSDS_pkt.h>
#include <ITC/ITC_dump.h>
#include <ITC/ITC_pubdefs.h>
#include <PBS/MBA.h>
#include <PBS/QI.h>
#include <PBS/FPA.h>
#include <PBS/TASK.h>
#include <MSG/MSG_pubdefs.h>
#include <PBI/Endianness.h>
#include <stdio.h>
#include <stdlib.h>
#include <CLI/CLI_pubdefs.h>

Functions

unsigned int LSM_scInit ()
 Init spacesraft side of LSM module.
unsigned int LSM_sendAncillary ()
 Send a spacecraft ancillary message packet.
unsigned int LSM_sendAttitude ()
 Send a spacecraft attitude message packet.
unsigned int LSM_sendTimetone (unsigned int absTimeSec, unsigned int flags)
 Send a spacecraft ancillary message packet.
unsigned int LSM_sendSsrOutOff ()
 Send a SsrOutOff message packet.
unsigned int LSM_sendSsrOutOn ()
 Send a SsrOutOn message packet.
unsigned int LSM_simTimetone (unsigned char *sntpServer, unsigned int printIt)
 Startup a task to simulate timetone, i.e. send timetone msg every sec.
static unsigned int LSM_sendAncillary_cli (CLI_Control *cli, void *prm)
 CLI callback for "LSM_sendAncillary" command.
static unsigned int LSM_sendAttitude_cli (CLI_Control *cli, void *prm)
 CLI callback for "LSM_sendAttitude" command.
static unsigned int LSM_sendTimetone_cli (CLI_Control *cli, void *prm)
 CLI callback for "LSM_sendTimetone" command.
static unsigned int LSM_sendSsrOutOff_cli (CLI_Control *cli, void *prm)
 CLI callback for "LSM_sendSsrOutOff" command.
static unsigned int LSM_sendSsrOutOn_cli (CLI_Control *cli, void *prm)
 CLI callback for "LSM_sendSsrOutOn" command.
unsigned int LSM_addSyntaxSCP (CLI_Syntax *syntax)
 Contribute the LSM section to the SCP command line syntax.


Detailed Description

Packet send routines for LSM commands.

CVS $Id: LSM_scpside.c,v 1.19 2011/03/29 21:44:12 russell Exp $
Author:
A.P.Waite

Function Documentation

unsigned int LSM_addSyntaxSCP ( CLI_Syntax *  syntax  ) 

Contribute the LSM section to the SCP command line syntax.

Parameters:
syntax Syntax handle
Returns:
CLI_SUCCESS

References LSM_sendAncillary_cli(), LSM_sendAttitude_cli(), LSM_sendSsrOutOff_cli(), LSM_sendSsrOutOn_cli(), and LSM_sendTimetone_cli().

unsigned int LSM_scInit (  ) 

Init spacesraft side of LSM module.

Return values:
LSM_SUCCESS Success
LSM_GENERROR Failure

unsigned int LSM_sendAncillary (  ) 

Send a spacecraft ancillary message packet.

Return values:
LSM_SUCCESS Success
LSM_GENERROR Failure

Referenced by LSM_sendAncillary_cli().

static unsigned int LSM_sendAncillary_cli ( CLI_Control *  cli,
void *  prm 
) [static]

CLI callback for "LSM_sendAncillary" command.

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

References LSM_sendAncillary().

Referenced by LSM_addSyntaxSCP().

unsigned int LSM_sendAttitude (  ) 

Send a spacecraft attitude message packet.

Return values:
LSM_SUCCESS Success
LSM_GENERROR Failure

Referenced by LSM_sendAttitude_cli().

static unsigned int LSM_sendAttitude_cli ( CLI_Control *  cli,
void *  prm 
) [static]

CLI callback for "LSM_sendAttitude" command.

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

References LSM_sendAttitude().

Referenced by LSM_addSyntaxSCP().

unsigned int LSM_sendSsrOutOff (  ) 

Send a SsrOutOff message packet.

Return values:
LSM_SUCCESS Success
LSM_GENERROR Failure

Referenced by LSM_sendSsrOutOff_cli().

static unsigned int LSM_sendSsrOutOff_cli ( CLI_Control *  cli,
void *  prm 
) [static]

CLI callback for "LSM_sendSsrOutOff" command.

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

References LSM_sendSsrOutOff().

Referenced by LSM_addSyntaxSCP().

unsigned int LSM_sendSsrOutOn (  ) 

Send a SsrOutOn message packet.

Return values:
LSM_SUCCESS Success
LSM_GENERROR Failure

Referenced by LSM_sendSsrOutOn_cli().

static unsigned int LSM_sendSsrOutOn_cli ( CLI_Control *  cli,
void *  prm 
) [static]

CLI callback for "LSM_sendSsrOutOn" command.

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

References LSM_sendSsrOutOn().

Referenced by LSM_addSyntaxSCP().

unsigned int LSM_sendTimetone ( unsigned int  absTimeSec,
unsigned int  flags 
)

Send a spacecraft ancillary message packet.

Parameters:
absTimeSec Time in sec since 1/1/2001
flags flag from space craft, bit0=timetone generated
Return values:
LSM_SUCCESS Success
LSM_GENERROR Failure

Referenced by LSM_sendTimetone_cli(), and LSM_simTimetone().

static unsigned int LSM_sendTimetone_cli ( CLI_Control *  cli,
void *  prm 
) [static]

CLI callback for "LSM_sendTimetone" command.

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

References LSM_sendTimetone().

Referenced by LSM_addSyntaxSCP().

void LSM_simTimetone ( unsigned char *  sntpServer,
unsigned int  printIt 
)

Startup a task to simulate timetone, i.e. send timetone msg every sec.

Parameters:
sntpServer server to poll for time
printIt print info from time server

References LSM_sendTimetone().


Generated on Tue Mar 29 14:50:14 2011 by  doxygen 1.5.8