GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBC / V4-10-0

Constituent: pbc_lcp     Tag: linux-gcc


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"

Include dependency graph for PBC_lcpside.c:


Data Structures

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

Typedefs

typedef _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.7 2005/08/12 16:43:17 dmay 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.

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.

unsigned int PBC_sendTlm unsigned int  priority  ) 
 

Send boot housekeeping telemetry to the spacecraft.

Parameters:
priority Priority of the telemetry packet.
Returns:
MSG code.

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.

void pbc_simStateInit  )  [static]
 

Initialize the PBC simulated state.

Returns:
Nothing.


Generated on Thu Nov 10 21:49:16 2005 by  doxygen 1.4.4