GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > ITC / V2-1-7

Constituent: itc     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

ITC_confirm.c File Reference

Functionality specific to confirming spacecraft telecommands. More...

#include <string.h>
#include "PBI/TBD_id.h"
#include "PBS/RW.ih"
#include "PBS/TBD.ih"
#include "PBS/TOC.h"
#include "PBS/WCT.h"
#include "MSG/MSG_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_msgs.h"
#include "ITC/ITC_pubdefs.h"
#include "ITC/ITC_tlmdefs.h"
#include "ITC_confirm.h"
#include "ITC_prvdefs.h"

Include dependency graph for ITC_confirm.c:

Include dependency graph

Functions

unsigned int ITC_allocCmdConfirm (ITC_QueueItem **quack, ITC_Task *task, WCT_time qtim, const char *cmd)
 Allocate a confirmation packet for a spacecraft telecommand.

unsigned int ITC_sendCmdConfirm (const ITC_QueueItem *quack, ITC_Task *task, unsigned int scb, WCT_time xtim, unsigned int status)
 Send a telecommand execution status reponse.

unsigned int ITC_setCmdConfirm (ITC_TaskID tid, ITC_CmdClass scb, ITC_CmdAction fwd, ITC_CmdLevel new, ITC_CmdLevel *old)
 Set the command confirmation level for a task.


Detailed Description

Functionality specific to confirming spacecraft telecommands.

CVS $Id: ITC_confirm.c,v 1.3 2005/01/07 05:05:43 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int ITC_allocCmdConfirm ITC_QueueItem **  quack,
ITC_Task task,
WCT_time  qtim,
const char *  cmd
 

Allocate a confirmation packet for a spacecraft telecommand.

Parameters:
quack (i/o) Packet to be allocated
task (in) Task handle
qtim (in) Time command dequeued
cmd (in) Pointer to CCSDS telecommand
Return values:
ITC_ALOCFAIL Memory allocation failure
ITC_SUCCESS Success

Here is the call graph for this function:

unsigned int ITC_sendCmdConfirm const ITC_QueueItem quack,
ITC_Task task,
unsigned int  scb,
WCT_time  xtim,
unsigned int  status
 

Send a telecommand execution status reponse.

Parameters:
quack (in) Packet already allocated
task (in) Task handle
scb (in) Spacecraft broadcast APID flag
xtim (in) Time execution completed
status (in) Command completion code
Return values:
ITC_SENDTID Destination task stopping/stopped
ITC_SUCCESS Success

Here is the call graph for this function:

unsigned int ITC_setCmdConfirm ITC_TaskID  tid,
ITC_CmdClass  scb,
ITC_CmdAction  fwd,
ITC_CmdLevel  new,
ITC_CmdLevel old
 

Set the command confirmation level for a task.

Parameters:
tid (in) Task ID
scb (in) Spacecraft broadcast APID flag
fwd (in) Task acting as forwarding agent flag
new (in) New command confirmation level
old (in) Old command confirmation level
Return values:
ITC_PARMRNG E Parameter out of range
ITC_SUCCESS Success
ITC_TASKCROS E Task pointer check failed
ITC_TASKRNG E Task ID out of range
ITC_TASKNULL E No entry in task table for task
ITC_setCmdLevel() sets one of the command confirmation levels for a task. There are four levels that can be controlled, arranged as a two-by-two matrix. The first element of the matrix is whether the command belongs to the class "spacecraft broadcast" (parameter scb). The second element of the matrix is whether the task is acting as a forwarding agent (parameter fwd). Thus the call ITC_setCmdReponse( tid, ITC_CMD_NORMAL, ITC_ACT_FORWARD, ITC_LVL_ERROR, &old ); would mean "for task <tid>, set the command confirmation level to ITC_LVL_ERROR when forwarding non-broadcast spacecraft commands".


Generated on Thu Mar 3 20:42:52 2005 by doxygen 1.3.3