GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBC / dev > pbc_lcp / rad750
#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. |
CVS $Id: PBC_lcpside.c,v 1.8 2011/03/29 23:14:59 apw Exp $
Send simulated PBC boot housekeeping telemetry.
unsigned int PBC_addSyntaxLCP | ( | CLI_Syntax * | syntax | ) |
Add PBC send commands to the command-line syntax.
syntax | Syntax handle. |
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.
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). |
Referenced by PBC_sendTlm().
unsigned int PBC_sendTlm | ( | unsigned int | priority | ) |
Send boot housekeeping telemetry to the spacecraft.
priority | Priority of the telemetry packet. |
References _PBC_BOOTCOMMAND::bf, _PBC_SimState::boot_type, _PBC_LBTHKP_Tlm::bootSoftwareMode, _PBC_LBTHKP_Tlm::bootType, _PBC_LBTHKP_Tlm::errorWord, _PBC_LBTHKP_Tlm::fileUploadPktCnt, _PBC_LBTHKP_Tlm::fileUploadState, _PBC_LBTHKP_Tlm::hdr, _PBC_SimState::last_apid, _PBC_SimState::last_error, _PBC_SimState::last_func_code, _PBC_LBTHKP_Tlm::lastCommand, _PBC_LBTHKP_Tlm::latestErrorWord, _PBC_SimState::mem_dump_addr, _PBC_SimState::mem_dump_count, _PBC_LBTHKP_Tlm::memDumpAddress, _PBC_LBTHKP_Tlm::memDumpData, _PBC_LBTHKP_Tlm::memDumpWordCount, PBC_APID_TLM_SIU, pbc_free_cb(), pbc_simStateInit(), _PBC_LBTHKP_Tlm::queuedErrorCount, _PBC_LBTHKP_Tlm::scrubAddrHi, _PBC_SimState::tc_accept_count, _PBC_SimState::tc_recv_count, _PBC_LBTHKP_Tlm::tcPktAcceptCount, _PBC_LBTHKP_Tlm::tcPktReceiveCount, _PBC_LBTHKP_Tlm::tcPktScCount, _PBC_LBTHKP_Tlm::tcPktUnsupportCount, _PBC_SimState::total_err_count, _PBC_LBTHKP_Tlm::totalErrorCount, and _PBC_BOOTCOMMAND::us.
Referenced by PBC_sendTlm_cli().
unsigned int PBC_sendTlm_cli | ( | CLI_Control * | cli, | |
void * | prm | |||
) | [static] |
CLI callback for the "PBC_sendTlm" command.
cli | CLI control handle. | |
prm | User parameter (unused). |
0 | Success. | |
Nonzero | Failure. |
References PBC_sendTlm().
Referenced by PBC_addSyntaxLCP().
void pbc_simStateInit | ( | ) | [static] |
Initialize the PBC simulated state.
References _PBC_SimState::boot_type, _PBC_SimState::last_apid, _PBC_SimState::last_error, _PBC_SimState::last_func_code, _PBC_SimState::mem_dump_addr, _PBC_SimState::mem_dump_count, _PBC_SimState::tc_accept_count, _PBC_SimState::tc_recv_count, and _PBC_SimState::total_err_count.
Referenced by PBC_sendTlm().