GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > ITC / V3-5-1

Constituent: itc     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

ITC_dispatch.c File Reference

Collection of dispatcher routines. More...

#include <string.h>
#include "PBI/TBD_id.h"
#include "PBS/FORK.h"
#include "PBS/TBD.ih"
#include "PBS/TOC.h"
#include "MSG/MSG_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_drvdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "ITC/ITC_msgs.h"
#include "ITC_inline.ih"
#include "ITC_prvdefs.h"

Include dependency graph for ITC_dispatch.c:


Functions

static ITC_cb_ProcessorfindProcessor (const ITC_CommandList *lst, unsigned int fnc)
 Find a command in a list of commands indexed by function code.
FORK_cb_status ITC_dispatch (FORK_cb_prm *prm, FORK_msg_hdr *msg)
 The heart of ITC task level dispatching.
unsigned int ITC_dispatchApp (void *prm, const ITC_QueueItem *qitem, void *qipay, unsigned int qilen)
 Find a command in a list of commands indexed by function code.
FORK_cb_status ITC_startMeta (FORK_cb_prm *prm, FORK_msg_hdr *msg)
 Process a request to start an ITC task.
FORK_cb_status ITC_stopMeta (FORK_cb_prm *prm, FORK_msg_hdr *msg)
 Process a request to stop an ITC task.

Detailed Description

Collection of dispatcher routines.

CVS $Id: ITC_dispatch.c,v 1.14 2005/09/08 16:21:37 apw Exp $
Author:
A.P.Waite

Function Documentation

static ITC_cb_Processor * findProcessor const ITC_CommandList lst,
unsigned int  fnc
[inline, static]
 

Find a command in a list of commands indexed by function code.

Parameters:
lst (in) Command list
fnc (in) Function code
Return values:
NULL Failure
x Address of routine

FORK_cb_status ITC_dispatch FORK_cb_prm *  prm,
FORK_msg_hdr *  msg
 

The heart of ITC task level dispatching.

Parameters:
prm (in) User context parameter
msg (in) Message buffer
Return values:
FORK_C_CONTINUE Continue fork
~FORK_C_CONTINUE Shut down fork
ITC_dispatch() is the heart of the ITC dispatching mechanism. It's used in both application and service tasks. In application tasks, it does a full protocol dispatch. In service tasks, it uses the service task dispatch (provided at the time the service task was created) to forward the packet to another node.

unsigned int ITC_dispatchApp void *  prm,
const ITC_QueueItem qitem,
void *  qipay,
unsigned int  qilen
 

Find a command in a list of commands indexed by function code.

Parameters:
prm (in) User parameter
qitem (in) Queue item
qipay (in) Queue item payload pointer
qilen (in) Queue item payload length
Return values:
NULL Failure
x Address of routine

FORK_cb_status ITC_startMeta FORK_cb_prm *  prm,
FORK_msg_hdr *  msg
 

Process a request to start an ITC task.

Parameters:
prm (in) User context parameter
msg (in) Message buffer
Return values:
ITC_SUCCESS Success

FORK_cb_status ITC_stopMeta FORK_cb_prm *  prm,
FORK_msg_hdr *  msg
 

Process a request to stop an ITC task.

Parameters:
prm (in) User context parameter
msg (in) Message buffer
Return values:
ITC_SUCCESS Success


Generated on Wed May 17 21:52:12 2006 by  doxygen 1.4.4