GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBC / dev > pbc_lcp / rad750


Interface   Data Structures   File List   Data Fields   Globals  

PBC_lcpside.c File Reference

LCP side of PBC command and telemetry handling. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <MSG/MSG_pubdefs.h>
#include <CCSDS/CCSDS_pkt.h>
#include <CCSDS/CCSDS_swap.h>
#include <ITC/ITC_dump.h>
#include <ITC/ITC_pubdefs.h>
#include <PBC/PBC_apid.h>
#include <PBC/PBC_lcpside.h>
#include <PBC/PBC_msgs.h>
#include <PBC/PBC_tlmdefs.h>
#include <PBS/BSWP.h>
#include <PBS/MBA.h>
#include <PBS/WCT.h>
#include <CLI/CLI_pubdefs.h>

Classes

struct  _PBC_SimState
 Simulated state of the PBC. More...

Typedefs

typedef struct _PBC_SimState PBC_SimState
 Typedef for struct _PBC_SimState.

Functions

static void pbc_simStateInit ()
 Initialize the PBC simulated state.
static void pbc_free_cb (ITC_QueueItem *qitem_p, unsigned int status, void *parm_0, void *parm_1, void *parm_2, unsigned int tx)
 ITC callback to free command packet memory.
unsigned int PBC_sendTlm (unsigned int priority)
 Send boot housekeeping telemetry to the spacecraft.
static unsigned int PBC_sendTlm_cli (CLI_Control *cli, void *prm)
 CLI callback for the "PBC_sendTlm" command.
unsigned int PBC_addSyntaxLCP (CLI_Syntax *syntax)
 Add PBC send commands to the command-line syntax.

Variables

PBC_SimState PBC_simState
 The global instance of the PBC simulated state.
int PBC_simReady = 0
 Indicates that the simulated PBC state has been initialized.


Detailed Description

LCP side of PBC command and telemetry handling.

  CVS $Id: PBC_lcpside.c,v 1.8 2011/03/29 23:14:59 apw Exp $
  

Send simulated PBC boot housekeeping telemetry.


Function Documentation

unsigned int PBC_addSyntaxLCP ( CLI_Syntax *  syntax  ) 

Add PBC send commands to the command-line syntax.

Parameters:
syntax Syntax handle.
Returns:
MSG code.

References PBC_sendTlm_cli().

void pbc_free_cb ( ITC_QueueItem *  qitem_p,
unsigned int  status,
void *  parm_0,
void *  parm_1,
void *  parm_2,
unsigned int  tx 
) [static]

ITC callback to free command packet memory.

Parameters:
qitem_p Pointer to packet's queue item.
status Status of packet transmission.
parm_0 Callback parameter 0 - first item to free.
parm_1 Callback parameter 1 - second item to free.
parm_2 Callback parameter 2 - third item to free.
tx Flag indicating sender-side failure (unused).
Returns:
Nothing.

Referenced by PBC_sendTlm().

unsigned int PBC_sendTlm ( unsigned int  priority  ) 

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

CLI callback for the "PBC_sendTlm" command.

Parameters:
cli CLI control handle.
prm User parameter (unused).
Return values:
0 Success.
Nonzero Failure.

References PBC_sendTlm().

Referenced by PBC_addSyntaxLCP().

void pbc_simStateInit (  )  [static]


Generated on Mon Apr 18 14:11:46 2011 by  doxygen 1.5.8